From 63550530d98db6e9c30dc96a3ea08411b873b23e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 9 Feb 2023 19:58:43 +0100 Subject: 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. --- hurd/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hurd') diff --git a/hurd/Makefile b/hurd/Makefile index 77cb16c..7c34e9a 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/' -e 's/\/__loff_t/' -- cgit v1.1