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: Ian Lance Taylor <iant at google dot com>
- To: etienne_lorrain at yahoo dot fr
- Cc: binutils at sourceware dot org
- Date: Fri, 03 Apr 2009 10:33:35 -0700
- Subject: Re: x86-64: LD default ELF section file offset == LMA ?
- References: <499123.25366.qm@web23604.mail.ird.yahoo.com>
Etienne Lorrain <etienne_lorrain@yahoo.fr> writes:
> But -n and -N seems to be related to data and not code, and -z does not
> seem to work in this context. I still did not try Gold.
-n and -N are about whether the executable can be dynamically paged or
not. They are not about either data or code. -z max-page-size should
work. Which version of the linker are you using?
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.
Ian