This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
_DYNAMIC and _GLOBAL_OFFSET_TABLE_
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Thu, 28 Aug 2003 13:05:34 +0930
- Subject: _DYNAMIC and _GLOBAL_OFFSET_TABLE_
Can anyone comment on the history of the following code in elf32-i386.c?
/* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute. */
if (strcmp (h->root.root.string, "_DYNAMIC") == 0
|| strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
sym->st_shndx = SHN_ABS;
It's particularly curious given that absolute symbols are relocated
by current glibc ld.so.
--
Alan Modra
IBM OzLabs - Linux Technology Centre