scripts/mkdiff_obj: show "size OBJFILE" too
authorDenys Vlasenko <dvlasenk@redhat.com>
Fri, 29 Oct 2010 17:06:20 +0000 (19:06 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Fri, 29 Oct 2010 17:06:20 +0000 (19:06 +0200)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
scripts/mkdiff_obj

index f783491afd7e4d88e0694093e5928eeb33acb5b1..307474874428d6c92f129fbdebce472b0a2a544a 100755 (executable)
@@ -39,8 +39,8 @@ while IFS='' read -r oname; do
                continue
        fi
        diff -q -- "$1/$oname" "$2/$oname" >/dev/null && continue
-       (cd "$1"; objdump -dr "$oname" | filter >"$oname.disasm")
-       (cd "$2"; objdump -dr "$oname" | filter >"$oname.disasm")
+       (cd "$1" && { size "$oname"; objdump -dr "$oname" | filter; } >"$oname.disasm")
+       (cd "$2" && { size "$oname"; objdump -dr "$oname" | filter; } >"$oname.disasm")
        diff -u -- "$1/$oname.disasm" "$2/$oname.disasm"
 done
 )