From: Tamar Christina Date: Thu, 19 Sep 2019 12:15:02 +0000 (+0100) Subject: AArch64: Fix objdump tests X-Git-Tag: binutils-2_33~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7bfaf47869572604492a4ab051e5d1bca77cf4e6;p=external%2Fbinutils.git AArch64: Fix objdump tests The newly added objdump -S tests check for source line mapping of a static variable. But the test doesn't dump any data sections so this should never pass. This changes the test to dump all sections so the source mapping can be found. binutils/ChangeLog: * testsuite/binutils-all/objdump.exp (objdump -S): Update testcases. (cherry picked from commit 4e28d4cc5b134a4027b4103ddaf09c19b8e0230b) --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 596f36a..167e937 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2019-09-19 Tamar Christina + + * testsuite/binutils-all/objdump.exp (objdump -S): Update testcase. + 2019-09-16 Phil Blundell * Makefile.in, doc/Makefile.in, configure: Regenerated. diff --git a/binutils/testsuite/binutils-all/objdump.exp b/binutils/testsuite/binutils-all/objdump.exp index 9630bac..58b66d4 100644 --- a/binutils/testsuite/binutils-all/objdump.exp +++ b/binutils/testsuite/binutils-all/objdump.exp @@ -818,7 +818,7 @@ proc test_objdump_S { } { return } - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -S tmpdir/testprog"] + set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -D -S tmpdir/testprog"] set want "static int local = 2" @@ -830,7 +830,7 @@ proc test_objdump_S { } { set test "objdump --source-comment" - set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --source-comment=// tmpdir/testprog"] + set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble-all --source-comment=// tmpdir/testprog"] set want "//static int local = 2"