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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to