about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2020-01-24 17:23:47 +0000
committerJoseph Myers <joseph@codesourcery.com>2020-01-24 17:23:47 +0000
commit352bb99754ae7c83ff1b974f9c52244e974c9410 (patch)
tree89cde6c533e1311ed33cede99da640bb0e04257d
parentef02e3c476ce76a1205744cdd396ac1eda1013d6 (diff)
downloadglibc-352bb99754ae7c83ff1b974f9c52244e974c9410.tar.gz
glibc-352bb99754ae7c83ff1b974f9c52244e974c9410.tar.xz
glibc-352bb99754ae7c83ff1b974f9c52244e974c9410.zip
Build raise with -fasynchronous-unwind-tables.
In testing glibc for Arm and MIPS, I see:

FAIL: misc/tst-sigcontext-get_pc

If this test - backtracing through a call to raise - is valid, then
raise needs to be built with -fasynchronous-unwind-tables (as the test
itself is) to have the required unwind information for that
backtracing to work.  Adding that option, which this patch does,
causes the test for pass for Arm.  For MIPS, the test still does not
pass (the backtrace has an address that is 2 bytes after the "address
in signal handler", for unknown reasons), although the patch allows a
longer backtrace to be produced.
-rw-r--r--signal/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/signal/Makefile b/signal/Makefile
index 7da67def84..37de438bba 100644
--- a/signal/Makefile
+++ b/signal/Makefile
@@ -52,6 +52,7 @@ tests		:= tst-signal tst-sigset tst-sigsimple tst-raise tst-sigset2 \
 
 include ../Rules
 
+CFLAGS-raise.c += -fasynchronous-unwind-tables
 CFLAGS-sigpause.c += -fexceptions
 CFLAGS-sigsuspend.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-sigtimedwait.c += -fexceptions -fasynchronous-unwind-tables