building non-shared dynamic binaries on x86-64 linux-elf

Andrew Haley aph@redhat.com
Wed Apr 22 12:00:00 GMT 2009


Mathieu Lacage wrote:

> What I am trying to do is generate a non-shared relocatable dynamic
> binary which means that I really don't want to use -fPIC and I was
> hoping that the dynamic linker would be able to finish relocating the
> final binary. Is this impossible on linux-elf-x86-64 ?

Yes, it is.  The fact that this works on 32-bit is something of an
historical accident.

Andrew.



More information about the Gcc-help mailing list