This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Support for DDWARF-2 debug info? (on Cygwin)
- From: Nick Clifton <nickc at redhat dot com>
- To: Brian Ford <ford at vss dot fsi dot com>
- Cc: cygwin at cygwin dot com, <binutils at sources dot redhat dot com>, <dave at beermex dot com>, <cgf at redhat dot com>
- Date: 16 Jan 2003 09:36:09 +0000
- Subject: Re: Support for DDWARF-2 debug info? (on Cygwin)
- References: <Pine.GSO.4.44.0301141037200.12926-100000@eos>
Hi Brian,
> The coff versions of sec_to_styp_flags and styp_to_sec_flag in bfd
> look to see if the section name begins with .debug and modify the
> section flags appropriately. The PE versions do not even look at
> the section name.
Ahh, yes, you are right. I guess that no-one has tried to
incporporate DWARF2 sections into the PE format before. I guess that,
for now you are going to have to add similar name-checking code to the
PE versions.
Ideally what we ought to do is give gcc some way to tell gas that
"this section is a debug section" and then gas could do the right
thing. Perhaps a new pseudo op ".debug_section <name>" ?
Cheers
Nick