]> 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 21:50:13 +0000 (22:50 +0100)
commitaa3a97496c82a8443039248ebee650322c9480f4
tree2e7e6119bcf891dc920118411a1b4372827e5d08
parent9de8011c328021f10588a8acb418daf5121d5f3d
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

(cherry picked from commit 225da459cebef1037dcd78b56471edc0721e1c41)
NEWS
sysdeps/riscv/dl-machine.h