]> git.ipfire.org Git - thirdparty/glibc.git/commit
riscv: align stack before calling _dl_init [BZ #28703]
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 15 Dec 2021 23:06:28 +0000 (00:06 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 17 Dec 2021 19:29:34 +0000 (20:29 +0100)
commit225da459cebef1037dcd78b56471edc0721e1c41
tree717a875f9560c97c016761183c9bdfaac73b482c
parentd2e594d71509faf36cf851a69370db34a4f5fa65
riscv: align stack before calling _dl_init [BZ #28703]

Align the stack pointer to 128 bits during the call to _dl_init() as
specified by the RISC-V ABI [1]. This fixes the elf/tst-align2 test.

Fixes bug 28703.

[1] https://github.com/riscv-non-isa/riscv-elf-psabi-doc
sysdeps/riscv/dl-machine.h