diff options
author | Fangrui Song <maskray@google.com> | 2022-06-23 01:04:39 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-06-23 01:04:39 -0700 |
commit | 4fb55bf6a9606eb7b626c30a9f4e71d6c2d4fbb2 (patch) | |
tree | f7c1915dd6173ddb8967df5227fd6b2538b48d06 /ld | |
parent | 325600eb1175e6f989f201ae885c8fae82953264 (diff) | |
download | gdb-4fb55bf6a9606eb7b626c30a9f4e71d6c2d4fbb2.zip gdb-4fb55bf6a9606eb7b626c30a9f4e71d6c2d4fbb2.tar.gz gdb-4fb55bf6a9606eb7b626c30a9f4e71d6c2d4fbb2.tar.bz2 |
aarch64: Define elf_backend_extern_protected_data to 0 [PR 18705]
Follow-up to commit 90b7a5df152a64d2bea20beb438e8b81049a5c30
("aarch64: Disallow copy relocations on protected data").
Commit 32f573bcb3aaa1c9defcad79dbb5851fcc02ae2d changed ld to produce
R_AARCH64_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-aarch64/protected-data.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-aarch64/protected-data.d b/ld/testsuite/ld-aarch64/protected-data.d index 5dabf04..ee9b4cf 100644 --- a/ld/testsuite/ld-aarch64/protected-data.d +++ b/ld/testsuite/ld-aarch64/protected-data.d @@ -2,4 +2,4 @@ #ld: -shared #readelf: -r -W #... -.* R_AARCH64_GLOB_DAT .* var.* +.* R_AARCH64_RELATIVE .* |