================ @@ -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:
Do we need to handle this case? The new lld has the ability to hanlde APX relocations. lld still does the ralax with "-no-relax" for the reset 3 relocations before the APX changes, isn't it? https://github.com/llvm/llvm-project/pull/136660 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits