diff options
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index eb701a1..3dd28e4 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -3638,8 +3638,7 @@ elf_i386_finish_dynamic_symbol (bfd *output_bfd, On VxWorks, the _GLOBAL_OFFSET_TABLE_ symbol is not absolute: it is relative to the ".got" section. */ if (strcmp (h->root.root.string, "_DYNAMIC") == 0 - || (strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0 - && !htab->is_vxworks)) + || (!htab->is_vxworks && h == htab->elf.hgot)) sym->st_shndx = SHN_ABS; return TRUE; |