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.
+2019-09-18 Tamar Christina <tamar.christina@arm.com>
+
+ * testsuite/binutils-all/objdump.exp (objump -S): Update testcases.
+
2019-09-18 Alan Modra <amodra@gmail.com>
* addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c,
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"
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"