From 2e814e89a8246123fec8a7eb2532c4fbcb5bc2f3 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Wed, 5 Dec 2018 18:50:21 +0000 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