This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix .debug_rnglists generation with -gdwarf-5 -gsplit-dwarf.
- From: Mark Wielaard <mark at klomp dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Nov 2017 17:58:59 +0100
- Subject: Re: [PATCH] Fix .debug_rnglists generation with -gdwarf-5 -gsplit-dwarf.
- Authentication-results: sourceware.org; auth=none
- References: <1511442837-6114-1-git-send-email-mark@klomp.org> <20171123133335.GL14653@tucnak>
On Thu, 2017-11-23 at 14:33 +0100, Jakub Jelinek wrote:
> On Thu, Nov 23, 2017 at 02:13:57PM +0100, Mark Wielaard wrote:
> > * dwarf2out.c (init_sections_and_labels): Use generation to create
> > unique ranges_section_label and ranges_base_label. Return generation.
> > (output_rnglists): Add generation argument. Use generation to create
> > unique ranges labels.
> > (dwarf2out_finish): Get generation from init_sections_and_labels
> > and pass generation to output_rnglists.
>
> Ok.
Thanks. Pushed.
> Though, note that -gdwarf-5 -gsplit-dwarf is really unfinished anyway,
> I did what was easy, but left out what was harder and did no testing at all
> (don't know what tools are needed for the split dwarf processing etc.).
Yes, I noticed. In particular the indirect index forms addrx and strx
are never used, only the GNU addr_index and str_index ones. I am adding
DWARF5 support to elfutils libdw. But it doesn't have support for
split-dwarf yet. I'll see if I can help update gcc when I get split-
dwarf working in elfutils. One issue with that is that binutils/gdb do
support split-dwarf or DWARF5, but not DWARF5 and split-dwarf yet.
Cheers,
Mark