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.


  92 CHACHAOBJS=                     \
  93         chacha.o
  94 
  95 XATTROBJS=                      \
  96         xattr_common.o
  97 
  98 COMOBJS=                        \
  99         bcmp.o                  \
 100         bcopy.o                 \
 101         bsearch.o               \
 102         bzero.o                 \
 103         qsort.o                 \
 104         strtol.o                \
 105         strtoul.o               \
 106         strtoll.o               \
 107         strtoull.o
 108 
 109 DTRACEOBJS=                     \
 110         dtrace_data.o
 111 



 112 GENOBJS=                        \
 113         _div64.o                \
 114         _divdi3.o               \
 115         _getsp.o                \
 116         _mul64.o                \
 117         abs.o                   \
 118         alloca.o                \
 119         arc4random.o            \
 120         arc4random_uniform.o    \
 121         byteorder.o             \
 122         byteorder64.o           \
 123         cuexit.o                \
 124         ecvt.o                  \
 125         endian.o                \
 126         errlst.o                \
 127         i386_data.o             \
 128         ladd.o                  \
 129         ldivide.o               \
 130         lmul.o                  \
 131         lock.o                  \


 248         mmap.o                  \
 249         modctl.o                \
 250         mount.o                 \
 251         mprotect.o              \
 252         munmap.o                \
 253         nice.o                  \
 254         ntp_adjtime.o           \
 255         ntp_gettime.o           \
 256         p_online.o              \
 257         pathconf.o              \
 258         pause.o                 \
 259         pcsample.o              \
 260         pipe2.o                 \
 261         pollsys.o               \
 262         pread.o                 \
 263         preadv.o                \
 264         priocntlset.o           \
 265         processor_bind.o        \
 266         processor_info.o        \
 267         profil.o                \

 268         putmsg.o                \
 269         putpmsg.o               \
 270         pwrite.o                \
 271         pwritev.o               \
 272         read.o                  \
 273         readv.o                 \
 274         resolvepath.o           \
 275         seteguid.o              \
 276         setgid.o                \
 277         setgroups.o             \
 278         setitimer.o             \
 279         setreid.o               \
 280         setrlimit.o             \
 281         setuid.o                \
 282         sigaltstk.o             \
 283         sigprocmsk.o            \
 284         sigsendset.o            \
 285         sigsuspend.o            \
 286         statfs.o                \
 287         statvfs.o               \


 509         nsparse.o               \
 510         nss_common.o            \
 511         nss_dbdefs.o            \
 512         nss_deffinder.o         \
 513         opendir.o               \
 514         opt_data.o              \
 515         perror.o                \
 516         pfmt.o                  \
 517         pfmt_data.o             \
 518         pfmt_print.o            \
 519         pipe.o                  \
 520         plock.o                 \
 521         poll.o                  \
 522         posix_fadvise.o         \
 523         posix_fallocate.o       \
 524         posix_madvise.o         \
 525         posix_memalign.o        \
 526         priocntl.o              \
 527         privlib.o               \
 528         priv_str_xlate.o        \

 529         psiginfo.o              \
 530         psignal.o               \
 531         pt.o                    \
 532         putpwent.o              \
 533         putspent.o              \
 534         raise.o                 \
 535         rand.o                  \
 536         random.o                \
 537         rctlops.o               \
 538         readdir.o               \
 539         readdir_r.o             \
 540         realpath.o              \
 541         reboot.o                \
 542         regexpr.o               \
 543         remove.o                \
 544         rewinddir.o             \
 545         rindex.o                \
 546         scandir.o               \
 547         seekdir.o               \
 548         select.o                \


 984         $(GENOBJS)              \
 985         $(PORTFP)               \
 986         $(PORTGEN)              \
 987         $(PORTGEN64)            \
 988         $(PORTI18N)             \
 989         $(PORTI18N_COND)        \
 990         $(PORTLOCALE)           \
 991         $(PORTPRINT)            \
 992         $(PORTPRINT_C89)        \
 993         $(PORTPRINT_W)          \
 994         $(PORTREGEX)            \
 995         $(PORTREGEX64)          \
 996         $(PORTSTDIO)            \
 997         $(PORTSTDIO64)          \
 998         $(PORTSTDIO_C89)        \
 999         $(PORTSTDIO_W)          \
1000         $(PORTSYS)              \
1001         $(PORTSYS64)            \
1002         $(AIOOBJS)              \
1003         $(RTOBJS)               \

