]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: Linker on-demand sfpr functions for modules
authorNicholas Piggin <npiggin@gmail.com>
Thu, 11 May 2017 15:56:52 +0000 (01:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 May 2017 04:59:51 +0000 (14:59 +1000)
commit0d463439ce10f9ff53253d7d48bdf7d5caaa670e
tree61f8f8ad39191e2bbc1980e2a493b63ddc79f397
parent1b2d5c0c89c6a64c6593e51f7a93121d182aba73
powerpc/64: Linker on-demand sfpr functions for modules

For final link, the powerpc64 linker generates fpr save/restore
functions on-demand, placing them in the .sfpr section. Starting with
binutils 2.25, these can be provided for non-final links with
--save-restore-funcs. Use that where possible for module links.

This saves about 200 bytes per module (~60kB) on powernv defconfig
build.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Makefile
arch/powerpc/lib/Makefile