This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] Support unordered .debug_info references to .debug_ranges
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: binutils at sourceware dot org, Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Mon, 13 Jul 2009 12:37:47 +0100
- Subject: Re: [patch] Support unordered .debug_info references to .debug_ranges
- References: <20090713095453.GA21747@host0.dyn.jankratochvil.net>
Jan Kratochvil wrote:
> Hi,
>
> readelf sometimes complains on valid DWARF already produced by g++-4.3+:
>
> readelf: Error: Range lists in .debug_info section aren't in ascending order!
> readelf: Warning: Range lists in .debug_ranges section start at 0x60
> [...]
>
> A Googled bugreport:
> http://gcc.gnu.org/ml/gcc/2009-01/msg00540.html
Just FYI and FTR: a fix was posted at
http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00649.html
and see also
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40713
> Not sure if it would be worth the performance to have a no-copy optimization
> for already sorted references.
I think quite likely, since hopefully GCC will stop emitting debug info like
this.
cheers,
DaveK