We should not be adding the relocation addend to the instruction encoding.
This patch removes that and sets those bits to zero.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I've put the return instructions back in place.
The test in this patch already prints out the addend. The CHECK-O section prints out the relocation and then it has symbol+<addend>. Is that what you are looking for?
For example:
; CHECK-O-NEXT: 0000000000000000: R_PPC64_PCREL34 array2+0x1c
Comment Actions
LGTM.
The CHECK-O section prints out the relocation and then it has symbol+<addend>. Is that what you are looking for?
Yeah, not sure how I missed that the first time. Sorry.
I think you are better keeping the return here.