This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]