diff options
author | Xi Ruoyao <xry111@xry111.site> | 2024-06-13 19:04:05 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2024-06-14 10:14:54 +0800 |
commit | 97aa7b7346bb9f1807e450c889fccbd2a7d8ff49 (patch) | |
tree | 1ff3164154544026329c681a2743a0a7aaa85799 /elf/tst-ptrguard1.c | |
parent | 868ab8923a2ec977faafec97ecafac0c3159c1b2 (diff) | |
download | glibc-97aa7b7346bb9f1807e450c889fccbd2a7d8ff49.tar.gz glibc-97aa7b7346bb9f1807e450c889fccbd2a7d8ff49.tar.xz glibc-97aa7b7346bb9f1807e450c889fccbd2a7d8ff49.zip |
LoongArch: Ensure sp 16-byte aligned for tlsdesc
"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 'elf/tst-ptrguard1.c')
0 files changed, 0 insertions, 0 deletions