[Bug libc/23125] riscv64: endless loop when throwing an exception from a constructor
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Tue Oct 30 11:09:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23125
--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 2dd12baa045f25c52b30a34b10f72d51f2605413 (commit)
from fec8bb7ca93d66cd2b019cfebcee6b3e6560ea36 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2dd12baa045f25c52b30a34b10f72d51f2605413
commit 2dd12baa045f25c52b30a34b10f72d51f2605413
Author: Andreas Schwab <schwab@suse.de>
Date: Tue Sep 25 11:11:27 2018 +0200
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.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 9 +++++++++
elf/Makefile | 4 +++-
elf/{tst-unwind-ctor-lib.c => tst-unwind-main.c} | 20 ++++++++------------
sysdeps/riscv/start.S | 7 ++++++-
4 files changed, 26 insertions(+), 14 deletions(-)
copy elf/{tst-unwind-ctor-lib.c => tst-unwind-main.c} (77%)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list