This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
patch to fix nm.c(print_object_filename_bsd) on FreeBSD
- To: binutils at sourceware dot cygnus dot com
- Subject: patch to fix nm.c(print_object_filename_bsd) on FreeBSD
- From: "David O'Brien" <obrien at FreeBSD dot org>
- Date: Tue, 18 Apr 2000 14:44:13 -0700
- Organization: The NUXI BSD group
- Reply-To: obrien at FreeBSD dot org
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);
}