This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Allow partial C++ linking with i386/PE
- To: binutils at sourceware dot cygnus dot com
- Subject: Allow partial C++ linking with i386/PE
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 29 Oct 1999 16:49:24 -0000
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