summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/elftoolchain/common/native-elf-format
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit/elftoolchain/common/native-elf-format')
-rwxr-xr-xrtemstoolkit/elftoolchain/common/native-elf-format5
1 files changed, 3 insertions, 2 deletions
diff --git a/rtemstoolkit/elftoolchain/common/native-elf-format b/rtemstoolkit/elftoolchain/common/native-elf-format
index f239e30..4b06672 100755
--- a/rtemstoolkit/elftoolchain/common/native-elf-format
+++ b/rtemstoolkit/elftoolchain/common/native-elf-format
@@ -1,5 +1,7 @@
#!/bin/sh
#
+# $Id: native-elf-format 2064 2011-10-26 15:12:32Z jkoshy $
+#
# Find the native ELF format for a host platform by compiling a
# test object and examining the resulting object.
#
@@ -17,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;
}
@@ -42,4 +44,3 @@ END {
printf("#define ELFTC_ARCH %s\n", elfarch);
printf("#define ELFTC_BYTEORDER ELFDATA2%s\n", elfdata);
}'
-