[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1535471570-19033-1-git-send-email-philippe.reynes@softathome.com>
Date: Tue, 28 Aug 2018 17:52:50 +0200
From: Philippe Reynes <philippe.reynes@...tathome.com>
To: ralf@...ux-mips.org, paul.burton@...s.com, jhogan@...nel.org
Cc: linux-mips@...ux-mips.org, linux-kernel@...r.kernel.org,
Philippe Reynes <philippe.reynes@...tathome.com>
Subject: [PATCH] MIPS: Fix computation on entry point
Since commit 27c524d17430 ("MIPS: Use the entry point from the ELF
file header"), the kernel entry point is computed with a grep on
"start address" on the output of objdump. It works fine when the
default language is english but it may fail on other language (for
example in French, the grep should be done on "adresse de départ").
To fix this computation on most machine, I propose to force the
language to english with "LC_ALL=C".
Fixes: 27c524d17430 ("MIPS: Use the entry point from the ELF file header")
Signed-off-by: Philippe Reynes <philippe.reynes@...tathome.com>
---
arch/mips/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index d74b374..835aa8f 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -258,7 +258,7 @@ load-y = $(CONFIG_PHYSICAL_START)
endif
# Sign-extend the entry point to 64 bits if retrieved as a 32-bit number.
-entry-y = $(shell $(OBJDUMP) -f vmlinux 2>/dev/null \
+entry-y = $(shell LC_ALL=C $(OBJDUMP) -f vmlinux 2>/dev/null \
| sed -n '/^start address / { \
s/^.* //; \
s/0x\([0-7].......\)$$/0x00000000\1/; \
--
2.7.4
Powered by blists - more mailing lists