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]

Allow partial C++ linking with i386/PE


This patch was put on the list about a month ago, and it is essential
for partial linkage with C++ and i386/PE.

Please scream if you don't want me to check this in...

Andrew.

1999-10-06  Andrew Haley  <aph@cygnus.com>

	* coffcode.h (coff_write_object_contents): Don't call
	coff_write_symbols if we already have a nonzero
	obj_raw_syment_count.

Index: coffcode.h
===================================================================
RCS file: /cvs/cvsfiles/devo/bfd/coffcode.h,v
retrieving revision 1.324.2.2
diff -u -r1.324.2.2 coffcode.h
--- coffcode.h	1999/05/28 00:33:18	1.324.2.2
+++ coffcode.h	1999/10/06 15:30:08
@@ -3021,8 +3021,9 @@
     {
       /* If we have long section names we have to write out the string
          table even if there are no symbols.  */
-      if (! coff_write_symbols (abfd))
-	return false;
+      if (obj_raw_syment_count (abfd) == 0) 
+	if (! coff_write_symbols (abfd))
+	  return false;
     }
 #endif
 #ifdef COFF_IMAGE_WITH_PE

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