Home | History | Annotate | Line # | Download | only in conf
ssp.mk revision 1.1.4.1
      1  1.1.4.1  pgoyette # $NetBSD: ssp.mk,v 1.1.4.1 2017/03/20 06:57:26 pgoyette 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.1  uebayasi # The following files use alloca(3) or variable array allocations.
     14      1.1  uebayasi # Their full name is noted as documentation.
     15      1.1  uebayasi VARSTACK= \
     16      1.1  uebayasi 	arch/xen/i386/gdt.c \
     17      1.1  uebayasi 	dev/ic/aic79xx.c \
     18      1.1  uebayasi 	dev/ic/aic7xxx.c \
     19  1.1.4.1  pgoyette 	dev/usb/xhci.c \
     20      1.1  uebayasi 	dev/ofw/ofw_subr.c \
     21      1.1  uebayasi 	kern/uipc_socket.c \
     22      1.1  uebayasi 	miscfs/genfs/genfs_vnops.c \
     23      1.1  uebayasi 	nfs/nfs_bio.c \
     24      1.1  uebayasi 	uvm/uvm_bio.c \
     25      1.1  uebayasi 	uvm/uvm_pager.c \
     26      1.1  uebayasi 
     27      1.1  uebayasi .for __varstack in ${VARSTACK}
     28      1.1  uebayasi COPTS.${__varstack:T} += -Wno-stack-protector
     29      1.1  uebayasi .endfor
     30