[BACK]Return to check_sym CVS log [TXT][DIR] Up to [local] / src / lib

Diff for /src/lib/check_sym between version 1.8 and 1.9

version 1.8, 2019/08/09 05:02:19 version 1.9, 2019/10/05 00:59:24
Line 204 
Line 204 
 readelf -sW $new | filt_symtab > /tmp/s2  readelf -sW $new | filt_symtab > /tmp/s2
   
   
 cpu=$(uname -p)  case $(readelf -h $new | grep '^ *Machine:') in
 if [[ $cpu = mips64* ]]  *MIPS*) cpu=mips64;;
   *HPPA*) cpu=hppa;;
   *)      cpu=dontcare;;
   esac
   
   if [[ $cpu = mips64 ]]
 then  then
         gotsym1=$(readelf -d $old | awk '$2 ~ /MIPS_GOTSYM/{print $3}')          gotsym1=$(readelf -d $old | awk '$2 ~ /MIPS_GOTSYM/{print $3}')
         gotsym2=$(readelf -d $new | awk '$2 ~ /MIPS_GOTSYM/{print $3}')          gotsym2=$(readelf -d $new | awk '$2 ~ /MIPS_GOTSYM/{print $3}')
Line 213 
Line 218 
   
 jump_slots() {  jump_slots() {
         case $cpu in          case $cpu in
         hppa*)  awk '/IPLT/ && $5 != ""{print $5}' /tmp/r$1          hppa)   awk '/IPLT/ && $5 != ""{print $5}' /tmp/r$1
                 ;;                  ;;
         mips*)  # the $((gotsym$1)) converts hex to decimal          mips64) # the $((gotsym$1)) converts hex to decimal
                 awk -v g=$((gotsym$1)) \                  awk -v g=$((gotsym$1)) \
                         '/^Symbol table ..symtab/{exit}                          '/^Symbol table ..symtab/{exit}
                         $1+0 >= g && $4 == "FUNC" {print $8}' /tmp/s$1                          $1+0 >= g && $4 == "FUNC" {print $8}' /tmp/s$1

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9