https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116642
--- Comment #29 from Andrew Pinski <pinskia at gcc dot gnu.org> --- That is: `-static -pie` which should remove the requirement of `-Wl,--no-dynamic-linker` too. Basically a (non-static) PIE binary requires using the dynamic loader to do the relocations while a static PIE does not.