The support of R_PPC_ADDR16_HI improves ld compatibility and makes things on par with RuntimeDyldELF that already implements this relocation.
Diff Detail
Diff Detail
Event Timeline
test/ELF/ppc-relocs.s | ||
---|---|---|
27–32 | Well, initially I did not, since it was simple. Yet I have just checked bfd, and ensured that it is the same. | |
78 | I wanted the HA/HI tests be closer to each other for readability reasons. |
Comment Actions
LGTM
For the record, R_PPC64_ADDR_HI is defined as
R_PPC64_ADDR16_HI 5 half16 #hi(S + A)
where
#hi(x) = ((x >> 16) & 0xffff).
in this document: http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#RELOC-TYPE
I assume you checked that bfd or gold produce the same results?