Skip to contentSkip to conversation

powerpc: Align p_dyn, p_rela and p_st symbols

PATCH In review Anton Blanchard 2 participants 2 messages Mar 3, 2014 – Mar 4, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

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.

---

arch/powerpc/kernel/reloc_64.S +1 -0
index 1482327..d88736f 100644
@@ -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
Tested-by on v1 1/1
#1 lore raw
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.

Fix the issue I was seeing when booting a LE kernel in a KVM guest on my P7 box.

Quoted 19 lines

---

arch/powerpc/kernel/reloc_64.S +1 -0
index 1482327..d88736f 100644
@@ -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