DJGPP COFF patches

Mark E. snowball3@bigfoot.com
Tue Jul 20 13:01:00 GMT 1999


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 <snowball3@bigfoot.com> 

* 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 <snowball3@bigfoot.com> 


* config/te-go32.h (COFF_LONG_SECTION_NAMES): Define. 
  (COFF_SUPPORT_GNU_LINKONCE): Define. 


Changelog for GLD: 


1999-07-20 Mark Elbrecht <snowball3@bigfoot.com> 


* scripttempl/i386go32coff.sc: Add handling of .gnu.linkonce sections. 




Attachments: 
  C:\temp\bin.dif 
--- 
Mark Elbrecht, snowball3@bigfoot.com
http://snowball.frogspace.net/


More information about the Binutils mailing list