diff options
Diffstat (limited to 'bfd/elf32-score7.c')
-rw-r--r-- | bfd/elf32-score7.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-score7.c b/bfd/elf32-score7.c index 3615a1e7b5..30bfe3928a 100644 --- a/bfd/elf32-score7.c +++ b/bfd/elf32-score7.c @@ -3345,7 +3345,8 @@ s7_bfd_score_elf_finish_dynamic_symbol (bfd *output_bfd, /* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute. */ name = h->root.root.string; - if (strcmp (name, "_DYNAMIC") == 0 || strcmp (name, "_GLOBAL_OFFSET_TABLE_") == 0) + if (h == elf_hash_table (info)->hdynamic + || h == elf_hash_table (info)->hgot) sym->st_shndx = SHN_ABS; else if (strcmp (name, "_DYNAMIC_LINK") == 0) { |