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