https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106908
--- Comment #2 from ralphengels at gmail dot com <ralphengels at gmail dot com> --- ah my bad then i just thought it looked suspicious especially since i been having problems building gnat. For some reason it tries to link to the static libgcc library and aborts due to an exception. So i had to change the GCC_LINKER_FLAGS to force -shared-libgcc. so when i spotted this i assumed a typo might have occured breaking the exception handlers.