Re: RFC: Mark a section to be discarded for DSO and executable

2007-01-09 Thread Rod Evans
H. J. Lu wrote: With LTO, an object file may contain sections with IL, which can be discarded when building DSO and executable. Currently we can't mark such sections with gABI. With GNU linker, we can use a linker script to discard such sections. But it will be more generic to make a section to b

Re: RFC: Mark a section to be discarded for DSO and executable

2007-01-09 Thread Rod Evans
Lu, Hongjiu wrote: It looks like SHF_EXCLUDE is exactly what I am looking for. How useful is it in your experiences? As far as I can tell, this was introduced with the SYSTEM V APPLICATION BINARY INTERFACE for the PowerPC Processor Supplement back in September 1995 :-) Then the Fortran folks

Re: RFC: Mark a section to be discarded for DSO and executable

2007-01-09 Thread Rod Evans
Rod Evans wrote: Lu, Hongjiu wrote: It looks like SHF_EXCLUDE is exactly what I am looking for. How useful is it in your experiences? As far as I can tell, this was introduced with the SYSTEM V APPLICATION BINARY INTERFACE for the PowerPC Processor Supplement back in September 1995 :-) Then