diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-05-12 01:56:50 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-05-30 14:59:51 +1000 |
commit | 7c868b66f8cc29bb9a63632b324a6fa661bdec05 (patch) | |
tree | a641fbadc0678b58ab6bd6ee2200a80e6bd6e4be /arch/powerpc/boot/crtsavres.S | |
parent | baa25b571a168aff5a13bfdc973f1229e2b12b63 (diff) | |
download | op-kernel-dev-7c868b66f8cc29bb9a63632b324a6fa661bdec05.zip op-kernel-dev-7c868b66f8cc29bb9a63632b324a6fa661bdec05.tar.gz |
powerpc/64: Do not link crtsaveres.o in boot
crtsaveres.S is empty with 64-bit builds already, so just don't
build and link it to match the vmlinux build.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Use CONFIG_PPC64_BOOT_WRAPPER not CONFIG_PPC32 to fix BE build]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/crtsavres.S')
-rw-r--r-- | arch/powerpc/boot/crtsavres.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/boot/crtsavres.S b/arch/powerpc/boot/crtsavres.S index f3d9b35..085fb2b 100644 --- a/arch/powerpc/boot/crtsavres.S +++ b/arch/powerpc/boot/crtsavres.S @@ -37,12 +37,13 @@ * the executable file might be covered by the GNU General Public License. */ +#ifdef __powerpc64__ +#error "On PPC64, FPR save/restore functions are provided by the linker." +#endif + .file "crtsavres.S" .section ".text" -/* On PowerPC64 Linux, these functions are provided by the linker. */ -#ifndef __powerpc64__ - #define _GLOBAL(name) \ .type name,@function; \ .globl name; \ @@ -230,4 +231,3 @@ _GLOBAL(_rest32gpr_31_x) mtlr 0 mr 1,11 blr -#endif |