bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21448] References to constant data in shared libraries bloats 2.


From: amodra at gmail dot com
Subject: [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27
Date: Thu, 04 May 2017 04:55:01 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21448

--- Comment #6 from Alan Modra <amodra at gmail dot com> ---
> But not because of anything special GCC does in the executable.

Normally a shared library variable would be accessed in a PIE by loading the
address of that variable from the GOT, just like it would in a shared library. 
Instead, HJ's copy reloc optimization makes a copy locally in the PIE that then
can be accessed using an insn with a PC-relative data access.

Contrary to your opinion, that is indeed something "special".

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]