summaryrefslogtreecommitdiff
path: root/lld/test
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-12-15 00:20:17 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-12-15 00:20:17 +0000
commit8dfd77b47fa08ffa8f176843c90a19a604243e87 (patch)
tree0eca310b5a4484f28fcfc122f9a240d9a8028fed /lld/test
parent5b261d732b6b0b1e29be26ad80254f1544dcff61 (diff)
ELF: Handle R_ARM_V4BX correctly in PIC output files.
Previously we considered R_ARM_V4BX to be an absolute relocation, which meant that we rejected it in read-only sections in PIC output files. Instead, treat it as a hint relocation so that relocation processing ignores it entirely. Also fix a problem with the test case where it was never being run because it has a .yaml extension and we don't run tests with that extension. Differential Revision: https://reviews.llvm.org/D55728
Diffstat (limited to 'lld/test')
-rw-r--r--lld/test/ELF/arm-v4bx.test (renamed from lld/test/ELF/v4bx.yaml)2
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/test/ELF/v4bx.yaml b/lld/test/ELF/arm-v4bx.test
index 8dd619faa57..1b39a431417 100644
--- a/lld/test/ELF/v4bx.yaml
+++ b/lld/test/ELF/arm-v4bx.test
@@ -2,6 +2,8 @@
# RUN: yaml2obj %s -o %t.o
# RUN: ld.lld %t.o -o %t
# RUN: llvm-readelf -sections %t | FileCheck %s
+# RUN: ld.lld -shared %t.o -o %t
+# RUN: llvm-readelf -sections %t | FileCheck %s
# CHECK: .text