diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-03-05 05:34:43 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-03-05 05:34:43 +0000 |
commit | 742547e4262caedd05f8192fcbba7bcfb37d3dac (patch) | |
tree | ea44a462c6d49a28d7980ef28a86400272ac37f3 /build_tools | |
parent | 8c8a6dabc36ec834f63eb080c6ed343b6a616a8b (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-x | build_tools/make_firmware_object | 5 |
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 |