On Fri, 2023-12-01 at 17:55 +0800, mengqinggang wrote: > Generate la.tls.desc macro instruction for TLS descriptors model. > > la.tls.desc expand to > pcalau12i $a0, %desc_pc_hi20(a) > ld.d $a1, $a0, %desc_ld_pc_lo12(a) > addi.d $a0, $a0, %desc_add_pc_lo12(a) > jirl $ra, $a1, %desc_call(a) > > The default is TLS descriptors, but can be configure with > -mtls-dialect={desc,trad}.
No, the default should be trad to be compatible with old Glibc and Binutils. Or you can check the value of --with-glibc-version=M.N and the GAS feature when GCC is configured to decide the default. -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University