| commit | 26265e7fdf19d461563388495b6799eb3719f80a | [log] [tgz] |
|---|---|---|
| author | Lulu Cai <cailulu@loongson.cn> | Tue Oct 31 16:11:29 2023 +0800 |
| committer | liuzhensong <liuzhensong@loongson.cn> | Mon Dec 25 11:46:22 2023 +0800 |
| tree | 3aaf2793a448b90fd5d55097ee5dbf9efa12ad4c | |
| parent | 051b3736af7b9dc47a37e31a9c82556e942d1ed4 [diff] |
LoongArch: Add new relocs and macro for TLSDESC. The normal DESC instruction sequence is: pcalau12i $a0,%desc_pc_hi20(var) #R_LARCH_TLS_DESC_PC_HI20 addi.d $a0,$a0,%desc_pc_lo12(var) #R_LARCH_TLS_DESC_PC_LO12 ld.d $ra,$a0,%desc_ld(var) #R_LARCH_TLS_DESC_LD jirl $ra,$ra,%desc_call(var) #R_LARCH_TLS_DESC_CALL add.d $a0,$a0,$tp