[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250718122052.3787471-1-alexander.stein@ew.tq-group.com>
Date: Fri, 18 Jul 2025 14:20:51 +0200
From: Alexander Stein <alexander.stein@...tq-group.com>
To: Josh Poimboeuf <jpoimboe@...nel.org>
Cc: Alexander Stein <alexander.stein@...tq-group.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/1] scripts/faddr2line: Use C locale for readelf
If readelf support localized output the following sed calls will fail
due to mismatched texts. Use C locale to get untranslated output.
Signed-off-by: Alexander Stein <alexander.stein@...tq-group.com>
---
scripts/faddr2line | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/faddr2line b/scripts/faddr2line
index 1fa6beef9f978..fbeb67903b792 100755
--- a/scripts/faddr2line
+++ b/scripts/faddr2line
@@ -107,7 +107,7 @@ find_dir_prefix() {
run_readelf() {
local objfile=$1
- local out=$(${READELF} --file-header --section-headers --symbols --wide $objfile)
+ local out=$(LANG=C ${READELF} --file-header --section-headers --symbols --wide $objfile)
# This assumes that readelf first prints the file header, then the section headers, then the symbols.
# Note: It seems that GNU readelf does not prefix section headers with the "There are X section headers"
--
2.43.0
Powered by blists - more mailing lists