Skip to contentSkip to conversation

powerpc: Align p_toc

PATCH New Anton Blanchard 1 participant 1 message Jul 31, 2013 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Align p_toc

p_toc is an 8 byte relative offset to the TOC that we place in the text section. This means it is only 4 byte aligned where it should be 8 byte aligned. Add an explicit alignment.

---

arch/powerpc/kernel/head_64.S +1 -0
Index: b/arch/powerpc/kernel/head_64.S
===================================================================
@@ -703,6 +703,7 @@ _GLOBAL(relative_toc)
 	mtlr	r0
 	blr
 
+.balign 8
 p_toc:	.llong	__toc_start + 0x8000 - 0b
 
 /*