From 96fae5e0127029dbed9b4070bcec86e8883e324f Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Mon, 16 Jul 2018 21:23:13 +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