powerpc: Align p_dyn, p_rela and p_st symbols
PATCH 1/1 powerpc: Align p_dyn, p_rela and p_st symbols
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 <[email protected]>
---
arch/powerpc/kernel/reloc_64.S +1 -0
@@ -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
Quoted 7 lines · Anton Blanchard
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 <[email protected]>
Fix the issue I was seeing when booting a LE kernel in a KVM guest on my P7 box.
Tested-by Laurent Dufour <[email protected]>
Quoted 19 lines
---
arch/powerpc/kernel/reloc_64.S +1
-0@@ -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_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev