From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mark E." To: binutils@sourceware.cygnus.com Subject: DJGPP COFF patches Date: Tue, 20 Jul 1999 13:01:00 -0000 Message-id: <199907202001.UAA83936@out5.ibm.net> X-SW-Source: 1999-q3/msg00279.html The attached patch implements COFF .gnu.linkonce support (presented again so it's synced against late yesterday's CVS) plus the config changes needed so DJGPP can use it. I've tested with BFD assembler and non-BFD assembler. My test case worked as expected (just one copy in the final .exe) and the value printed was correct. Changelog for BFD: 1999-07-20 Mark Elbrecht * coffcode.h (styp_to_sec_flags) [COFF_LONG_SECTION_NAMES, COFF_SUPPORT_GNU_LINKONCE]: Sections whose names begin with .gnu.linkonce are marked with the flags SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD. This is an optimization for GNU C++. * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define. (COFF_SUPPORT_GNU_LINKONCE): Define. (coff-stgo32.c) (COFF_LONG_SECTION_NAMES): Define. (COFF_SUPPORT_GNU_LINKONCE): Define Changelog for GAS: 1999-07-20 Mark Elbrecht * config/te-go32.h (COFF_LONG_SECTION_NAMES): Define. (COFF_SUPPORT_GNU_LINKONCE): Define. Changelog for GLD: 1999-07-20 Mark Elbrecht * scripttempl/i386go32coff.sc: Add handling of .gnu.linkonce sections. Attachments: C:\temp\bin.dif --- Mark Elbrecht, snowball3@bigfoot.com http://snowball.frogspace.net/