https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79171
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 1) This is not GCC related at all, this is binutils related. 2) You are linking directly against a shared library and trying to create a static executable; that will never work.