From: ian AT cygnus DOT com (Ian Lance Taylor) Subject: Re: ld bug 4 Jul 1998 09:51:15 -0700 Message-ID: <199807041625.MAA07270.cygnus.cygwin32.developers@subrogation.cygnus.com> References: <01BDA784 DOT E78A8AE0 AT sos> To: sos AT prospect DOT com DOT ru Cc: cygwin32-developers AT cygnus DOT com From: Sergey Okhapkin Date: Sat, 4 Jul 1998 19:49:48 +0400 It's possible now to compile/run an executable with user-defined sections, but now I see a problem with strip... I think this bug has always been there--I don't think it had anything to do with my linker changs. strip fails to handle long section names. I think this patch fixes it. Ian Index: coffcode.h =================================================================== RCS file: /cvs/cvsfiles/devo/bfd/coffcode.h,v retrieving revision 1.320 diff -u -p -r1.320 coffcode.h --- coffcode.h 1998/06/30 10:02:19 1.320 +++ coffcode.h 1998/07/04 16:25:18 @@ -3058,6 +3058,15 @@ coff_write_object_contents (abfd) if (! coff_write_relocs (abfd, firstundef)) return false; } +#ifdef COFF_LONG_SECTION_NAMES + else if (long_section_names) + { + /* 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; + } +#endif #ifdef COFF_IMAGE_WITH_PE #ifdef PPC_PE else if ((abfd->flags & EXEC_P) != 0)