https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121473
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Cristian Morales Vega from comment #3) > 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. That seems like a generic issue as libatomic might needed for other static pie programs on other targets. And yes it should be its own bug report.