This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: x86-64: LD default ELF section file offset == LMA ?
- From: Etienne Lorrain <etienne_lorrain at yahoo dot fr>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 3 Apr 2009 19:18:27 +0000 (GMT)
- Subject: Re: x86-64: LD default ELF section file offset == LMA ?
- Reply-to: etienne_lorrain at yahoo dot fr
--- Ian Lance Taylor wrote:
> etienne@cygne:~/projet/gujin$ gcc -m64
> -Wl,-n,-z,max-page-size=0x1000,-Ttext=0x110000
> hello_64bits.s hello_64bits.elf -nostartfiles -nodefaultlibs
> etienne@cygne:~/projet/gujin$ ls -l hello_64bits.elf
>
> Are you sure you are checking the right output file? I
> don't see a -o option on the first command.
That's it.
I now have a working ELF64 demo.
Thanks,
Etienne.