about summary refs log tree commit diff
path: root/scripts/glibcpp.py
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2024-07-05 10:40:33 +0800
committercaiyinyu <caiyinyu@loongson.cn>2024-08-09 09:06:17 +0800
commit5662433c38c1925bd937cd50232fe4251bc20d04 (patch)
tree9174165f8bc3fa9ebc36db7938cd433d7e214902 /scripts/glibcpp.py
parentd5f1da2a8a889e4868615f9b155ca67f10d46b5b (diff)
downloadglibc-master.tar.gz
glibc-master.tar.xz
glibc-master.zip
LoongArch: Add cfi instructions for _dl_tlsdesc_dynamic HEAD master
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.
Diffstat (limited to 'scripts/glibcpp.py')
0 files changed, 0 insertions, 0 deletions