summaryrefslogtreecommitdiff
path: root/bfd/elf32-score.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-score.c')
-rw-r--r--bfd/elf32-score.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-score.c b/bfd/elf32-score.c
index 01a602b1a4..7b16ea2d15 100644
--- a/bfd/elf32-score.c
+++ b/bfd/elf32-score.c
@@ -3537,7 +3537,8 @@ s3_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)
{