https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101669
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is weird. There is no .debug_loc section with DWARF 5 at all, only .debug_loclists. I don't see any complains from readelf: readelf --debug-dump=loc pr101669 >/dev/null (binutils 2.36.1). And no errors from gdb (10.2). So isn't this because of too old gdb or binutils?