summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-06-22 09:30:14 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2012-06-22 09:30:14 +0000
commitf2b713c3c408c62776383c083c9e06d6565fec5b (patch)
treee5603d626688c9f1e27cc274a86ff39f46b42bc8 /bfd
parent79e238a9c7b7fb9c4c539ebcaba3c865fa9dcbc2 (diff)
downloadbinutils-redhat-f2b713c3c408c62776383c083c9e06d6565fec5b.tar.gz
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
_GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-m68k.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 105c72b88e..9f8fb8a23a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index 573003bfb3..1cb03aedd3 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -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;
}