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

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

 



hi,

The title pretty much says what I am trying to do: this works fine on
i386 but fails on x86-64. The compile-time error is:
"relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC".

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 ?

Mathieu
-- 
Mathieu Lacage <mathieu.lacage@xxxxxxxxx>

[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