NetBSD/sys/arch/i386/stand/Makefile.inc
dsl 2ea4518b97 Add -fno-asynchronous-unwind-tables -fno-exceptions to gcc builds.
One of these (probably the first) is needed to stop the eh-frame
section being created.
The eh_frame section is loadable and bloats the boot images.
This might be enough to make pxeboot work.
2014-05-01 18:37:26 +00:00

14 lines
436 B
Makefile

# $NetBSD: Makefile.inc,v 1.12 2014/05/01 18:37:26 dsl Exp $
.include <bsd.own.mk>
BINDIR= /usr/mdec
OPT_SIZE.gcc= -Os -ffreestanding -fomit-frame-pointer -fno-unwind-tables \
-fno-asynchronous-unwind-tables -fno-exceptions
OPT_SIZE.clang= -Oz -ffreestanding -fomit-frame-pointer -DNDEBUG \
-fno-stack-protector -mno-sse \
-mstack-alignment=4 \
-mllvm -inline-threshold=3 -mllvm -enable-load-pre=false \
-fno-unwind-tables