about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-09 19:58:43 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-09 19:58:43 +0100
commit63550530d98db6e9c30dc96a3ea08411b873b23e (patch)
tree9470da24e42efe7d463e1251674b5946f4b42889 /hurd
parent16e424a325bc8ece973e4ef4758f12f15355ec57 (diff)
downloadglibc-63550530d98db6e9c30dc96a3ea08411b873b23e.tar.gz
glibc-63550530d98db6e9c30dc96a3ea08411b873b23e.tar.xz
glibc-63550530d98db6e9c30dc96a3ea08411b873b23e.zip
hurd: Fix unwinding over INTR_MSG_TRAP
We used to use .cfi_adjust_cfa_offset around %esp manipulation
asm instructions to fix unwinding, but when building glibc with
-fno-omit-frame-pointer this is bogus since in that case %ebp is the CFA and
does not move.

Instead, let's force -fno-omit-frame-pointer when building intr-msg.c so
that %ebp can always be used and no .cfi_adjust_cfa_offset is needed.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/hurd/Makefile b/hurd/Makefile
index 77cb16cdf7..7c34e9ad0d 100644
--- a/hurd/Makefile
+++ b/hurd/Makefile
@@ -89,6 +89,9 @@ generated += $(inlines:=.c)
 # Avoid ssp before TLS is initialized.
 CFLAGS-hurdstartup.o = $(no-stack-protector)
 CFLAGS-RPC_exec_startup_get_info.o = $(no-stack-protector)
+
+# Make it simpler to unwind over INTR_MSG_TRAP
+CFLAGS-intr-msg.o = -fno-omit-frame-pointer
 
 # Make generated headers compatible with all support standards
 migheaderpipe := | sed -e 's/\<ino64_t\>/__ino64_t/' -e 's/\<loff_t\>/__loff_t/'