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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Haley <aph@xxxxxxxxxx> writes:

> 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.

I would reverse the sense of this: non PIC shared libraries does work on
most processors (with some loss of efficiency), but not on x86_64
because it uses a small model by default.  It might work if you use
-mcmodel=large, but I haven't tried this.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux