[ELF][test] Enhance relative dynamic relocation tests
authorAndrew Ng <andrew.ng@sony.com>
Mon, 4 Oct 2021 16:09:18 +0000 (17:09 +0100)
committerAndrew Ng <andrew.ng@sony.com>
Tue, 5 Oct 2021 10:32:22 +0000 (11:32 +0100)
commit3334b9d70bc86501b91eae0a5ec2459ef2da6bb3
tree1aae4556937367be78fbdca0646e7b90e6494f24
parent8ed0e6b2cf941aa29628acdf718e82618d60bfc0
[ELF][test] Enhance relative dynamic relocation tests

Add checking of the value of the relocation with an addend. Also check
all relocation offsets.

Differential Revision: https://reviews.llvm.org/D111071
lld/test/ELF/relative-dynamic-reloc-pie.s
lld/test/ELF/relative-dynamic-reloc.s