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

--- Comment #20 from Alan Modra <amodra at gmail dot com> ---
OK, getting back to this.  I have some reservations about making the global ABI
symbols SHN_ABS.  (I made the patch to demonstrate how it is done, that's all.)
 The problem with SHN_ABS symbols holding addresses as is the case with all of
these symbols, is that in a shared libary or PIE those symbols must be
relocated by the base address of the library if they are used in dynamic
relocations.  Which is wrong according to the ELF gABI:

SHN_ABS
    The symbol has an absolute value that will not change because of
relocation.

For that reason GNU binutils has moved away from making _GLOBAL_OFFSET_TABLE_
and similar symbols SHN_ABS on a number of targets.

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

Reply via email to