[patch] Support unordered .debug_info references to .debug_ranges

Dave Korn dave.korn.cygwin@googlemail.com
Mon Jul 13 11:25:00 GMT 2009


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



More information about the Binutils mailing list