From 742547e4262caedd05f8192fcbba7bcfb37d3dac Mon Sep 17 00:00:00 2001 From: kpfleming Date: Mon, 5 Mar 2007 05:34:43 +0000 Subject: 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 --- build_tools/make_firmware_object | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build_tools') 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 -- cgit v1.2.3