* testsuite/final_layout.sh: Use dc to convert from hex to
authorIan Lance Taylor <ian@airs.com>
Mon, 2 Aug 2010 07:41:04 +0000 (07:41 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 2 Aug 2010 07:41:04 +0000 (07:41 +0000)
decimal.

gold/ChangeLog
gold/testsuite/final_layout.sh

index 006b1df97bc4c7852a16aa1e76245d9b7f711baf..f0062d5478f9a34912efee4f57dce720f10e7ad8 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-02  Ian Lance Taylor  <iant@google.com>
+
+       * testsuite/final_layout.sh: Use dc to convert from hex to
+       decimal.
+
 2010-07-29  Sriraman Tallam  <tmsriram@google.com>
 
        * arm.cc (Target_arm<big_endian>::gc_process_relocs): Add template
index ed7ad78b9e31646e955dcaa3ac9e534ca9161d41..01b1f1d987b39d6c797699e342f9e762620e1a1d 100755 (executable)
 
 check()
 {
-    func_addr_1=$((16#`grep $2 $1 | awk '{print $1}'`))
-    func_addr_2=$((16#`grep $3 $1 | awk '{print $1}'`))
+    func_addr_1=`grep $2 $1 | awk '{print $1}' | tr 'abcdef' 'ABCDEF'`
+    func_addr_1=`echo 16i${func_addr_1}p | dc`
+    func_addr_2=`grep $3 $1 | awk '{print $1}' | tr 'abcdef' 'ABCDEF'`
+    func_addr_2=`echo 16i${func_addr_2}p | dc`
     if [ $func_addr_1 -gt $func_addr_2 ]
     then
         echo "final layout of" $2 "and" $3 "is not right."