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: michael at talosis dot ca
Subject: [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27
Date: Thu, 04 May 2017 06:01:44 +0000

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

--- Comment #7 from Michael Deutschmann <michael at talosis dot ca> ---
My example involves an ordinary, absolute executable, not a PIE.

And my point is that all the magic has to be in the linker, not GCC.

If there are no relocations inside the array (there are in the gas/libopcodes
case, but not in the simplest demonstration), the .s file GCC will generate for
an object consisting only of data will be exactly the same with and without
-fPIC.

And it's not even decided until link time whether the external reference is
fulfilled statically or with a reference to a .so file.

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