Similar to R_MIPS_GPREL16 and R_MIPS_GPREL32 (D45972).
If the addend of an R_PPC_PLTREL24 is >= 0x8000, it indicates that r30
is relative to the input section .got2.
addis 30, 30, .got2+0x8000-.L1$pb@ha addi 30, 30, .got2+0x8000-.L1$pb@l ... bl foo+0x8000@PLT
After linking, the relocation will be relative to the output section .got2.
To compensate for the shift address(input section .got2) - address(output section .got2) = ppc32Got2OutSecOff, adjust by ppc32Got2OutSecOff:
addis 30, 30, .got2+0x8000-.L1+ppc32Got2OutSecOff$pb@ha addi 30, 30, .got2+0x8000-.L1+ppc32Got2OutSecOff$pb@ha$pb@l ... bl foo+0x8000+ppc32Got2OutSecOff@PLT
This rule applys in a relocatable link or in a non-relocatable link with --emit-relocs.