[clang] [lld] [llvm] [X86] Implement disabling APX relocations and EPGR/NDD instrs for relocations (PR #136660)
Feng Zou via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 25 02:12:13 PDT 2025
================
@@ -912,9 +912,9 @@ void X86_64::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const {
case R_X86_64_CODE_4_GOTPC32_TLSDESC:
case R_X86_64_TLSDESC_CALL:
case R_X86_64_TLSGD:
- if (rel.expr == R_RELAX_TLS_GD_TO_LE) {
+ if (rel.expr == R_RELAX_TLS_GD_TO_LE && ctx.arg.relax) {
----------------
fzou1 wrote:
Use --no-relax to suppress TLS relaxation as well as GOTPCREL optimization.
https://github.com/llvm/llvm-project/pull/136660
More information about the cfe-commits
mailing list