https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101669

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
            Version|11.0                        |11.1.1
           Keywords|                            |wrong-debug
                 CC|                            |jakub at gcc dot gnu.org
   Last reconfirmed|                            |2021-07-29
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
gdb doesn't complain for me but readelf does:

readelf: Warning: Location lists in .debug_loc section start at 0x10
readelf: Warning: Location list starting at offset 0x10 is not terminated.
readelf: Warning: Hole and overlap detection requires adjacent view lists and
loclists.
readelf: Warning: Location list starting at offset 0x2b is not terminated.
readelf: Warning: There is an overlap [0xe4 - 0x0] in .debug_loc section.

it doesn't happen with -gdwarf-4.  It also happens with GCC 9 and -gdwarf-5.
With GCC 7 and -gdwarf-5 there are many more complaints from readelf.

Reply via email to