https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84010
--- Comment #12 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- (> So, as far as I see it, we have two choices: > > 1. Disable all X -> LE relaxations in the linker. Works, but then gives > suboptimal performance if some code linked into an executable is built with > -fPIC rather than -fPIE (or nothing). At least we could implement the possibility, even if not enabled by default. See PR binutils/22740. > 2. Apply this patch to GCC (assuming it still applies cleanly...). Don't worry, the SPARC back-end doesn't move that fast. ;-) > I'm struggling to understand what you meant by "relaxation is required in > all cases"; did you mean *forbidden* in all cases (i.e. my point 1)? Required in all cases to have a bug in the final code.