1004         $(TPOOLOBJS)            \
1005         $(THREADSOBJS)          \
1006         $(THREADSMACHOBJS)      \
1007         $(THREADSASMOBJS)       \
1008         $(UNICODEOBJS)          \
1009         $(UNWINDMACHOBJS)       \
1010         $(UNWINDASMOBJS)        \
1011         $(COMSYSOBJS)           \
1012         $(SYSOBJS)              \
1013         $(COMSYSOBJS64)         \
1014         $(SYSOBJS64)            \
1015         $(VALUES)
1016 
1017 TRACEOBJS=                      \
1018         plockstat.o
1019 
1020 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1021 # modules whose source is provided in the $(SRC)/lib/common directory.
1022 # This must be done because otherwise the Sun C compiler would insert
1023 # its own versions of these modules and those versions contain code


1133         $(ALTPICS)
1134 
1135 CLOBBERFILES += $(LIB_PIC)
1136 
1137 # list of C source for lint
1138 SRCS=                                                   \
1139         $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c)      \
1140         $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c)        \
1141         $(COMOBJS:%.o=$(SRC)/common/util/%.c)           \
1142         $(DTRACEOBJS:%.o=$(SRC)/common/dtrace/%.c)      \
1143         $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c)                    \
1144         $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c)                  \
1145         $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c)                \
1146         $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c)            \
1147         $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c)              \
1148         $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c)              \
1149         $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c)              \
1150         $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c)                  \
1151         $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c)                  \
1152         $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c)                    \

1153         $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c)              \
1154         $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c)          \
1155         $(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c)   \
1156         $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c)    \
1157         $(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c)        \
1158         $(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c)                 \
1159         $(LIBCBASE)/gen/ecvt.c                          \
1160         $(LIBCBASE)/gen/makectxt.c                      \
1161         $(LIBCBASE)/gen/siginfolst.c                    \
1162         $(LIBCBASE)/gen/siglongjmp.c                    \
1163         $(LIBCBASE)/gen/strcmp.c                        \
1164         $(LIBCBASE)/gen/sync_instruction_memory.c       \
1165         $(LIBCBASE)/sys/ptrace.c                        \
1166         $(LIBCBASE)/sys/uadmin.c
1167 
1168 # conditional assignments
1169 $(DYNLIB) := CRTI = crti.o
1170 $(DYNLIB) := CRTN = crtn.o
1171 
1172 # Files which need the threads .il inline template




  92 CHACHAOBJS=                     \
  93         chacha.o
  94 
  95 XATTROBJS=                      \
  96         xattr_common.o
  97 
  98 COMOBJS=                        \
  99         bcmp.o                  \
 100         bcopy.o                 \
 101         bsearch.o               \
 102         bzero.o                 \
 103         qsort.o                 \
 104         strtol.o                \
 105         strtoul.o               \
 106         strtoll.o               \
 107         strtoull.o
 108 
 109 DTRACEOBJS=                     \
 110         dtrace_data.o
 111 
 112 SECFLAGSOBJS=                   \
 113         secflags.o
 114 
 115 GENOBJS=                        \
 116         _div64.o                \
 117         _divdi3.o               \
 118         _getsp.o                \
 119         _mul64.o                \
 120         abs.o                   \
 121         alloca.o                \
 122         arc4random.o            \
 123         arc4random_uniform.o    \
 124         byteorder.o             \
 125         byteorder64.o           \
 126         cuexit.o                \
 127         ecvt.o                  \
 128         endian.o                \
 129         errlst.o                \
 130         i386_data.o             \
 131         ladd.o                  \
 132         ldivide.o               \
 133         lmul.o                  \
 134         lock.o                  \


 251         mmap.o                  \
 252         modctl.o                \
 253         mount.o                 \
 254         mprotect.o              \
 255         munmap.o                \
 256         nice.o                  \
 257         ntp_adjtime.o           \
 258         ntp_gettime.o           \
 259         p_online.o              \
 260         pathconf.o              \
 261         pause.o                 \
 262         pcsample.o              \
 263         pipe2.o                 \
 264         pollsys.o               \
 265         pread.o                 \
 266         preadv.o                \
 267         priocntlset.o           \
 268         processor_bind.o        \
 269         processor_info.o        \
 270         profil.o                \
 271         psecflagsset.o          \
 272         putmsg.o                \
 273         putpmsg.o               \
 274         pwrite.o                \
 275         pwritev.o               \
 276         read.o                  \
 277         readv.o                 \
 278         resolvepath.o           \
 279         seteguid.o              \
 280         setgid.o                \
 281         setgroups.o             \
 282         setitimer.o             \
 283         setreid.o               \
 284         setrlimit.o             \
 285         setuid.o                \
 286         sigaltstk.o             \
 287         sigprocmsk.o            \
 288         sigsendset.o            \
 289         sigsuspend.o            \
 290         statfs.o                \
 291         statvfs.o               \


 513         nsparse.o               \
 514         nss_common.o            \
 515         nss_dbdefs.o            \
 516         nss_deffinder.o         \
 517         opendir.o               \
 518         opt_data.o              \
 519         perror.o                \
 520         pfmt.o                  \
 521         pfmt_data.o             \
 522         pfmt_print.o            \
 523         pipe.o                  \
 524         plock.o                 \
 525         poll.o                  \
 526         posix_fadvise.o         \
 527         posix_fallocate.o       \
 528         posix_madvise.o         \
 529         posix_memalign.o        \
 530         priocntl.o              \
 531         privlib.o               \
 532         priv_str_xlate.o        \
 533         psecflags.o             \
 534         psiginfo.o              \
 535         psignal.o               \
 536         pt.o                    \
 537         putpwent.o              \
 538         putspent.o              \
 539         raise.o                 \
 540         rand.o                  \
 541         random.o                \
 542         rctlops.o               \
 543         readdir.o               \
 544         readdir_r.o             \
 545         realpath.o              \
 546         reboot.o                \
 547         regexpr.o               \
 548         remove.o                \
 549         rewinddir.o             \
 550         rindex.o                \
 551         scandir.o               \
 552         seekdir.o               \
 553         select.o                \


 989         $(GENOBJS)              \
 990         $(PORTFP)               \
 991         $(PORTGEN)              \
 992         $(PORTGEN64)            \
 993         $(PORTI18N)             \
 994         $(PORTI18N_COND)        \
 995         $(PORTLOCALE)           \
 996         $(PORTPRINT)            \
 997         $(PORTPRINT_C89)        \
 998         $(PORTPRINT_W)          \
 999         $(PORTREGEX)            \
