diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index da4724d8f653613..9ad180306bcd820 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -1399,8 +1399,8 @@ static unsigned handleTlsRelocation(RelType type, Symbol &sym, // depending on the symbol being locally defined or not. // // R_RISCV_TLSDESC_{LOAD_LO12,ADD_LO12_I,CALL} reference a non-preemptible - // label, so the LE optimization will be categorized as - // R_RELAX_TLS_GD_TO_LE. We fix the categorization in RISCV::relocateAlloc. + // label, so TLSDESC=>IE will be categorized as R_RELAX_TLS_GD_TO_LE. We fix + // the categorization in RISCV::relocateAlloc. if (sym.isPreemptible) { sym.setFlags(NEEDS_TLSGD_TO_IE); c.addReloc({target->adjustTlsExpr(type, R_RELAX_TLS_GD_TO_IE), type,