1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Fixed order of -o and -t on the linker command line.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4886 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2010-12-04 18:13:47 +00:00
parent e61173fe9e
commit 72d5d040d8
4 changed files with 5 additions and 5 deletions

View File

@ -245,7 +245,7 @@ into an executable named morse:
cc65 -g -Oi -t c64 morse.c cc65 -g -Oi -t c64 morse.c
ca65 -g morse.s ca65 -g morse.s
ca65 -g irq.s ca65 -g irq.s
ld65 -t c64 -o morse c64.o morse.o irq.o c64.lib ld65 -o morse -t c64 c64.o morse.o irq.o c64.lib
</verb></tscreen> </verb></tscreen>
When using cl65, this is simplified to When using cl65, this is simplified to

View File

@ -45,7 +45,7 @@ arbitary addresses), debug interrupt handlers and even debug routines that run
inside the 1541 floppy. inside the 1541 floppy.
<item>You may use the label file generated by the linker to make much more use <item>You may use the label file generated by the linker to make much more use
from the monitor. from the monitor.
</itemize> </itemize>
@ -90,7 +90,7 @@ file (I'm usually using a <tt/.lbl/ extension for these files). An example for
a linker command line would be: a linker command line would be:
<tscreen><verb> <tscreen><verb>
ld65 -t c64 -Ln hello.lbl -m hello.map -o hello crt0 hello.o c64.lib ld65 -o hello -t c64 -Ln hello.lbl -m hello.map hello.o c64.lib
</verb></tscreen> </verb></tscreen>
This will generate a file named hello.lbl that contains all symbols used in This will generate a file named hello.lbl that contains all symbols used in

View File

@ -241,7 +241,7 @@ contains all of the executable code.
<sect2>Fourth and last step -- linking it together <sect2>Fourth and last step -- linking it together
<p><verb> <p><verb>
$ ld65 -t geos -o test.cvt resource.o geos.o test.o geos.lib $ ld65 -o test.cvt -t geos resource.o geos.o test.o geos.lib
</verb> </verb>
&dquot;<tt/resource.o/&dquot; comes first because it contains the &dquot;<tt/resource.o/&dquot; comes first because it contains the
header. The next one is &dquot;<tt/geos.o/&dquot;, a required starter-code header. The next one is &dquot;<tt/geos.o/&dquot;, a required starter-code

View File

@ -185,7 +185,7 @@ linker can resolve those functions.
Let's link our files to get the final executable: Let's link our files to get the final executable:
<tscreen><verb> <tscreen><verb>
ld65 -t c64 -o hello hello.o text.o c64.lib ld65 -o hello -t c64 hello.o text.o c64.lib
</verb></tscreen> </verb></tscreen>
The argument after <tt/-o/ specifies the name of the output file, the argument The argument after <tt/-o/ specifies the name of the output file, the argument