[z80-coff-ld] how can I use ld for creating an exe from z80-coff-as ?

Alan Modra amodra@gmail.com
Tue Feb 21 21:52:00 GMT 2012


On Tue, Feb 21, 2012 at 10:06:41PM +0100, jseb wrote:
> ... to my .org setting.

.org doesn't do what you think it does.  gas isn't an absolute
assembler, but instead produces relocatable object files.  .org just
adds space to make the offset from the start of the current section
equal to its argument.

You're on the right track in your use of a linker script to set the
start of your code.  Just leave out the .org in the assembly code.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list