This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: eh_frame_hdr generation quirk
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jan Beulich <jbeulich at novell dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 9 Oct 2006 09:59:33 +0930
- Subject: Re: eh_frame_hdr generation quirk
- References: <45269993.76E4.0078.0@novell.com>
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