https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103762
Florian Weimer <fw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fw at gcc dot gnu.org --- Comment #9 from Florian Weimer <fw at gcc dot gnu.org> --- glibc cannot easily work around such unexpected relocations for static or hidden variables. Static PIE currently requires PI_STATIC_AND_HIDDEN, and with the GCC 12 behavior, x86 would not be a PI_STATIC_AND_HIDDEN target anymore. This really has to be fixed in GCC. It's also important to avoid such runtime relocations for PIE startup time.