1000         $(PORTREGEX64)          \
1001         $(PORTSTDIO)            \
1002         $(PORTSTDIO64)          \
1003         $(PORTSTDIO_C89)        \
1004         $(PORTSTDIO_W)          \
1005         $(PORTSYS)              \
1006         $(PORTSYS64)            \
1007         $(AIOOBJS)              \
1008         $(RTOBJS)               \
1009         $(SECFLAGSOBJS)         \
1010         $(TPOOLOBJS)            \
1011         $(THREADSOBJS)          \
1012         $(THREADSMACHOBJS)      \
1013         $(THREADSASMOBJS)       \
1014         $(UNICODEOBJS)          \
1015         $(UNWINDMACHOBJS)       \
1016         $(UNWINDASMOBJS)        \
1017         $(COMSYSOBJS)           \
1018         $(SYSOBJS)              \
1019         $(COMSYSOBJS64)         \
1020         $(SYSOBJS64)            \
1021         $(VALUES)
1022 
1023 TRACEOBJS=                      \
1024         plockstat.o
1025 
1026 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1027 # modules whose source is provided in the $(SRC)/lib/common directory.
1028 # This must be done because otherwise the Sun C compiler would insert
1029 # its own versions of these modules and those versions contain code


1139         $(ALTPICS)
1140 
1141 CLOBBERFILES += $(LIB_PIC)
1142 
1143 # list of C source for lint
1144 SRCS=                                                   \
1145         $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c)      \
1146         $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c)        \
1147         $(COMOBJS:%.o=$(SRC)/common/util/%.c)           \
1148         $(DTRACEOBJS:%.o=$(SRC)/common/dtrace/%.c)      \
1149         $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c)                    \
1150         $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c)                  \
1151         $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c)                \
1152         $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c)            \
1153         $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c)              \
1154         $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c)              \
1155         $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c)              \
1156         $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c)                  \
1157         $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c)                  \
1158         $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c)                    \
1159         $(SECFLAGSOBJS:%.o=$(SRC)/common/secflags/%.c)          \
1160         $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c)              \
1161         $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c)          \
1162         $(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c)   \
1163         $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c)    \
1164         $(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c)        \
1165         $(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c)                 \
1166         $(LIBCBASE)/gen/ecvt.c                          \
1167         $(LIBCBASE)/gen/makectxt.c                      \
1168         $(LIBCBASE)/gen/siginfolst.c                    \
1169         $(LIBCBASE)/gen/siglongjmp.c                    \
1170         $(LIBCBASE)/gen/strcmp.c                        \
1171         $(LIBCBASE)/gen/sync_instruction_memory.c       \
1172         $(LIBCBASE)/sys/ptrace.c                        \
1173         $(LIBCBASE)/sys/uadmin.c
1174 
1175 # conditional assignments
1176 $(DYNLIB) := CRTI = crti.o
1177 $(DYNLIB) := CRTN = crtn.o
1178 
1179 # Files which need the threads .il inline template