https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121473
--- Comment #3 from Cristian Morales Vega <christian.morales.vega at gmail dot com> --- Thanks. FWIW MIPS seems to have an extra problem through libatomic. As far as I can tell, libatomic.a is always built without -fpic, isn't it? There is not even an option to make it use it? It may be worth its own bug report, independently of this. MIPS being MIPS, it seems libatomic is easily automatically brought in. And with libatomic.a having been built without -fpic, static-pie doesn't really work.