This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch to fix nm.c(print_object_filename_bsd) on FreeBSD


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);
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]