This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: building non-shared dynamic binaries on x86-64 linux-elf
- From: Andrew Haley <aph at redhat dot com>
- To: Mathieu Lacage <mathieu dot lacage at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 22 Apr 2009 13:00:03 +0100
- Subject: Re: building non-shared dynamic binaries on x86-64 linux-elf
- References: <74fef6df0904220457y5650ab4eq215fe274badf60f4@mail.gmail.com>
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.