This is the mail archive of the binutils@sourceware.org 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: eh_frame_hdr generation quirk


On Fri, Oct 06, 2006 at 04:59:47PM +0100, Jan Beulich wrote:
> The first thing _bfd_elf_discard_section_eh_frame() does when
> encountering an FDE is
> 
> 	  /* Ensure this FDE uses the last CIE encountered.  */
> 	  REQUIRE (last_cie);
> 	  REQUIRE (hdr.id == (unsigned int) (buf - 4 - last_cie));
> 
> Can anyone explain why this condition is required?

If you don't satisfy this condition, then we would need to keep info
about all CIEs, not just the last one.  eg. cie.fde_encoding.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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