aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/FormatString.cpp
diff options
context:
space:
mode:
authorFeng Zou <feng.zou@intel.com>2025-04-29 19:12:59 +0800
committerGitHub <noreply@github.com>2025-04-29 19:12:59 +0800
commitbd6addc032b1ea764494e2de135b5b2c46ee6aca (patch)
tree9b3fec293c6972ae8454c9a9b07b0d1c6d004ebe /clang/lib/AST/FormatString.cpp
parentdf267d77f6cc06608d2fabc2139cabbd99007381 (diff)
downloadllvm-bd6addc032b1ea764494e2de135b5b2c46ee6aca.zip
llvm-bd6addc032b1ea764494e2de135b5b2c46ee6aca.tar.gz
llvm-bd6addc032b1ea764494e2de135b5b2c46ee6aca.tar.bz2
[X86][APX] Suppress EGPR/NDD instructions for relocations (#136660)
Suppress EGPR/NDD instructions for relocations to avoid APX relocation types emitted. This is to keep backward compatibility with old version of linkers without APX support. The use case is to try APX features with LLVM + old built-in linker on RHEL9 OS which is expected to be EOL in 2032. If there are APX relocation types, the old version of linkers would raise "unsupported relocation type" error. Example: ``` $ llvm-mc -filetype=obj -o got.o -triple=x86_64-unknown-linux got.s $ ld got.o -o got.exe ld: got.o: unsupported relocation type 0x2b ... $ cat got.s ... movq foo@GOTPCREL(%rip), %r16 $ llvm-objdump -dr got.o ... 1: d5 48 8b 05 00 00 00 00 movq (%rip), %r16 0000000000000005: R_X86_64_CODE_4_GOTPCRELX foo-0x4 ```
Diffstat (limited to 'clang/lib/AST/FormatString.cpp')
0 files changed, 0 insertions, 0 deletions