Przeglądaj źródła

powerpc: Align p_end

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 <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Anton Blanchard 11 lat temu
rodzic
commit
286e4f90a7
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      arch/powerpc/kernel/head_64.S

+ 1 - 0
arch/powerpc/kernel/head_64.S

@@ -470,6 +470,7 @@ _STATIC(__after_prom_start)
 	mtctr	r8
 	mtctr	r8
 	bctr
 	bctr
 
 
+.balign 8
 p_end:	.llong	_end - _stext
 p_end:	.llong	_end - _stext
 
 
 4:	/* Now copy the rest of the kernel up to _end */
 4:	/* Now copy the rest of the kernel up to _end */