From d83eaf7c3b9f4c0e58ab358786be106ce36da252 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Tue, 4 Sep 2018 20:13:02 +0100 Subject: [PATCH] submitted-start-cfi 2018-05-18 Palmer Dabbelt PR 23125 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined so backtraces can terminate if they reach this point. Gbp-Pq: Topic riscv64 Gbp-Pq: Name submitted-start-cfi.diff --- sysdeps/riscv/start.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/riscv/start.S b/sysdeps/riscv/start.S index 4635ddb5e..93a80bc4a 100644 --- a/sysdeps/riscv/start.S +++ b/sysdeps/riscv/start.S @@ -43,6 +43,8 @@ __libc_start_main wants this in a5. */ ENTRY (ENTRY_POINT) + /* Mark ra as undefined in order to stop unwinding here! */ + cfi_undefined (ra) call .Lload_gp mv a5, a0 /* rtld_fini. */ /* main may be in a shared library. */ -- 2.30.2