https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87221
--- Comment #3 from coypu <coypu at sdf dot org> --- I think the change in bug 81523 to make -static imply no PIE might be wrong, as static PIE is a thing. It might be more right to limit that change only for configurations that don't support static PIE.