Home | History | Annotate | Line # | Download | only in conf
ssp.mk revision 1.2.18.1
      1  1.2.18.1  christos # $NetBSD: ssp.mk,v 1.2.18.1 2019/06/10 22:07:04 christos Exp $
      2       1.1  uebayasi 
      3       1.1  uebayasi .if ${USE_SSP:Uno} == "yes"
      4       1.1  uebayasi COPTS.kern_ssp.c+=	-fno-stack-protector -D__SSP__
      5       1.1  uebayasi .endif
      6       1.1  uebayasi 
      7       1.1  uebayasi # for multi-cpu machines, cpu_hatch() straddles the init of
      8       1.1  uebayasi # __stack_chk_guard, so ensure stack protection is disabled
      9       1.1  uebayasi .if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64"
     10       1.1  uebayasi COPTS.cpu.c+=		-fno-stack-protector
     11       1.1  uebayasi .endif
     12       1.1  uebayasi 
     13  1.2.18.1  christos COPTS.subr_kleak.c+=	-fno-stack-protector
     14  1.2.18.1  christos COPTS.subr_kcov.c+=		-fno-stack-protector
     15  1.2.18.1  christos 
     16       1.1  uebayasi # The following files use alloca(3) or variable array allocations.
     17       1.1  uebayasi # Their full name is noted as documentation.
     18       1.1  uebayasi VARSTACK= \
     19       1.1  uebayasi 	arch/xen/i386/gdt.c \
     20       1.1  uebayasi 	dev/ic/aic79xx.c \
     21       1.1  uebayasi 	dev/ic/aic7xxx.c \
     22       1.2  christos 	dev/usb/xhci.c \
     23       1.1  uebayasi 	dev/ofw/ofw_subr.c \
     24       1.1  uebayasi 	kern/uipc_socket.c \
     25       1.1  uebayasi 	miscfs/genfs/genfs_vnops.c \
     26       1.1  uebayasi 	nfs/nfs_bio.c \
     27       1.1  uebayasi 	uvm/uvm_bio.c \
     28       1.1  uebayasi 	uvm/uvm_pager.c \
     29       1.1  uebayasi 
     30       1.1  uebayasi .for __varstack in ${VARSTACK}
     31       1.1  uebayasi COPTS.${__varstack:T} += -Wno-stack-protector
     32       1.1  uebayasi .endfor
     33