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: x86-64: LD default ELF section file offset == LMA ?


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


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