summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/objdiff')
-rwxr-xr-xscripts/objdiff5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/objdiff b/scripts/objdiff
index 499eb4bc1e8d..c997e44e4b54 100755
--- a/scripts/objdiff
+++ b/scripts/objdiff
@@ -65,13 +65,14 @@ dorecord() {
for f in $FILES; do
dir=$(get_output_dir $f)
- bn="${f##*/}"
+ base=${f##*/}
+ dis=$dir/${base%.o}.dis
[ ! -d "$dir" ] && mkdir -p $dir
# remove addresses for a more clear diff
# http://dummdida.tumblr.com/post/60924060451/binary-diff-between-libc-from-scientificlinux-and
- $OBJDUMP -D $f | sed "s/^[[:space:]]\+[0-9a-f]\+//" > $dir/$bn
+ $OBJDUMP -D $f | sed "s/^[[:space:]]\+[0-9a-f]\+//" > $dis
done
}