Skip to content

Commit

Permalink
powerpc: Align p_dyn, p_rela and p_st symbols
Browse files Browse the repository at this point in the history
The 64bit relocation code places a few symbols in the text segment.
These symbols are only 4 byte aligned where they need to be 8 byte
aligned. Add an explicit alignment.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: stable@vger.kernel.org
Tested-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Anton Blanchard authored and Benjamin Herrenschmidt committed Mar 7, 2014
1 parent 621b506 commit a5b2cf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kernel/reloc_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ _GLOBAL(relocate)

6: blr

.balign 8
p_dyn: .llong __dynamic_start - 0b
p_rela: .llong __rela_dyn_start - 0b
p_st: .llong _stext - 0b
Expand Down

0 comments on commit a5b2cf5

Please sign in to comment.