Skip to content

Commit

Permalink
powerpc: Align p_end
Browse files Browse the repository at this point in the history
p_end is an 8 byte value embedded in the text section. This means it
is only 4 byte aligned when it should be 8 byte aligned. Fix this
by adding an explicit alignment.

This fixes an issue where POWER7 little endian builds with
CONFIG_RELOCATABLE=y fail to boot.

Signed-off-by: Anton Blanchard <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
antonblanchard authored and ozbenh committed Dec 30, 2013
1 parent ca1de5d commit 286e4f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ _STATIC(__after_prom_start)
mtctr r8
bctr

.balign 8
p_end: .llong _end - _stext

4: /* Now copy the rest of the kernel up to _end */
Expand Down

0 comments on commit 286e4f9

Please sign in to comment.