summaryrefslogtreecommitdiffstats
path: root/lib/csu/amd64
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-08-22 09:23:39 +0000
committerkib <kib@FreeBSD.org>2008-08-22 09:23:39 +0000
commit958ba94773af71ad6ee87a0be93b8b60ad679b3f (patch)
tree3dd03630fe4fffa3921f53c5ede078833819c3eb /lib/csu/amd64
parent9ec1a083f8f4aca93ef03e275464215d368faa7c (diff)
downloadFreeBSD-src-958ba94773af71ad6ee87a0be93b8b60ad679b3f.zip
FreeBSD-src-958ba94773af71ad6ee87a0be93b8b60ad679b3f.tar.gz
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
Diffstat (limited to 'lib/csu/amd64')
-rw-r--r--lib/csu/amd64/Makefile1
1 files changed, 1 insertions, 0 deletions
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}
OpenPOWER on IntegriCloud