aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2015-07-27 11:45:27 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2015-07-27 11:45:27 +0100
commitb68a20d6675f1360ea4db50a9835c073675b9889 (patch)
tree04c4b525cdd838ddd3bdd0cf0bfad8cb1157aad1 /bfd
parent0c096ed760273eb364d2e4e6def21f688ceff525 (diff)
downloadgdb-b68a20d6675f1360ea4db50a9835c073675b9889.zip
gdb-b68a20d6675f1360ea4db50a9835c073675b9889.tar.gz
gdb-b68a20d6675f1360ea4db50a9835c073675b9889.tar.bz2
[ARM] Fix extern protected data handling
Emit *GLOB_DAT instead of *RELATIVE relocs for protected data in shared objects. This is needed for the fix of glibc bug 17711: https://sourceware.org/bugzilla/show_bug.cgi?id=17711 bfd: PR ld/18705 * elf32-arm.c (elf_backend_extern_protected_data): Define. ld/testsuite: PR ld/18705 * ld-arm/protected-data.d: New. * ld-arm/protected-data.s: New. * ld-arm/arm-elf.exp: Add new test.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-arm.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1d1a1d2..553b8c9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-27 Szabolcs Nagy <szabolcs.nagy@arm.com>
+
+ PR ld/18705
+ * elf32-arm.c (elf_backend_extern_protected_data): Define.
+
2015-07-25 H.J. Lu <hongjiu.lu@intel.com>
PR ld/18718
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 367dff3..ff69728 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -16236,6 +16236,7 @@ elf32_arm_get_synthetic_symtab (bfd *abfd,
#define elf_backend_default_use_rela_p 0
#define elf_backend_got_header_size 12
+#define elf_backend_extern_protected_data 1
#undef elf_backend_obj_attrs_vendor
#define elf_backend_obj_attrs_vendor "aeabi"