This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Dwarf 2 section flags ?
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Brian Ford <ford at vss dot fsi dot com>
- Cc: Elias Athanasopoulos <elathan at phys dot uoa dot gr>, binutils at sources dot redhat dot com
- Date: Fri, 21 Feb 2003 10:04:05 +1030
- Subject: Re: Dwarf 2 section flags ?
- References: <20030220120908.A10750@neutrino.particles.org> <Pine.GSO.4.44.0302200830060.19283-100000@eos>
On Thu, Feb 20, 2003 at 08:56:37AM -0600, Brian Ford wrote:
> Yes, most bfd targets do this via a strncmp of the section name with
> ".debug". In my opinion, that is a gross hack.
I disagree. In the case of ELF, the ELF ABI explicitly states that
sections named .debug* contain debugging information.
> Unfortunately, since there is currently no equivalent to the .stab
> directive for DWARF, and there is currently no way to set the
> debugging flag via the assembly file for sections generated by the
> compiler, I have to give in and use the section name comparison anyway.
There is no ELF section flag for marking debug sections. SEC_DEBUGGING
in bfd is just an internal flag. How the flag maps to the target format
must be done in a target dependent way.
--
Alan Modra
IBM OzLabs - Linux Technology Centre