RISC-V: properly terminate call chain (bug 23125)
authorAndreas Schwab <schwab@suse.de>
Tue, 25 Sep 2018 09:11:27 +0000 (11:11 +0200)
committerAndreas Schwab <schwab@suse.de>
Tue, 30 Oct 2018 11:07:25 +0000 (12:07 +0100)
commit2dd12baa045f25c52b30a34b10f72d51f2605413
tree0b6533d453252b050dcf19f052a1ccb4d6bf46cb
parentfec8bb7ca93d66cd2b019cfebcee6b3e6560ea36
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.
ChangeLog
elf/Makefile
elf/tst-unwind-main.c [new file with mode: 0644]
sysdeps/riscv/start.S