eh_frame_hdr generation quirk
Mon Oct 9 00:29:00 GMT 2006
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.
IBM OzLabs - Linux Technology Centre
More information about the Binutils