[clang] [lld] [llvm] [X86] Implement disabling APX relocations and EPGR/NDD instrs for relocations (PR #136660)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 25 00:50:11 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) {
----------------
phoebewang wrote:
I'm not sure we need to change it. I assume the problem happens only when using old lld with new compiler. There's nothing to do with the new lld here.
https://github.com/llvm/llvm-project/pull/136660
More information about the cfe-commits
mailing list