Commit 49f9bc3e authored by Aurelien Jarno's avatar Aurelien Jarno

debian/patches/riscv64/submitted-start-cfi.diff: fix endless loop when...

debian/patches/riscv64/submitted-start-cfi.diff: fix endless loop when throwing an exception from a constructor.
parent b440630e
......@@ -22,6 +22,8 @@ glibc (2.27-4) UNRELEASED; urgency=medium
NAMESPACE have been removed upstream in version 2.27.
* debian/debhelper.in/libc-dev-bin.docs: drop as NAMESPACE has been
removed upstream in version 2.27.
* debian/patches/riscv64/submitted-start-cfi.diff: fix endless loop
when throwing an exception from a constructor.
[ Laurent Bigonville ]
* debian/local/etc/nsswitch.conf: Switch from the compat to the files
......
2018-05-18 Palmer Dabbelt <palmer@sifive.com>
PR 23125
* sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined so
backtraces can terminate if they reach this point.
--- 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. */
......@@ -144,6 +144,8 @@ mips/submitted-rld_map.diff
powerpc/local-powerpc8xx-dcbz.diff
riscv64/submitted-start-cfi.diff
sh4/local-fpscr_values.diff
sparc/submitted-sparc64-socketcall.diff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment