[LLVMbugs] [Bug 5032] Bad DWARF encoding in EH frames.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Sep 23 14:35:38 PDT 2009


Bill Wendling <wendling at apple.com> changed:

           What    |Removed                     |Added
                 CC|                            |wendling at apple.com
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Bill Wendling <wendling at apple.com>  2009-09-23 16:35:37 ---
(In reply to comment #0)
> I am _not_ an expert on DWARF.  But I think this is wrong.  Shouldn't @TType
> format be DW_EH_PE_uleb128?  Otherwise a dwarf reader would take @TType offset
> as an absoulte pointer address.

Hi Steve,

No. The "@TType format" applies to the encoding of functions within the
exception table, not to the offsets. For instance on Darwin (with gcc, not
llvm), we put the EH table in the __TEXT section. This requires the functions
to be encoded in a PC-relative way. Something like this:

    .long L__ZId-.


Yes, it's confusing. But then so is this whole area of exception handling. :-)

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list