SPRAB89A September 2011 – March 2014
A relocation that refers to an undefined weak symbol is satisfied as follows:
When used in a R_C6000_PCR_S21 relocation and the instruction to be relocated has the following form:
B.S2 sym ; R_C6000_PCRS21
Then the instruction is replaced with:
B.B2 B3
All other cases are non-conformant with the ABI.
As required elsewhere in this specification, if the weak symbol is resolved and the 21-bit PC-relative address cannot reach the target destination, the linker must generate a trampoline to implement the relocation.