powerpc: Align p_toc
authorAnton Blanchard <anton@samba.org>
Tue, 6 Aug 2013 16:01:18 +0000 (02:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 01:50:19 +0000 (11:50 +1000)
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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/head_64.S

index b61363d..3d11d80 100644 (file)
@@ -703,6 +703,7 @@ _GLOBAL(relative_toc)
        mtlr    r0
        blr
 
+.balign 8
 p_toc: .llong  __toc_start + 0x8000 - 0b
 
 /*