Patchwork powerpc: Align p_toc

login
register
mail settings
Submitter Anton Blanchard
Date April 29, 2013, 1:52 a.m.
Message ID <20130429115200.41aaf848@kryten>
Download mbox | patch
Permalink /patch/240312/
State Accepted, archived
Commit 5b63fee1fe5d10c397d740ffef4d576a196ed72d
Headers show

Comments

Anton Blanchard - April 29, 2013, 1:52 a.m.
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.

Signed-off-by: Anton Blanchard <anton@samba.org>
---

Patch

Index: b/arch/powerpc/kernel/head_64.S
===================================================================
--- a/arch/powerpc/kernel/head_64.S
+++ 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
 
 /*