summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-05 05:34:43 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-05 05:34:43 +0000
commit742547e4262caedd05f8192fcbba7bcfb37d3dac (patch)
treeea44a462c6d49a28d7980ef28a86400272ac37f3 /build_tools
parent8c8a6dabc36ec834f63eb080c6ed343b6a616a8b (diff)
ensure that we run objdump in the most generic language possible to avoid complications on non-English systems (issue #9196)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2280 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/make_firmware_object5
1 files changed, 3 insertions, 2 deletions
diff --git a/build_tools/make_firmware_object b/build_tools/make_firmware_object
index b00c8f9..49f1714 100755
--- a/build_tools/make_firmware_object
+++ b/build_tools/make_firmware_object
@@ -6,7 +6,8 @@
# 2 - output file
# 3 - template output file (used to learn desired format)
-bfdname=`objdump -f ${3} | grep -e "${3}:" | sed "s/.*file format \(.*\)/\1/"`
-bfdarch=`objdump -f ${3} | grep -e "architecture:" | sed "s/.*ture: \(.*\),.*/\1/"`
+bfdname=`LANG=C objdump -f ${3} | grep -e "${3}:" | sed "s/.*file format \(.*\)/\1/"`
+bfdarch=`LANG=C objdump -f ${3} | grep -e "architecture:" | sed "s/.*ture: \(.*\),.*/\1/"`
objcopy -I binary ${1} -B ${bfdarch} -O ${bfdname} ${2} --rename-section .data=.rodata,alloc,load,data,contents,readonly
+n