patch to fix nm.c(print_object_filename_bsd) on FreeBSD
David O'Brien
obrien@FreeBSD.org
Tue Apr 18 14:44:00 GMT 2000
nm's output is wrong in this respect and causes problems for FreeBSD's
``lorder''. This patch may easily not be acceptable as is. If not,
please give direction for how to fix the problem in nm.
2000-04-18 David O'Brien <obrien@FreeBSD.org>
* nm.c (print_object_filename_bsd): Fix test to properly format
output.
Index: nm.c
===================================================================
RCS file: /cvs/src/src/binutils/nm.c,v
retrieving revision 1.7
diff -u -r1.7 nm.c
--- nm.c 2000/04/07 04:34:50 1.7
+++ nm.c 2000/04/18 21:28:03
@@ -1268,7 +1268,11 @@
print_object_filename_bsd (filename)
char *filename;
{
- if (filename_per_file && !filename_per_symbol)
+ if (filename_per_file
+#ifndef __FreeBSD__
+ && !filename_per_symbol
+#endif
+ )
printf ("\n%s:\n", filename);
}
More information about the Binutils
mailing list