This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Re: EH frame optimization bug


On Fri, Oct 03, 2003 at 04:23:54PM +0200, Jakub Jelinek wrote:
> On Fri, Oct 03, 2003 at 08:01:28AM -0700, H. J. Lu wrote:
> > I think it is too late to remove paddings in _bfd_elf_write_section_eh_frame.
> > The only thing we can do at this point is to pad the current section
> > for the next section, which is aligned.
> 
> At write_section_eh_frame time it is too late, sure.
> But at _bfd_elf_discard_section_eh_frame time it is not.
> I meant something like:
> 
> 2003-10-03  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): If .eh_frame
> 	section doesn't use "eh" CIEs nor DW_EH_PE_aligned encoding,
> 	decrease section alignment to byte alignment.
> 

If the first .eh_frame section is changed to byte alignment, will
that be a problem for unwind routine? Does unwind routine have
any alignment requirement?


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]