Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/boot: allow wrapper to work on non-english system

if the language is not english objdump output is not parsed correctly
and format is "". Later, "ld -m $format" fails.

This patch adds "LANG=C" to force english output for objdump.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Laurent Vivier and committed by
Michael Ellerman
58531b0c 6c308215

+1 -1
+1 -1
arch/powerpc/boot/wrapper
··· 154 154 kernel=vmlinux 155 155 fi 156 156 157 - elfformat="`${CROSS}objdump -p "$kernel" | grep 'file format' | awk '{print $4}'`" 157 + LANG=C elfformat="`${CROSS}objdump -p "$kernel" | grep 'file format' | awk '{print $4}'`" 158 158 case "$elfformat" in 159 159 elf64-powerpcle) format=elf64lppc ;; 160 160 elf64-powerpc) format=elf32ppc ;;