Skip to contentSkip to conversation

PPC: Add _GLOBAL_TOC for 32bit

PATCH New Alexander Graf 1 participant 1 message Jun 26, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: Add _GLOBAL_TOC for 32bit

Commit ac5a8ee8 started using _GLOBAL_TOC on ppc32 code. Unfortunately it's only defined for 64bit targets though. Define it for ppc32 as well, fixing the build breakage that commit introduced.

---
 arch/powerpc/include/asm/ppc_asm.h | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/include/asm/ppc_asm.h +2 -0
index 9ea266e..7e46125 100644
@@ -277,6 +277,8 @@ n:
 	.globl n;	\
 n:
 
+#define _GLOBAL_TOC(name) _GLOBAL(name)
+
 #define _KPROBE(n)	\
 	.section ".kprobes.text","a";	\
 	.globl	n;	\
Signature · 1 line
1.8.1.4