[Bug rtl-optimization/103762] [12 Regression] glibc master branch is miscompiled by r12-897

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Dec 18 23:01:35 GMT 2021


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.


More information about the Gcc-bugs mailing list