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