https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90378
--- Comment #12 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> --- I'm now more of the opinion that this problem is due to the unfortunate stack layout on older ARMv7 systems. I.e., LTO increases stack usage, which causes the process to run out of stack. I don't think anything needs to be fixed on GCC side, and, hopefully, we can fix this on our end by upgrading from 3.10 kernel to something more modern.