Summary: Incorrect DWARF section names on Mac
           Product: D
           Version: future
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
            Blocks: 4044

--- Comment #0 from Jacob Carlborg <> 2010-05-03 08:58:33 PDT ---
Created an attachment (id=622)
Fixes the incorrect DWARF section names

According to the Mach-O file format reference:
section names should be all lowercase and prefixed with two underscores "__".
DMD output the DWARF section names with a dot "." as the prefix instead of the
two underscores. Both GCC and Clang output the DWARF section names prefixed
with two underscores.

I've attached a patch which fixes this. But with this patch (I think) one or
several offsets somehow become incorrect. This is the output of dwarfdump

The offset into the .debug_abbrev section (0xffffffff) is not valid.

Maybe it's because the section names are now one character longer or there is
something other that isn't working.

The patch is against DMD revision 466.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to