https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117047
--- Comment #29 from Sam James <sjames at gcc dot gnu.org> --- richi's build doesn't use those flags, it instead does pgo+lto; lto is probably the key bit there to get visibility discovery for similar effects in some cases to -fno-semantic-interposition. I also suspect --enable-host-pie may be able to replace --enable-default-pie. But I'm bisecting first.