]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1faf1dd4f437cf917ee5eb0abaa0b0e36cef79b2
tree56388dc99234164a245b0113322727b900119f4f
parent0c9b1687b2c5b4f3f5224135479917d14c5d1f98
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