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


>>> Alan Modra <amodra@bigpond.net.au> 10/09/06 2:29 AM >>>
>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.

I don't think so - we just need to re-read the referenced CIE if the FDE
doesn't refer to the one most recently read.

Jan


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