This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/65886] [5/6 Regression] Copy reloc in PIE incompatible with DSO created by -Wl,-Bsymbolic
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 25 Apr 2015 17:34:24 +0000
- Subject: [Bug target/65886] [5/6 Regression] Copy reloc in PIE incompatible with DSO created by -Wl,-Bsymbolic
- Auto-submitted: auto-generated
- References: <bug-65886-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65886
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Thiago Macieira from comment #7)
> You're not accounting for loss of performance in the shared libraries that
> can't use -Bsymbolic due to the copy relocations, both at load-time
> (relocations by name) and at runtime (indirect addressing to local symbols).
> Maybe our experiences with shared libraries isn't the same: mine is that
> libraries are 10x bigger and more complex than the applications using them.
>
> So I submit that your benchmarks are incomplete.
The keyword here is psABI compliant. Since your shared library isn't
psABI compliant, all bets are off.