[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
commit1ca853b2ee1b68daaec6fdc23a085755146d102d
authorFeng Zou <feng.zou@intel.com>
Wed, 20 Nov 2024 13:02:44 +0000 (20 21:02 +0800)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2024 13:02:44 +0000 (20 21:02 +0800)
treeb6a7be15e647f2a512250df5a3ee853c9f1157cd
parenta160e51500ea625b97618d882b97b06367978ea4
[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)

Rename R_X86_64_REX2_GOTPCRELX to R_X86_64_CODE_4_GOTPCRELX, to align
with GCC/binutils and ABI.

GCC/binutils:
https://github.com/bminor/binutils-gdb/commit/3d5a60de52556f6a53d71d7e607c6696450ae3e4
and
https://github.com/bminor/binutils-gdb/commit/4a54cb06585f568031dfd291d0fe45979ad75e98
ABI:
https://gitlab.com/x86-psABIs/x86-64-ABI/-/commit/357de358ba68eb779822dfcbb45f7ee2d9d09193
12 files changed:
clang/test/Driver/relax.s
lld/ELF/Arch/X86_64.cpp
lld/test/ELF/x86-64-gotpc-no-relax-err.s
lld/test/ELF/x86-64-gotpc-relax-nopic.s
lld/test/ELF/x86-64-gotpc-relax.s
llvm/include/llvm/BinaryFormat/ELFRelocs/x86_64.def
llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
llvm/test/MC/ELF/relocation-alias.s
llvm/test/MC/X86/gotpcrelx.s
llvm/test/MC/X86/reloc-directive-elf-64.s