diff options
author | Laurent Vivier <laurent@vivier.eu> | 2015-11-05 06:31:34 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-11-26 06:11:16 -0500 |
commit | 58531b0c800fd514f04ae42b6cf5ab15abdf0651 (patch) | |
tree | 9c5f03c9f11dcae032bbe3572593138dcf239325 | |
parent | 6c3082151e13846fd872cc216e8cbb5a59cd0b12 (diff) |
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>
-rwxr-xr-x | arch/powerpc/boot/wrapper | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index ceaa75d5a684..6a19fcef5596 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper | |||
@@ -154,7 +154,7 @@ if [ -z "$kernel" ]; then | |||
154 | kernel=vmlinux | 154 | kernel=vmlinux |
155 | fi | 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 | case "$elfformat" in | 158 | case "$elfformat" in |
159 | elf64-powerpcle) format=elf64lppc ;; | 159 | elf64-powerpcle) format=elf64lppc ;; |
160 | elf64-powerpc) format=elf32ppc ;; | 160 | elf64-powerpc) format=elf32ppc ;; |