scripts: objdiff: Ignore debug info when comparing
authorStephen Boyd <stephen.boyd@linaro.org>
Thu, 16 Feb 2017 21:18:20 +0000 (13:18 -0800)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 11 Mar 2017 02:13:38 +0000 (11:13 +0900)
commit65ba6fa439e7c3cbf97de9dce9e7a3390ae2638c
treec492a23485d863197d9c85094708583cdd56e252
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
scripts: objdiff: Ignore debug info when comparing

If the kernel is configured to be built with debug symbols, or
has bug tables, comparing files may not work if line numbers
change. This makes comparing object files with these options
harder to do. Let's strip out the debug info and drop the
__bug_table here so that we don't see false positives. There may
be other things to drop later, and it may be architecture
specific, but this works for me with my ARM64 build.

Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Reviewed-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/objdiff