32f573bcb3
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.
4 lines
65 B
Makefile
4 lines
65 B
Makefile
#ld: -shared
|
|
#readelf: -r -W
|
|
#...
|
|
.* R_AARCH64_GLOB_DAT .* var.*
|