https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125899
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> --- depending on your target crtbegin/crtend (compiled from crtstuff.c)is just a loop over __DTOR_LIST__/__CTOR_END__. It needs to becompiled without debugging info for the same reason why it needs to be compiled without -fno-exceptions. But if gdb is messing up line info that sounds like a bug in gdb.
