Fix and use elf_append_rel
[deliverable/binutils-gdb.git] / bfd / elfxx-sparc.c
index e14afaf970fa2b1ea58b3dceb04048c824caca30..9811d17b06cc43705903763018d3d02ac7dd94bd 100644 (file)
@@ -4511,7 +4511,7 @@ _bfd_sparc_elf_finish_dynamic_symbol (bfd *output_bfd,
      _GLOBAL_OFFSET_TABLE_ is not absolute: it is relative to the
      ".got" section.  Likewise _PROCEDURE_LINKAGE_TABLE_ and ".plt".  */
   if (sym != NULL
-      && (strcmp (h->root.root.string, "_DYNAMIC") == 0
+      && (h == htab->elf.hdynamic
          || (!htab->is_vxworks
              && (h == htab->elf.hgot || h == htab->elf.hplt))))
     sym->st_shndx = SHN_ABS;
This page took 0.023388 seconds and 4 git commands to generate.