[Issue 4154] New: Incorrect DWARF section names on Mac
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 3 08:58:35 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4154
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
AssignedTo: nobody at puremagic.com
ReportedBy: doob at me.com
Blocks: 4044
--- Comment #0 from Jacob Carlborg <doob at me.com> 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:
http://developer.apple.com/Mac/library/documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html
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
--verify:
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list