https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103762

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Florian Weimer from comment #9)
> 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.

RA should avoid runtime relocations against static symbol for PIC/PIE,
which is also good for performance.

Reply via email to