Skip to contentSkip to conversation

Align the sys_call_table

PATCH New Stephen Rothwell 1 participant 1 message Oct 9, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Align the sys_call_table

Our _GLOBAL macro does a ".align 2" so the alignment is fine for 32 bit, but on 64 bit it is possible for it to end up only 4 byte aligned. I don't know if it matters, but it can't hurt to 8 byte align it.

It also means that when we build with --emit_relocs, none of our 64 bit relocations are to misaligned places.

---
 arch/powerpc/kernel/systbl.S |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
arch/powerpc/kernel/systbl.S +2 -0
index 579de70..93219c3 100644
@@ -39,6 +39,8 @@
 #ifdef CONFIG_PPC64
 #define sys_sigpending	sys_ni_syscall
 #define sys_old_getrlimit sys_ni_syscall
+
+	.p2align	3
 #endif
 
 _GLOBAL(sys_call_table)
Signature · 1 line
1.5.3.4