From 958ba94773af71ad6ee87a0be93b8b60ad679b3f Mon Sep 17 00:00:00 2001 From: kib Date: Fri, 22 Aug 2008 09:23:39 +0000 Subject: Add -fno-omit-frame-pointer to CFLAGS used to compile crt1.c on amd64. For gcc' __builtin_frame_address() to work, all call frames need to save frame pointer. In particular, this is important for the upper frame that should terminate the chain. No objections from: jhb PR: amd64/126543 MFC after: 1 week --- lib/csu/amd64/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/csu/amd64/Makefile b/lib/csu/amd64/Makefile index 4b51e6b..71ccd67 100644 --- a/lib/csu/amd64/Makefile +++ b/lib/csu/amd64/Makefile @@ -7,6 +7,7 @@ OBJS= ${SRCS:N*.h:R:S/$/.o/g} OBJS+= gcrt1.o CFLAGS+= -I${.CURDIR}/../common \ -I${.CURDIR}/../../libc/include +CFLAGS+= -fno-omit-frame-pointer all: ${OBJS} -- cgit v1.1