powerpc/boot: Make use of REL16 relocs in powerpc/boot/util.S
authorAlan Modra <amodra@gmail.com>
Fri, 27 Nov 2020 00:48:42 +0000 (11:48 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:00:44 +0000 (01:00 +1100)
commit3d635aba0b35ad5412042d40732f8cec5f58e6c6
tree56388dc99234164a245b0113322727b900119f4f
parentf47462c9d8af437ae7d3ef410cf11513f5e3714c
powerpc/boot: Make use of REL16 relocs in powerpc/boot/util.S

Use bcl 20,31,0f rather than plain bl to avoid unbalancing the link
stack.

Update the code to use REL16 relocs, available for ppc64 in 2009 (and
ppc32 in 2005).

Signed-off-by: Alan Modra <amodra@gmail.com>
[mpe: Incorporate more detail into the change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/util.S