From 2dd12baa045f25c52b30a34b10f72d51f2605413 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 25 Sep 2018 11:11:27 +0200 Subject: 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 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 91104bb03f..ccfdf0d797 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2018-10-30 Andreas Schwab + + [BZ #23125] + * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined. + Don't use tail call. + * elf/tst-unwind-main.c: New file. + * elf/Makefile (tests): Add tst-unwind-main. + (CFLAGS-tst-unwind-main.c): Define. + 2018-10-29 Sergi Almacellas Abellana [BZ #23791] -- cgit v1.2.3