[lsb-discuss] Bug in DWARF specs

jacob navia jacob at jacob.remcomp.fr
Thu Jul 13 09:08:06 PDT 2006


Wichmann, Mats D wrote:

>>This fact took me two days of work for finding it out. Either a bug in 
>>the code or a bug in the specs. The difference is 4 bytes since
>>CIE_delta comes after the length field.
>>
>>Please fix the specs, since if you fix the code everything will go 
>>crashing as my program did...
>>    
>>
>
>Please tell us: which code are you referring to when you say
>"the code"?  Is this an lsb tool, the gcc/binutils toolchain, or ????
>
>I'm expecting that this will indeed turn out to be a spec problem,
>but we need as much data as possible first.
>  
>
Please read my message:
What does the code say?
In the file unwind-dw2-fde.h we find:
/* Locate the CIE for a given FDE.  */

static inline const struct dwarf_cie *
get_cie (const struct dwarf_fde *f)
{
  return (void *)&f->CIE_delta - f->CIE_delta;
}

file: unwind-dw2-fde.h in the gcc sources




More information about the lsb-discuss mailing list