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