asan: NULL deref in scan_unit_for_symbols
[binutils-gdb.git] / ld / testsuite / ld-mmix / b-nosym.d
index 06594a1b1d10587f133898560525a1fb793f4a6b..c7953eca68d29763ada6f75cda2bd9ced329053a 100644 (file)
@@ -3,13 +3,16 @@
 #source: b-nosym.s
 #ld: --oformat binary
 #objcopy_linked_file:
-#objdump: -st
+#objdump: -st 2>/dev/null
+
+# Note that we have to redirect stderr when objdumping to get rid of the
+# "no symbols" message that would otherwise cause a spurious failure and
+# which we seemingly can't identify or prune in another way.
 
 .*:     file format mmo
 
 SYMBOL TABLE:
-0+4 g       \.text Main
-
+no symbols
 
 Contents of section \.text:
  0000 e3fd0001 e3fd0004                    .*