https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68229
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-debug Status|UNCONFIRMED |WAITING Last reconfirmed| |2015-11-06 Ever confirmed|0 |1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Works for me with GCC 5 (?), so can you please check a newer GCC as GCC 4.8 is no longer supported. readelf -S progtest.o libtest.o progtest.x | grep -A1 .debug_pubnames [ 9] .debug_pubnames PROGBITS 0000000000000000 000001da 0000000000000028 0000000000000000 0 0 1 -- [ 9] .debug_pubnames PROGBITS 0000000000000000 000001ee 0000000000000025 0000000000000000 0 0 1 -- [29] .debug_pubnames PROGBITS 0000000000000000 00001230 000000000000004d 0000000000000000 0 0 1 readelf -wp progtest.o libtest.o File: progtest.o Contents of the .debug_pubnames section: Length: 36 Version: 2 Offset into .debug_info section: 0x0 Size of area in .debug_info section: 218 Offset Name 80 main c4 variable File: libtest.o Contents of the .debug_pubnames section: Length: 33 Version: 2 Offset into .debug_info section: 0x0 Size of area in .debug_info section: 241 Offset Name a2 f b9 i dc pt readelf -wp progtest.x Contents of the .debug_pubnames section: Length: 36 Version: 2 Offset into .debug_info section: 0x15b Size of area in .debug_info section: 218 Offset Name 80 main c4 variable Length: 33 Version: 2 Offset into .debug_info section: 0x235 Size of area in .debug_info section: 241 Offset Name a2 f b9 i dc pt