]> git.ipfire.org Git - thirdparty/glibc.git/commit
RISC-V: properly terminate call chain (bug 23125)
authorAndreas Schwab <schwab@suse.de>
Tue, 25 Sep 2018 09:11:27 +0000 (11:11 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 15 Dec 2018 20:57:43 +0000 (21:57 +0100)
commitb4ce4476fc5d14fff413abe130b2ea7a7554f8d3
tree50b66d001bf889fc9a54ecf0d0e680699cecb0b8
parent1a8db070fa42276f290e20c294a51b4fc9c51f83
RISC-V: properly terminate call chain (bug 23125)

Mark the ra register as undefined in _start, so that unwinding through
main works correctly.  Also, don't use a tail call so that ra points after
the call to __libc_start_main, not after the previous call.

(cherry picked from commit 2dd12baa045f25c52b30a34b10f72d51f2605413)
ChangeLog
elf/Makefile
elf/tst-unwind-main.c [new file with mode: 0644]
sysdeps/riscv/start.S