aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-aarch64.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf64-aarch64.c')
-rw-r--r--bfd/elf64-aarch64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-aarch64.c b/bfd/elf64-aarch64.c
index 6299074..648ca7f 100644
--- a/bfd/elf64-aarch64.c
+++ b/bfd/elf64-aarch64.c
@@ -6590,7 +6590,7 @@ elf64_aarch64_finish_dynamic_symbol (bfd *output_bfd,
/* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute. SYM may
be NULL for local symbols. */
if (sym != NULL
- && (strcmp (h->root.root.string, "_DYNAMIC") == 0
+ && (h == elf_hash_table (info)->hdynamic
|| h == elf_hash_table (info)->hgot))
sym->st_shndx = SHN_ABS;