diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-06-09 06:16:38 +0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2014-06-10 16:59:33 +0400 |
commit | 8b5d0f20d64f00ffd5685879f8eb3659379f5aaa (patch) | |
tree | f1e3418163d8d1643e9714a8badebb01661231ad /scripts/objdiff | |
parent | 18165efa8203a34d82f60a1831ea290e7304c654 (diff) | |
download | linux-8b5d0f20d64f00ffd5685879f8eb3659379f5aaa.tar.xz |
scripts: objdiff: change the extension of disassembly from .o to .dis
Prior to this commit, the command "scripts/objdiff record path/to/*.o"
disassembled the given object into ".tmp_objdiff/path/to/*.o" file.
The problem here is that recorded disassemblies are lost if we run
"make clean" because it removes all the *.o files.
Disassembled code should be dumped into *.dis instead of *.o files.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/objdiff')
-rwxr-xr-x | scripts/objdiff | 5 |
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 } |