about summary refs log tree commit diff
path: root/posix/register-atfork.c
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2024-06-13 19:04:05 +0800
committercaiyinyu <caiyinyu@loongson.cn>2024-06-14 10:14:54 +0800
commit97aa7b7346bb9f1807e450c889fccbd2a7d8ff49 (patch)
tree1ff3164154544026329c681a2743a0a7aaa85799 /posix/register-atfork.c
parent868ab8923a2ec977faafec97ecafac0c3159c1b2 (diff)
downloadglibc-master.tar.gz
glibc-master.tar.xz
glibc-master.zip
LoongArch: Ensure sp 16-byte aligned for tlsdesc HEAD master
"ADDI sp, sp, 24" and "ADDI sp, sp, SZFCSREG" (SZFCSREG = 4) are
misaligning the stack: the ABI mandates a 16-byte alignment.  Fix it
by changing the first one to "ADDI sp, sp, 32", and reuse the spare 4th
slot for saving fcsr.

Reported-by: Jinyang He <hejinyang@loongson.cn>
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Diffstat (limited to 'posix/register-atfork.c')
0 files changed, 0 insertions, 0 deletions