https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81155
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 43114 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43114&action=edit gcc8-pr81155.patch Untested workaround till GDB is fixed, disable partitioning of main in lto.