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

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 Lu, Hongjiu
>To: [EMAIL PROTECTED] >Cc: gcc@gcc.gnu.org; [EMAIL PROTECTED] >Subject: Re: RFC: Mark a section to be discarded for DSO and executable > > >H. J. Lu wrote: >> With LTO, an object file may contain sections with IL, which >> can be discarded when building DSO and e

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 H. J. Lu
On Tue, Jan 09, 2007 at 10:09:35AM -0800, Ian Lance Taylor wrote: > > That is not strictly required for LTO as I see it. With LTO, the lto > program is going to read the .o files with the IL information. It > will then generate a new .s file to pass to the assembler. The IL > information will n

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

2007-01-09 Thread Seongbae Park
On 09 Jan 2007 10:09:35 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: "H. J. Lu" <[EMAIL PROTECTED]> writes: > 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

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

2007-01-09 Thread Ian Lance Taylor
"H. J. Lu" <[EMAIL PROTECTED]> writes: > 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