Add R_PPC_ADDR16_HI relocation support
authorRui Ueyama <ruiu@google.com>
Sun, 22 Oct 2017 23:33:49 +0000 (23:33 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 22 Oct 2017 23:33:49 +0000 (23:33 +0000)
commit8faafa4fb1452b45f7b5bcf77f4e44a6846f6f70
tree2b0e65b6c39e4f22e93ab193e851c5894626c36c
parentd96724db42c04af11d0ff1f8a57d36cb8284752b
Add R_PPC_ADDR16_HI relocation support

The support of R_PPC_ADDR16_HI improves ld compatibility and makes
things on par with RuntimeDyldELF that already implements this
relocation.

Patch by vit9696.

llvm-svn: 316306
lld/ELF/Arch/PPC.cpp
lld/test/ELF/ppc-relocs.s