binutils-gdb/ld/testsuite/ld-arm/protected-data.d
Fangrui Song af9bf9cb47 arm: Define elf_backend_extern_protected_data to 0 [PR 18705]
Similar to commit 4fb55bf6a9 for aarch64.

Commit b68a20d667 changed ld to produce
R_ARM_GLOB_DAT but that defeated the purpose of protected visibility
as an optimization.  Restore the previous behavior (which matches
ld.lld) by defining elf_backend_extern_protected_data to 0.
2022-06-25 10:27:49 -07:00

6 lines
91 B
Makefile

#target: [check_shared_lib_support]
#ld: -shared
#readelf: -r -W
#...
.* R_ARM_RELATIVE .*