]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
authorAndreas Schwab <schwab@linux-m68k.org>
Fri, 22 Jun 2012 09:30:18 +0000 (09:30 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Fri, 22 Jun 2012 09:30:18 +0000 (09:30 +0000)
_GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.

bfd/ChangeLog
bfd/elf32-m68k.c

index 105c72b88ecc30063ba8c7e827f8545927c58585..9f8fb8a23aa0b08c208ee2b4cea5dda14fdc4fc6 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-22  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
+       _GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
+
 2012-06-22  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-line
index 573003bfb3ccb52f5879eb13c160d32ccd58b09f..1cb03aedd32cca6f7523cdaf2dbc3356ed3a7527 100644 (file)
@@ -4500,11 +4500,6 @@ elf_m68k_finish_dynamic_symbol (output_bfd, info, h, sym)
       bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
     }
 
-  /* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute.  */
-  if (strcmp (h->root.root.string, "_DYNAMIC") == 0
-      || h == elf_hash_table (info)->hgot)
-    sym->st_shndx = SHN_ABS;
-
   return TRUE;
 }