This is the mail archive of the
mailing list for the binutils project.
Re: [z80-coff-ld] how can I use ld for creating an exe from z80-coff-as ?
- From: Alan Modra <amodra at gmail dot com>
- To: jseb <gmane2010 at finiderire dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 22 Feb 2012 08:22:33 +1030
- Subject: Re: [z80-coff-ld] how can I use ld for creating an exe from z80-coff-as ?
- Authentication-results: mr.google.com; spf=pass (google.com: domain of email@example.com designates 10.68.244.37 as permitted sender) firstname.lastname@example.org; dkim=pass email@example.com
- References: <firstname.lastname@example.org>
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.
Australia Development Lab, IBM