[ELF] Implement RISCV::getImplicitAddend()
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Fri, 9 Jul 2021 09:12:43 +0000 (10:12 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Fri, 9 Jul 2021 09:41:40 +0000 (10:41 +0100)
commit97fe63753938680cbbb968737f85ff0caedf221c
tree2f60d7ca71d21e3031f0c8359568690500af8a39
parente5649328428f107962bf82a43299ba126514aae9
[ELF] Implement RISCV::getImplicitAddend()

This allows checking dynamic relocation addends for -z rel and
--apply-dynamic-relocs output.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D101455
lld/ELF/Arch/RISCV.cpp
lld/ELF/Driver.cpp