aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-06-25 10:27:49 -0700
committerFangrui Song <i@maskray.me>2022-06-25 10:27:49 -0700
commitaf9bf9cb4703909caf6e66a9f746bdd66a74f633 (patch)
treeca12bf2576332aee7559b7f8044487872211e7ce /ld
parent1fa2e2287e8bcac6427f2495049e0ccfb3ee8514 (diff)
downloadfsf-binutils-gdb-af9bf9cb4703909caf6e66a9f746bdd66a74f633.zip
fsf-binutils-gdb-af9bf9cb4703909caf6e66a9f746bdd66a74f633.tar.gz
fsf-binutils-gdb-af9bf9cb4703909caf6e66a9f746bdd66a74f633.tar.bz2
arm: Define elf_backend_extern_protected_data to 0 [PR 18705]
Similar to commit 4fb55bf6a9606eb7b626c30a9f4e71d6c2d4fbb2 for aarch64. Commit b68a20d6675f1360ea4db50a9835c073675b9889 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.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-arm/protected-data.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-arm/protected-data.d b/ld/testsuite/ld-arm/protected-data.d
index 3f266de..7dffe9a 100644
--- a/ld/testsuite/ld-arm/protected-data.d
+++ b/ld/testsuite/ld-arm/protected-data.d
@@ -2,4 +2,4 @@
#ld: -shared
#readelf: -r -W
#...
-.* R_ARM_GLOB_DAT .* var.*
+.* R_ARM_RELATIVE .*