]> sourceware.org Git - glibc.git/commit
LoongArch: Add cfi instructions for _dl_tlsdesc_dynamic
authormengqinggang <mengqinggang@loongson.cn>
Fri, 5 Jul 2024 02:40:33 +0000 (10:40 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Fri, 9 Aug 2024 01:06:17 +0000 (09:06 +0800)
commit5662433c38c1925bd937cd50232fe4251bc20d04
tree9174165f8bc3fa9ebc36db7938cd433d7e214902
parentd5f1da2a8a889e4868615f9b155ca67f10d46b5b
LoongArch: Add cfi instructions for _dl_tlsdesc_dynamic

In _dl_tlsdesc_dynamic, there are three 'addi.d sp, sp, -size'
instructions to allocate stack size for Float/LSX/LASX registers.
Every 'addi.d sp, sp, -size' needs a cfi_adjust_cfa_offset because
of sp is used to compute CFA. But only one 'addi.d sp, sp, -size'
will be run according to HWCAP value. And all cfi_adjust_cfa_offset
will be executed in stack unwinding, it result in incorrect CFA.

Change _dl_tlsdesc_dynamic to _dl_tlsdesc_dynamic,
_dl_tlsdesc_dynamic_lsx and _dl_tlsdesc_dynamic_lasx.
Conflicting cfi instructions can be distributed to the three functions.
And cfi instructions can correspond to stack down instructions.
sysdeps/loongarch/dl-machine.h
sysdeps/loongarch/dl-tlsdesc-dynamic.h [new file with mode: 0644]
sysdeps/loongarch/dl-tlsdesc.S
sysdeps/loongarch/dl-tlsdesc.h
sysdeps/loongarch/tlsdesc.sym
This page took 0.032391 seconds and 5 git commands to generate.