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: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, binutils at sourceware dot org
- Date: Fri, 3 Apr 2009 17:04:13 +0000 (GMT)
- Subject: Re: x86-64: LD default ELF section file offset == LMA ?
- Reply-to: etienne_lorrain at yahoo dot fr
H.J. Lu wrote:
> I got
>
> [hjl@gnu-6 tmp]$ cat f.s
> .file "hello_64bits.c"
> ...
> .note.GNU-stack,"",@progbits
> [hjl@gnu-6 tmp]$ gcc -c f.s
> [hjl@gnu-6 tmp]$ ld -z max-page-size=0x1000 -Ttext=0x110000 f.o
> [hjl@gnu-6 tmp]$ readelf -Sl a.out
> ...
>
> Does it do what you wanted?
Yes, perfect, thanks.
I do not know what I was doing wrong, but I can reproduce your
result so it is fine.
Thanks again,
Etienne.