]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Switch to relative jump labels
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 23 Mar 2021 15:47:59 +0000 (15:47 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 3 Apr 2021 10:22:21 +0000 (21:22 +1100)
commit952080456ad64c3c2b9ffcad5ef736271622bd7b
treee7fc69dcd5cc6fa92e54efa1b93b4272119da67c
parentf1a53761ddcd7007ce808ad844df13b43cd01cf7
powerpc: Switch to relative jump labels

Convert powerpc to relative jump labels.

Before the patch, pseries_defconfig vmlinux.o has:
9074 __jump_table  0003f2a0  0000000000000000  0000000000000000  01321fa8  2**0

With the patch, the same config gets:
9074 __jump_table  0002a0e0  0000000000000000  0000000000000000  01321fb4  2**0

Size is 258720 without the patch, 172256 with the patch.
That's a 33% size reduction.

Largely copied from commit cd96cf48fffa ("arm64/kernel: jump_label:
Switch to relative references")

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/828348da7868eda953ce023994404dfc49603b64.1616514473.git.christophe.leroy@csgroup.eu
arch/powerpc/Kconfig
arch/powerpc/include/asm/jump_label.h
arch/powerpc/kernel/jump_label.c