[Bug target/65886] [5/6 Regression] Copy reloc in PIE incompatible with DSO created by -Wl,-Bsymbolic
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue May 5 15:38:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65886
--- Comment #28 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Thiago Macieira from comment #27)
> (In reply to Jakub Jelinek from comment #26)
> > Plus, if KDE uses so small binaries, why don't just compile them with -fPIC
> > then?
> > You can then link them as normal executables or PIEs, depending on what you
> > prefer, and still it supposedly wouldn't use copy relocations, as all
> > references to externals would be through .got.
>
> Can you guarantee that the linker won't generate copy relocs for -fPIC?
Yes.
More information about the Gcc-bugs
mailing list