diff options
author | Daniel Dadap <ddadap@nvidia.com> | 2019-04-27 11:21:34 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-05-03 23:05:01 +0900 |
commit | e46b94d228458aefc2553ee7c34ab18c2e3288e3 (patch) | |
tree | a193e46c66d67921ead8f641c7ff6e717abacafb /scripts | |
parent | e7e3491761a46a63ce504388075e262192ea542e (diff) | |
download | linux-rpi-e46b94d228458aefc2553ee7c34ab18c2e3288e3.tar.gz linux-rpi-e46b94d228458aefc2553ee7c34ab18c2e3288e3.tar.bz2 linux-rpi-e46b94d228458aefc2553ee7c34ab18c2e3288e3.zip |
scripts: override locale from environment when running recordmcount.pl
recordmcount.pl uses a set of regular expressions to parse the output of
objdump(1). However, if objdump(1) output is localized, it may not match
the regular expressions, thereby preventing recordmcount.pl from parsing
object files correctly.
In order to allow recordmcount.pl to function correctly regardless of the
current locale settings, set LANG=C when running objdump(1). LC_ALL is
already unset in the top-level Makefile, so it is not necessary to also
override that environment variable.
Signed-off-by: Daniel Dadap <ddadap@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/recordmcount.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index 68841d01162c..ffea46287f83 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl @@ -493,7 +493,7 @@ sub update_funcs # # Step 2: find the sections and mcount call sites # -open(IN, "$objdump -hdr $inputfile|") || die "error running $objdump"; +open(IN, "LANG=C $objdump -hdr $inputfile|") || die "error running $objdump"; my $text; |