This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Generating per-function DWARF line number sections
- From: Cary Coutant <ccoutant at google dot com>
- To: nick clifton <nickc at redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 1 May 2013 12:43:40 -0700
- Subject: Re: RFC: Generating per-function DWARF line number sections
- References: <87haiyppev dot fsf at redhat dot com> <20130426021535 dot GB31074 at bubble dot grove dot modra dot org> <517A34F3 dot 2040002 at redhat dot com> <517E78A1 dot 2050505 at redhat dot com> <CAHACq4rk9uTeS-yBuDTsxqw12ONYeatE=0K1Vprn+YyEn_Jy_g at mail dot gmail dot com> <518146E0 dot 5080706 at redhat dot com>
> Under normal circumstances the fix proposed above will still work because
> gas will create a debug line fragment section called .debug_line.text.dwo.
> (Assuming that dwo() was compiled with function sectioning enabled).
>
> To really muck things up the programmer would have to provide a section
> attribute to the dwo() function as well. Ie:
>
> void dwo (void) __attribute__((section("dwo"));
> void dwo (void) { ; }
>
> And then compile it without function sectioning enabled but with
> --gdwarf-sections enabled. Which seems pretty unlikely to me.
Agreed. Thanks!
-cary