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)
commitefe0160cfd40a99c052a00e174787c1f4158a9cd
tree61f8f8ad39191e2bbc1980e2a493b63ddc79f397
parentcde9f2f4207f769c0f8f0f53a431348ca6f3c182
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