summaryrefslogtreecommitdiff
path: root/rtemstoolkit/elftoolchain
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-01-09 09:05:18 +1100
committerChris Johns <chrisj@rtems.org>2017-01-09 09:05:18 +1100
commit31e22e337cf3d1f60e91142ac83b29b6b0f00713 (patch)
treec9c4a029cc9b59f922b7221acbd0a7eaf1f8f336 /rtemstoolkit/elftoolchain
parent516f9311e61fb4ec2184d9614f8dd0726d70514a (diff)
libelf: Use minimal environment for C translation with readelf.
The output of readelf needs to be in English.
Diffstat (limited to 'rtemstoolkit/elftoolchain')
-rwxr-xr-xrtemstoolkit/elftoolchain/common/native-elf-format3
1 files changed, 1 insertions, 2 deletions
diff --git a/rtemstoolkit/elftoolchain/common/native-elf-format b/rtemstoolkit/elftoolchain/common/native-elf-format
index af70759..4b06672 100755
--- a/rtemstoolkit/elftoolchain/common/native-elf-format
+++ b/rtemstoolkit/elftoolchain/common/native-elf-format
@@ -19,7 +19,7 @@ touch ${tmp_c}
echo "/* Generated by ${program} on `date` */"
cc -c ${tmp_c} -o ${tmp_o}
-readelf -h ${tmp_o} | awk '
+LANG="C" readelf -h ${tmp_o} | awk '
$1 ~ "Class:" {
sub("ELF","",$2); elfclass = $2;
}
@@ -44,4 +44,3 @@ END {
printf("#define ELFTC_ARCH %s\n", elfarch);
printf("#define ELFTC_BYTEORDER ELFDATA2%s\n", elfdata);
}'
-