diff --git a/tools/mpy_ld.py b/tools/mpy_ld.py index 20418c6748..b3b28e453d 100755 --- a/tools/mpy_ld.py +++ b/tools/mpy_ld.py @@ -121,7 +121,7 @@ R_XTENSA_PDIFF32 = 59 R_RISCV_SET_ULEB128 = 60 R_RISCV_SUB_ULEB128 = 61 R_RISCV_TLSDESC_HI20 = 62 -R_RISCC_TLSDESC_LOAD_LO12 = 63 +R_RISCV_TLSDESC_LOAD_LO12 = 63 R_RISCV_TLSDESC_ADD_LO12 = 64 R_RISCV_TLSDESC_CALL = 65 @@ -682,6 +682,7 @@ def do_relocation_text(env, text_addr, r): elif env.arch.name == "EM_RISCV" and r_info_type in ( R_RISCV_TLS_GD_HI20, R_RISCV_TLSDESC_HI20, + R_RISCV_TLSDESC_LOAD_LO12, R_RISCV_TLSDESC_ADD_LO12, R_RISCV_TLSDESC_CALL, ):