@GOTPCREL_NORELAX relocation notation
H.J. Lu
hjl.tools@gmail.com
Fri Nov 12 00:23:18 GMT 2021
On Thu, Nov 11, 2021 at 4:03 PM Matt Morehouse via Binutils
<binutils@sourceware.org> wrote:
>
> Hi folks,
>
> We have an LLVM patch [1] to introduce the new relocation
> type @GOTPCREL_NORELAX in assembly. It is like @GOTPCREL but guarantees
> that the assembler emits an R_X86_64_GOTPCREL relocation instead of the
> relaxable R_X86_64[_REX]_GOTPCRELX variants.
>
> Are you interested in adopting a similar feature for GNU as? If so, it may
> be a good idea to have some consensus on the notation -- Is
> @GOTPCREL_NORELAX good, or should we do something else?
>
> Thanks,
> Matt Morehouse
>
> [1] https://reviews.llvm.org/D113220
It sounds like a useful feature.
BTW, -Wa,-mrelax-relocations=no should work with LTO on GCC now:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47785
--
H.J.
More information about the Binutils
mailing list