summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib
diff options
context:
space:
mode:
authorNicholas Piggin2017-05-11 17:56:51 +0200
committerMichael Ellerman2017-05-30 06:59:51 +0200
commitcde9f2f4207f769c0f8f0f53a431348ca6f3c182 (patch)
treeafc49a0d2f532395ca627e79609e276c4cbedd89 /arch/powerpc/lib
parentpowerpc/64: Do not link crtsaveres.o in boot (diff)
downloadkernel-qcow2-linux-cde9f2f4207f769c0f8f0f53a431348ca6f3c182.tar.gz
kernel-qcow2-linux-cde9f2f4207f769c0f8f0f53a431348ca6f3c182.tar.xz
kernel-qcow2-linux-cde9f2f4207f769c0f8f0f53a431348ca6f3c182.zip
powerpc/64: Do not create new section for save/restore functions
There is no need to create a new section for these. Consolidate with 32-bit and just use .text. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/lib')
-rw-r--r--arch/powerpc/lib/crtsavres.S6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/lib/crtsavres.S b/arch/powerpc/lib/crtsavres.S
index 18af0b3d3eb2..7e5e1c28e56a 100644
--- a/arch/powerpc/lib/crtsavres.S
+++ b/arch/powerpc/lib/crtsavres.S
@@ -44,10 +44,10 @@
#ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
-#ifndef CONFIG_PPC64
-
.section ".text"
+#ifndef CONFIG_PPC64
+
/* Routines for saving integer registers, called by the compiler. */
/* Called with r11 pointing to the stack header word of the caller of the */
/* function, just beyond the end of the integer save area. */
@@ -314,8 +314,6 @@ _GLOBAL(_restvr_31)
#else /* CONFIG_PPC64 */
- .section ".text.save.restore","ax",@progbits
-
.globl _savegpr0_14
_savegpr0_14:
std r14,-144(r1)