+2002-08-27 Alan Modra <amodra@bigpond.net.au>
+
+ * nm.c: Revert last change.
+
2002-08-26 Alan Modra <amodra@bigpond.net.au>
* nm.c (display_rel_file): Don't report "no symbols" as an error.
if (! dynamic)
{
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
- return;
+ {
+ non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
+ return;
+ }
}
symcount = bfd_read_minisymbols (abfd, dynamic, &minisyms, &size);
bfd_fatal (bfd_get_filename (abfd));
if (symcount == 0)
- return;
+ {
+ non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
+ return;
+ }
/* Discard the symbols we don't want to print.
It's OK to do this in place; we'll free the storage anyway
+2002-08-27 Alan Modra <amodra@bigpond.net.au>
+
+ * binutils-all/objcopy.exp: Revert last change.
+
2002-08-26 Alan Modra <amodra@bigpond.net.au>
* binutils-all/objcopy.exp (strip_test): Adjust for "no symbols" on
}
set exec_output [binutils_run $NM "-a $NMFLAGS $objfile"]
- if ![string match "" $exec_output] {
+ if ![string match "*: no symbols*" $exec_output] {
fail $test
return
}
}
set exec_output [binutils_run $NM "$NMFLAGS ${copyfile}"]
- if ![string match "" $exec_output] {
+ if ![string match "*: no symbols*" $exec_output] {
fail $test
return
}
+2002-08-27 Alan Modra <amodra@bigpond.net.au>
+
+ * ld-mmix/b-nosym.d: Revert last change.
+
2002-08-26 Alan Modra <amodra@bigpond.net.au>
* ld-mmix/b-nosym.d: Adjust for "no symbols" on stdout.
#source: b-nosym.s
#ld: --oformat binary
#objcopy_linked_file:
-#objdump: -st
+#objdump: -st 2>/dev/null
-.*: file format mmo
-
-SYMBOL TABLE:
-no symbols
+# 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
Contents of section \.text:
0000 e3fd0001 e3fd0004 .*