------- Comment #3 from deuling at de dot ibm dot com 2008-03-17 19:28 ------- Hi Andrew,
attached is my little test program I use. The error is seen both on x86 and PowerPC: * i686 i686 i386 GNU/Linux * ppc64 ppc64 ppc64 GNU/Linux following versions of binutils: x86: binutils-2.17.50.0.6-5.el5 PowerPC: binutils-2.17.50.0.12-4 objdump -W says: objdump: Error: Location lists in .debug_info section aren't in ascending order! Contents of the .debug_loc section: Offset Begin End Expression 00000000 080485b4 080485b5 (DW_OP_breg4: 4) 00000000 080485b5 080485b7 (DW_OP_breg4: 8) 00000000 080485b7 0804868b (DW_OP_breg5: 8) 00000000 <End of list> objdump: Warning: There is an overlap [0x2c - 0xfffffffe] in .debug_loc section. objdump: Warning: Offset 0xfffffffe is bigger than .debug_loc section size. objdump: Warning: There is a hole [0xfffffffe - 0x2c] in .debug_loc section. As seen in comment #1 readelf also gives that error. AFAIK readelf does not use BFD library as GDB and objdump do so I believe this is not an error in BFD library. I use GDB's current head. I also tried gdb-6.5-25.el5_1.1 and it also occurs. Regards, Markus Deuling -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35615