Print this page
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (aslr)
7031 noexec_user_stack should be a secflag
7032 want a means to forbid mappings around NULL.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ptools/Makefile.bld
          +++ new/usr/src/cmd/ptools/Makefile.bld
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27  PROG:sh = basename `cd ..; pwd`
  28   28  
  29   29  OBJS = $(PROG).o
  30   30  
  31   31  SRCS = ../$(PROG).c
  32   32  
  33   33  FILEMODE = 0555
  34   34  
  35   35  # libproc is added individually as pwait doesn't need it.
  36   36  # These are defined this way so lint can use them
  37      -LDLIBS_pargs    = -lproc
  38      -LDLIBS_pcred    = -lproc
  39      -LDLIBS_pfiles   = -lproc -lnsl
  40      -LDLIBS_pflags   = -lproc
  41      -LDLIBS_pldd     = -lproc
  42      -LDLIBS_plgrp    = -lproc -llgrp
  43      -LDLIBS_pmap     = -lproc
  44      -LDLIBS_pmadvise = -lproc
  45      -LDLIBS_ppriv    = -lproc
  46      -LDLIBS_preap    = -lproc
  47      -LDLIBS_prun     = -lproc
  48      -LDLIBS_psig     = -lproc
  49      -LDLIBS_pstack   = -lproc -lc_db
  50      -LDLIBS_pstop    = -lproc
  51      -LDLIBS_ptime    = -lproc
  52      -LDLIBS_ptree    = -lproc -lcontract
  53      -LDLIBS_pwdx     = -lproc
       37 +LDLIBS_pargs            = -lproc
       38 +LDLIBS_pcred            = -lproc
       39 +LDLIBS_pfiles           = -lproc -lnsl
       40 +LDLIBS_pflags           = -lproc
       41 +LDLIBS_pldd             = -lproc
       42 +LDLIBS_plgrp            = -lproc -llgrp
       43 +LDLIBS_pmap             = -lproc
       44 +LDLIBS_pmadvise         = -lproc
       45 +LDLIBS_ppriv            = -lproc
       46 +LDLIBS_preap            = -lproc
       47 +LDLIBS_prun             = -lproc
       48 +LDLIBS_psecflags        = -lproc -lproject
       49 +LDLIBS_psig             = -lproc
       50 +LDLIBS_pstack           = -lproc -lc_db
       51 +LDLIBS_pstop            = -lproc
       52 +LDLIBS_ptime            = -lproc
       53 +LDLIBS_ptree            = -lproc -lcontract
       54 +LDLIBS_pwdx             = -lproc
  54   55  
  55   56  LDLIBS += $(LDLIBS_$(PROG))
  56   57  
  57   58  CERRWARN_plgrp  += -_gcc=-Wno-parentheses
  58   59  
  59   60  CERRWARN_ppriv  += -_gcc=-Wno-parentheses
  60   61  CERRWARN_ppriv  += -_gcc=-Wno-uninitialized
  61   62  
  62   63  CERRWARN_ptree  += -_gcc=-Wno-parentheses
  63   64  
↓ open down ↓ 68 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX