Add hdynamic to elf_link_hash_table for _DYNAMIC
[deliverable/binutils-gdb.git] / bfd / elf64-aarch64.c
index 629907403c18ba05a39c1a341e06cac0345b1eb9..648ca7fd1fda07721e7f33afa7af9984c76a23c7 100644 (file)
@@ -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;
 
This page took 0.032779 seconds and 4 git commands to generate.