aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfnn-aarch64.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2015-07-27 11:48:48 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2015-07-27 11:48:48 +0100
commit32f573bcb3aaa1c9defcad79dbb5851fcc02ae2d (patch)
treeaf0f7a43f27080ec94da5a622c47f0b76fd02478 /bfd/elfnn-aarch64.c
parentb68a20d6675f1360ea4db50a9835c073675b9889 (diff)
downloadgdb-32f573bcb3aaa1c9defcad79dbb5851fcc02ae2d.zip
gdb-32f573bcb3aaa1c9defcad79dbb5851fcc02ae2d.tar.gz
gdb-32f573bcb3aaa1c9defcad79dbb5851fcc02ae2d.tar.bz2
[AArch64] 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 * elfnn-aarch64.c (elf_backend_extern_protected_data): Define. ld/testsuite: PR ld/18705 * ld-aarch64/protected-data.d: New. * ld-aarch64/protected-data.s: New. * ld-aarch64/aarch64-elf.exp: Add new test.
Diffstat (limited to 'bfd/elfnn-aarch64.c')
-rw-r--r--bfd/elfnn-aarch64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
index 3471d7e..9712253 100644
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -8655,6 +8655,7 @@ const struct elf_size_info elfNN_aarch64_size_info =
#define elf_backend_rela_normal 1
#define elf_backend_got_header_size (GOT_ENTRY_SIZE * 3)
#define elf_backend_default_execstack 0
+#define elf_backend_extern_protected_data 1
#undef elf_backend_obj_attrs_section
#define elf_backend_obj_attrs_section ".ARM.attributes"