diff mbox series

[uclibc-ng-devel] linuxthreads: enable unwinding over signal frames

Message ID 20240501113726.1123361-1-jcmvbkbc@gmail.com
State Accepted
Headers show
Series [uclibc-ng-devel] linuxthreads: enable unwinding over signal frames | expand

Commit Message

Max Filippov May 1, 2024, 11:37 a.m. UTC
linuxthreads use a helper function to invoke signal handlers, this
function needs stack unwinding information to enable stack unwinding
from signal handlers over signal frames.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 libpthread/linuxthreads/Makefile.in | 2 ++
 1 file changed, 2 insertions(+)

Comments

Waldemar Brodkorb May 21, 2024, 4:13 a.m. UTC | #1
Hi,
Max Filippov wrote,

> linuxthreads use a helper function to invoke signal handlers, this
> function needs stack unwinding information to enable stack unwinding
> from signal handlers over signal frames.
> 
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

Committed and pushed,
 best regards
  Waldemar
diff mbox series

Patch

diff --git a/libpthread/linuxthreads/Makefile.in b/libpthread/linuxthreads/Makefile.in
index ffdd5d4eb3c9..cc2a5f285c63 100644
--- a/libpthread/linuxthreads/Makefile.in
+++ b/libpthread/linuxthreads/Makefile.in
@@ -16,6 +16,8 @@  libpthread_OUT := $(top_builddir)libpthread/linuxthreads
 
 -include $(libpthread_DIR)/sysdeps/$(TARGET_ARCH)/Makefile.arch
 
+CFLAGS-signals.c = -fexceptions -fasynchronous-unwind-tables
+
 libpthread_SRC := \
 	attr.c cancel.c condvar.c errno.c events.c join.c lockfile.c manager.c \
 	mutex.c pt-machine.c ptfork.c pthread.c ptlongjmp.c \