[AArch64] Fix extern protected data handling
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 27 Jul 2015 10:48:48 +0000 (11:48 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 27 Jul 2015 10:48:48 +0000 (11:48 +0100)
commit32f573bcb3aaa1c9defcad79dbb5851fcc02ae2d
treeaf0f7a43f27080ec94da5a622c47f0b76fd02478
parentb68a20d6675f1360ea4db50a9835c073675b9889
[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.
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/protected-data.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/protected-data.s [new file with mode: 0644]