ELF: Handle R_ARM_V4BX correctly in PIC output files.
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 15 Dec 2018 00:20:17 +0000 (00:20 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sat, 15 Dec 2018 00:20:17 +0000 (00:20 +0000)
commitae15e7232a4c12a2691c94c6585692ff6d1421e9
tree611cf3302bf9b2b008aae2e8b5993c1e47d7b316
parenta6682a413d893bc1ed6190dfadcee806155da66e
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

llvm-svn: 349216
lld/ELF/Arch/ARM.cpp
lld/test/ELF/arm-v4bx.test [moved from lld/test/ELF/v4bx.yaml with 92% similarity]