[PATCH] powerpc: Align p_dyn, p_rela and p_st symbols
Laurent Dufour
ldufour at linux.vnet.ibm.com
Wed Mar 5 02:45:15 EST 2014
On 03/03/2014 22:31, Anton Blanchard wrote:
>
> 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 at samba.org>
> Cc: stable at vger.kernel.org
Fix the issue I was seeing when booting a LE kernel in a KVM guest on my
P7 box.
Tested-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
> ---
>
> diff --git a/arch/powerpc/kernel/reloc_64.S b/arch/powerpc/kernel/reloc_64.S
> index 1482327..d88736f 100644
> --- a/arch/powerpc/kernel/reloc_64.S
> +++ b/arch/powerpc/kernel/reloc_64.S
> @@ -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
> Linuxppc-dev at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>
More information about the Linuxppc-dev
mailing list