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/lib/libc/amd64/Makefile
+++ new/usr/src/lib/libc/amd64/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2016 Joyent, Inc.
24 24 #
25 25 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
26 26 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
27 27 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
28 28 # Use is subject to license terms.
29 29 #
30 30
31 31 LIBCBASE= .
32 32 LIBCDIR= $(SRC)/lib/libc
33 33 LIBRARY= libc.a
34 34 LIB_PIC= libc_pic.a
35 35 VERS= .1
36 36 CPP= /usr/lib/cpp
37 37 TARGET_ARCH= amd64
38 38
39 39 # objects are grouped by source directory
40 40
41 41 # local objects
42 42 STRETS=
43 43
44 44 CRTOBJS= \
45 45 cerror.o
46 46
47 47 DYNOBJS=
48 48
49 49 FPOBJS= \
50 50 fpgetmask.o \
51 51 fpgetround.o \
52 52 fpsetmask.o \
53 53 fpsetround.o \
54 54 fpstart.o \
55 55 ieee.o
56 56
57 57 I386FPOBJS= \
58 58 _D_cplx_div.o \
59 59 _D_cplx_div_ix.o \
60 60 _D_cplx_div_rx.o \
61 61 _D_cplx_lr_div.o \
62 62 _D_cplx_lr_div_ix.o \
63 63 _D_cplx_lr_div_rx.o \
64 64 _D_cplx_mul.o \
65 65 _F_cplx_div.o \
66 66 _F_cplx_div_ix.o \
67 67 _F_cplx_div_rx.o \
68 68 _F_cplx_lr_div.o \
69 69 _F_cplx_lr_div_ix.o \
70 70 _F_cplx_lr_div_rx.o \
71 71 _F_cplx_mul.o \
72 72 _X_cplx_div.o \
73 73 _X_cplx_div_ix.o \
74 74 _X_cplx_div_rx.o \
75 75 _X_cplx_lr_div.o \
76 76 _X_cplx_lr_div_ix.o \
77 77 _X_cplx_lr_div_rx.o \
78 78 _X_cplx_mul.o
79 79
80 80 FPASMOBJS= \
81 81 __xgetRD.o \
82 82 _xtoll.o \
83 83 _xtoull.o \
84 84 _base_il.o \
85 85 fpcw.o \
86 86 fpgetsticky.o \
87 87 fpsetsticky.o
88 88
89 89 ATOMICOBJS= \
90 90 atomic.o
91 91
92 92 CHACHAOBJS= \
93 93 chacha.o
94 94
95 95 XATTROBJS= \
96 96 xattr_common.o
97 97 COMOBJS= \
98 98 bcmp.o \
99 99 bcopy.o \
100 100 bsearch.o \
101 101 bzero.o \
102 102 qsort.o \
103 103 strtol.o \
104 104 strtoul.o \
105 105 strtoll.o \
106 106 strtoull.o
107 107
108 108 GENOBJS= \
109 109 _getsp.o \
110 110 abs.o \
111 111 alloca.o \
112 112 arc4random.o \
113 113 arc4random_uniform.o \
114 114 attrat.o \
115 115 byteorder.o \
116 116 cuexit.o \
117 117 ecvt.o \
118 118 endian.o \
119 119 errlst.o \
120 120 amd64_data.o \
121 121 ldivide.o \
122 122 lock.o \
123 123 makectxt.o \
124 124 memccpy.o \
125 125 memchr.o \
126 126 memcmp.o \
127 127 memcpy.o \
128 128 memset.o \
129 129 new_list.o \
130 130 proc64_id.o \
131 131 proc64_support.o \
132 132 setjmp.o \
133 133 siginfolst.o \
134 134 siglongjmp.o \
135 135 strcmp.o \
136 136 strcpy.o \
137 137 strlen.o \
138 138 strncmp.o \
139 139 strncpy.o \
140 140 strnlen.o \
141 141 sync_instruction_memory.o
142 142
143 143 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
144 144 # This macro should ALWAYS be empty; native APIs are already 'large file'.
145 145 COMSYSOBJS64=
146 146
147 147 SYSOBJS64=
148 148
149 149 COMSYSOBJS= \
150 150 __clock_timer.o \
151 151 __getloadavg.o \
152 152 __rusagesys.o \
153 153 __signotify.o \
154 154 __sigrt.o \
155 155 __time.o \
156 156 _lgrp_home_fast.o \
157 157 _lgrpsys.o \
158 158 _nfssys.o \
159 159 _portfs.o \
160 160 _pset.o \
161 161 _rpcsys.o \
162 162 _sigaction.o \
163 163 _so_accept.o \
164 164 _so_bind.o \
165 165 _so_connect.o \
166 166 _so_getpeername.o \
167 167 _so_getsockname.o \
168 168 _so_getsockopt.o \
169 169 _so_listen.o \
170 170 _so_recv.o \
171 171 _so_recvfrom.o \
172 172 _so_recvmsg.o \
173 173 _so_send.o \
174 174 _so_sendmsg.o \
175 175 _so_sendto.o \
176 176 _so_setsockopt.o \
177 177 _so_shutdown.o \
178 178 _so_socket.o \
179 179 _so_socketpair.o \
180 180 _sockconfig.o \
181 181 acct.o \
182 182 acl.o \
183 183 adjtime.o \
184 184 alarm.o \
185 185 brk.o \
186 186 chdir.o \
187 187 chroot.o \
188 188 cladm.o \
189 189 close.o \
190 190 execve.o \
191 191 exit.o \
192 192 facl.o \
193 193 fchdir.o \
194 194 fchroot.o \
195 195 fdsync.o \
196 196 fpathconf.o \
197 197 fstatfs.o \
198 198 fstatvfs.o \
199 199 getcpuid.o \
200 200 getdents.o \
201 201 getegid.o \
202 202 geteuid.o \
203 203 getgid.o \
204 204 getgroups.o \
205 205 gethrtime.o \
206 206 getitimer.o \
207 207 getmsg.o \
208 208 getpid.o \
209 209 getpmsg.o \
210 210 getppid.o \
211 211 getrandom.o \
212 212 getrlimit.o \
213 213 getuid.o \
214 214 gtty.o \
215 215 install_utrap.o \
216 216 ioctl.o \
217 217 kaio.o \
218 218 kill.o \
219 219 llseek.o \
220 220 lseek.o \
221 221 mmapobjsys.o \
222 222 memcntl.o \
223 223 mincore.o \
224 224 mmap.o \
225 225 modctl.o \
226 226 mount.o \
227 227 mprotect.o \
228 228 munmap.o \
229 229 nice.o \
230 230 ntp_adjtime.o \
231 231 ntp_gettime.o \
232 232 p_online.o \
233 233 pathconf.o \
↓ open down ↓ |
233 lines elided |
↑ open up ↑ |
234 234 pause.o \
235 235 pcsample.o \
236 236 pipe2.o \
237 237 pollsys.o \
238 238 pread.o \
239 239 preadv.o \
240 240 priocntlset.o \
241 241 processor_bind.o \
242 242 processor_info.o \
243 243 profil.o \
244 + psecflagsset.o \
244 245 putmsg.o \
245 246 putpmsg.o \
246 247 pwrite.o \
247 248 pwritev.o \
248 249 read.o \
249 250 readv.o \
250 251 resolvepath.o \
251 252 seteguid.o \
252 253 setgid.o \
253 254 setgroups.o \
254 255 setitimer.o \
255 256 setreid.o \
256 257 setrlimit.o \
257 258 setuid.o \
258 259 sigaltstk.o \
259 260 sigprocmsk.o \
260 261 sigsendset.o \
261 262 sigsuspend.o \
262 263 statfs.o \
263 264 statvfs.o \
264 265 stty.o \
265 266 sync.o \
266 267 sysconfig.o \
267 268 sysfs.o \
268 269 sysinfo.o \
269 270 syslwp.o \
270 271 times.o \
271 272 ulimit.o \
272 273 umask.o \
273 274 umount2.o \
274 275 utssys.o \
275 276 uucopy.o \
276 277 vhangup.o \
277 278 waitid.o \
278 279 write.o \
279 280 writev.o \
280 281 yield.o
281 282
282 283 SYSOBJS= \
283 284 __clock_gettime.o \
284 285 __getcontext.o \
285 286 __uadmin.o \
286 287 _lwp_mutex_unlock.o \
287 288 _stack_grow.o \
288 289 door.o \
289 290 forkx.o \
290 291 forkallx.o \
291 292 getcontext.o \
292 293 gettimeofday.o \
293 294 lwp_private.o \
294 295 nuname.o \
295 296 syscall.o \
296 297 sysi86.o \
297 298 tls_get_addr.o \
298 299 uadmin.o \
299 300 umount.o \
300 301 uname.o \
301 302 vforkx.o
302 303
303 304 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
304 305 # This macro should ALWAYS be empty; native APIs are already 'large file'.
305 306 PORTGEN64=
306 307
307 308 # objects from source under $(LIBCDIR)/port
308 309 PORTFP= \
309 310 __flt_decim.o \
310 311 __flt_rounds.o \
311 312 __tbl_10_b.o \
312 313 __tbl_10_h.o \
313 314 __tbl_10_s.o \
314 315 __tbl_2_b.o \
315 316 __tbl_2_h.o \
316 317 __tbl_2_s.o \
317 318 __tbl_fdq.o \
318 319 __tbl_tens.o \
319 320 __x_power.o \
320 321 _base_sup.o \
321 322 aconvert.o \
322 323 decimal_bin.o \
323 324 double_decim.o \
324 325 econvert.o \
325 326 fconvert.o \
326 327 file_decim.o \
327 328 finite.o \
328 329 fp_data.o \
329 330 func_decim.o \
330 331 gconvert.o \
331 332 hex_bin.o \
332 333 ieee_globals.o \
333 334 pack_float.o \
334 335 sigfpe.o \
335 336 string_decim.o
336 337
337 338 PORTGEN= \
338 339 _env_data.o \
339 340 _xftw.o \
340 341 a64l.o \
341 342 abort.o \
342 343 addsev.o \
343 344 ascii_strcasecmp.o \
344 345 ascii_strncasecmp.o \
345 346 assert.o \
346 347 atof.o \
347 348 atoi.o \
348 349 atol.o \
349 350 atoll.o \
350 351 attropen.o \
351 352 atexit.o \
352 353 atfork.o \
353 354 basename.o \
354 355 calloc.o \
355 356 catgets.o \
356 357 catopen.o \
357 358 cfgetispeed.o \
358 359 cfgetospeed.o \
359 360 cfree.o \
360 361 cfsetispeed.o \
361 362 cfsetospeed.o \
362 363 cftime.o \
363 364 clock.o \
364 365 closedir.o \
365 366 closefrom.o \
366 367 confstr.o \
367 368 crypt.o \
368 369 csetlen.o \
369 370 ctime.o \
370 371 ctime_r.o \
371 372 daemon.o \
372 373 deflt.o \
373 374 directio.o \
374 375 dirname.o \
375 376 div.o \
376 377 drand48.o \
377 378 dup.o \
378 379 env_data.o \
379 380 err.o \
380 381 errno.o \
381 382 euclen.o \
382 383 event_port.o \
383 384 execvp.o \
384 385 explicit_bzero.o \
385 386 fattach.o \
386 387 fdetach.o \
387 388 fdopendir.o \
388 389 ffs.o \
389 390 flock.o \
390 391 fls.o \
391 392 fmtmsg.o \
392 393 ftime.o \
393 394 ftok.o \
394 395 ftw.o \
395 396 gcvt.o \
396 397 getauxv.o \
397 398 getcwd.o \
398 399 getdate_err.o \
399 400 getdtblsize.o \
400 401 getentropy.o \
401 402 getenv.o \
402 403 getexecname.o \
403 404 getgrnam.o \
404 405 getgrnam_r.o \
405 406 gethostid.o \
406 407 gethostname.o \
407 408 gethz.o \
408 409 getisax.o \
409 410 getloadavg.o \
410 411 getlogin.o \
411 412 getmntent.o \
412 413 getnetgrent.o \
413 414 get_nprocs.o \
414 415 getopt.o \
415 416 getopt_long.o \
416 417 getpagesize.o \
417 418 getpw.o \
418 419 getpwnam.o \
419 420 getpwnam_r.o \
420 421 getrusage.o \
421 422 getspent.o \
422 423 getspent_r.o \
423 424 getsubopt.o \
424 425 gettxt.o \
425 426 getusershell.o \
426 427 getut.o \
427 428 getutx.o \
428 429 getvfsent.o \
429 430 getwd.o \
430 431 getwidth.o \
431 432 getxby_door.o \
432 433 gtxt.o \
433 434 hsearch.o \
434 435 iconv.o \
435 436 imaxabs.o \
436 437 imaxdiv.o \
437 438 index.o \
438 439 initgroups.o \
439 440 insque.o \
440 441 isaexec.o \
441 442 isastream.o \
442 443 isatty.o \
443 444 killpg.o \
444 445 klpdlib.o \
445 446 l64a.o \
446 447 lckpwdf.o \
447 448 lconstants.o \
448 449 lexp10.o \
449 450 lfind.o \
450 451 lfmt.o \
451 452 lfmt_log.o \
452 453 lldiv.o \
453 454 llog10.o \
454 455 lltostr.o \
455 456 lmath.o \
456 457 localtime.o \
457 458 lsearch.o \
458 459 madvise.o \
459 460 malloc.o \
460 461 memalign.o \
461 462 memmem.o \
462 463 mkdev.o \
463 464 mkdtemp.o \
464 465 mkfifo.o \
465 466 mkstemp.o \
466 467 mktemp.o \
467 468 mlock.o \
468 469 mlockall.o \
469 470 mon.o \
470 471 msync.o \
471 472 munlock.o \
472 473 munlockall.o \
473 474 ndbm.o \
474 475 nftw.o \
475 476 nlspath_checks.o \
476 477 nsparse.o \
477 478 nss_common.o \
478 479 nss_dbdefs.o \
479 480 nss_deffinder.o \
480 481 opendir.o \
481 482 opt_data.o \
482 483 perror.o \
483 484 pfmt.o \
484 485 pfmt_data.o \
485 486 pfmt_print.o \
↓ open down ↓ |
232 lines elided |
↑ open up ↑ |
486 487 pipe.o \
487 488 plock.o \
488 489 poll.o \
489 490 posix_fadvise.o \
490 491 posix_fallocate.o \
491 492 posix_madvise.o \
492 493 posix_memalign.o \
493 494 priocntl.o \
494 495 privlib.o \
495 496 priv_str_xlate.o \
497 + psecflags.o \
496 498 psiginfo.o \
497 499 psignal.o \
498 500 pt.o \
499 501 putpwent.o \
500 502 putspent.o \
501 503 raise.o \
502 504 rand.o \
503 505 random.o \
504 506 rctlops.o \
505 507 readdir.o \
506 508 readdir_r.o \
507 509 realpath.o \
508 510 reboot.o \
509 511 regexpr.o \
510 512 remove.o \
511 513 rewinddir.o \
512 514 rindex.o \
513 515 scandir.o \
514 516 seekdir.o \
515 517 select.o \
516 518 setlabel.o \
517 519 setpriority.o \
518 520 settimeofday.o \
519 521 sh_locks.o \
520 522 sigflag.o \
521 523 siglist.o \
522 524 sigsend.o \
523 525 sigsetops.o \
524 526 ssignal.o \
525 527 stack.o \
526 528 stpcpy.o \
527 529 stpncpy.o \
528 530 str2sig.o \
529 531 strcase_charmap.o \
530 532 strcat.o \
531 533 strchr.o \
532 534 strchrnul.o \
533 535 strcspn.o \
534 536 strdup.o \
535 537 strerror.o \
536 538 strlcat.o \
537 539 strlcpy.o \
538 540 strncat.o \
539 541 strndup.o \
540 542 strpbrk.o \
541 543 strrchr.o \
542 544 strsep.o \
543 545 strsignal.o \
544 546 strspn.o \
545 547 strstr.o \
546 548 strtod.o \
547 549 strtoimax.o \
548 550 strtok.o \
549 551 strtok_r.o \
550 552 strtoumax.o \
551 553 swab.o \
552 554 swapctl.o \
553 555 sysconf.o \
554 556 syslog.o \
555 557 tcdrain.o \
556 558 tcflow.o \
557 559 tcflush.o \
558 560 tcgetattr.o \
559 561 tcgetpgrp.o \
560 562 tcgetsid.o \
561 563 tcsendbreak.o \
562 564 tcsetattr.o \
563 565 tcsetpgrp.o \
564 566 tell.o \
565 567 telldir.o \
566 568 tfind.o \
567 569 time_data.o \
568 570 time_gdata.o \
569 571 timespec_get.o \
570 572 tls_data.o \
571 573 truncate.o \
572 574 tsdalloc.o \
573 575 tsearch.o \
574 576 ttyname.o \
575 577 ttyslot.o \
576 578 ualarm.o \
577 579 ucred.o \
578 580 valloc.o \
579 581 vlfmt.o \
580 582 vpfmt.o \
581 583 waitpid.o \
582 584 walkstack.o \
583 585 wdata.o \
584 586 xgetwidth.o \
585 587 xpg4.o \
586 588 xpg6.o
587 589
588 590 PORTPRINT_W= \
589 591 doprnt_w.o
590 592
591 593 PORTPRINT= \
592 594 asprintf.o \
593 595 doprnt.o \
594 596 fprintf.o \
595 597 printf.o \
596 598 snprintf.o \
597 599 sprintf.o \
598 600 vfprintf.o \
599 601 vprintf.o \
600 602 vsnprintf.o \
601 603 vsprintf.o \
602 604 vwprintf.o \
603 605 wprintf.o
604 606
605 607 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
606 608 # This macro should ALWAYS be empty; native APIs are already 'large file'.
607 609 PORTSTDIO64=
608 610
609 611 PORTSTDIO_W= \
610 612 doscan_w.o
611 613
612 614 PORTSTDIO= \
613 615 __extensions.o \
614 616 _endopen.o \
615 617 _filbuf.o \
616 618 _findbuf.o \
617 619 _flsbuf.o \
618 620 _wrtchk.o \
619 621 clearerr.o \
620 622 ctermid.o \
621 623 ctermid_r.o \
622 624 cuserid.o \
623 625 data.o \
624 626 doscan.o \
625 627 fdopen.o \
626 628 feof.o \
627 629 ferror.o \
628 630 fgetc.o \
629 631 fgets.o \
630 632 fileno.o \
631 633 flockf.o \
632 634 flush.o \
633 635 fopen.o \
634 636 fpos.o \
635 637 fputc.o \
636 638 fputs.o \
637 639 fread.o \
638 640 fseek.o \
639 641 fseeko.o \
640 642 ftell.o \
641 643 ftello.o \
642 644 fwrite.o \
643 645 getc.o \
644 646 getchar.o \
645 647 getline.o \
646 648 getpass.o \
647 649 gets.o \
648 650 getw.o \
649 651 mse.o \
650 652 popen.o \
651 653 putc.o \
652 654 putchar.o \
653 655 puts.o \
654 656 putw.o \
655 657 rewind.o \
656 658 scanf.o \
657 659 setbuf.o \
658 660 setbuffer.o \
659 661 setvbuf.o \
660 662 system.o \
661 663 tempnam.o \
662 664 tmpfile.o \
663 665 tmpnam_r.o \
664 666 ungetc.o \
665 667 vscanf.o \
666 668 vwscanf.o \
667 669 wscanf.o
668 670
669 671 PORTI18N= \
670 672 getwchar.o \
671 673 putwchar.o \
672 674 putws.o \
673 675 strtows.o \
674 676 wcsnlen.o \
675 677 wcsstr.o \
676 678 wcstoimax.o \
677 679 wcstol.o \
678 680 wcstoul.o \
679 681 wcswcs.o \
680 682 wmemchr.o \
681 683 wmemcmp.o \
682 684 wmemcpy.o \
683 685 wmemmove.o \
684 686 wmemset.o \
685 687 wscat.o \
686 688 wschr.o \
687 689 wscmp.o \
688 690 wscpy.o \
689 691 wscspn.o \
690 692 wsdup.o \
691 693 wslen.o \
692 694 wsncat.o \
693 695 wsncmp.o \
694 696 wsncpy.o \
695 697 wspbrk.o \
696 698 wsprintf.o \
697 699 wsrchr.o \
698 700 wsscanf.o \
699 701 wsspn.o \
700 702 wstod.o \
701 703 wstok.o \
702 704 wstol.o \
703 705 wstoll.o \
704 706 wsxfrm.o \
705 707 gettext.o \
706 708 gettext_gnu.o \
707 709 gettext_real.o \
708 710 gettext_util.o \
709 711 plural_parser.o \
710 712 wdresolve.o \
711 713 _ctype.o \
712 714 isascii.o \
713 715 toascii.o
714 716
715 717 PORTI18N_COND= \
716 718 wcstol_longlong.o \
717 719 wcstoul_longlong.o
718 720
719 721 PORTLOCALE= \
720 722 big5.o \
721 723 btowc.o \
722 724 collate.o \
723 725 collcmp.o \
724 726 euc.o \
725 727 fnmatch.o \
726 728 fgetwc.o \
727 729 fgetws.o \
728 730 fix_grouping.o \
729 731 fputwc.o \
730 732 fputws.o \
731 733 fwide.o \
732 734 gb18030.o \
733 735 gb2312.o \
734 736 gbk.o \
735 737 getdate.o \
736 738 isdigit.o \
737 739 iswctype.o \
738 740 ldpart.o \
739 741 lmessages.o \
740 742 lnumeric.o \
741 743 lmonetary.o \
742 744 localeconv.o \
743 745 localeimpl.o \
744 746 mbftowc.o \
745 747 mblen.o \
746 748 mbrlen.o \
747 749 mbrtowc.o \
748 750 mbsinit.o \
749 751 mbsnrtowcs.o \
750 752 mbsrtowcs.o \
751 753 mbstowcs.o \
752 754 mbtowc.o \
753 755 mskanji.o \
754 756 nextwctype.o \
755 757 nl_langinfo.o \
756 758 none.o \
757 759 regcomp.o \
758 760 regfree.o \
759 761 regerror.o \
760 762 regexec.o \
761 763 rune.o \
762 764 runetype.o \
763 765 setlocale.o \
764 766 setrunelocale.o \
765 767 strcasecmp.o \
766 768 strcasestr.o \
767 769 strcoll.o \
768 770 strfmon.o \
769 771 strftime.o \
770 772 strncasecmp.o \
771 773 strptime.o \
772 774 strxfrm.o \
773 775 table.o \
774 776 timelocal.o \
775 777 tolower.o \
776 778 towlower.o \
777 779 ungetwc.o \
778 780 utf8.o \
779 781 wcrtomb.o \
780 782 wcscasecmp.o \
781 783 wcscoll.o \
782 784 wcsftime.o \
783 785 wcsnrtombs.o \
784 786 wcsrtombs.o \
785 787 wcswidth.o \
786 788 wcstombs.o \
787 789 wcsxfrm.o \
788 790 wctob.o \
789 791 wctomb.o \
790 792 wctrans.o \
791 793 wctype.o \
792 794 wcwidth.o \
793 795 wscol.o
794 796
795 797 AIOOBJS= \
796 798 aio.o \
797 799 aio_alloc.o \
798 800 posix_aio.o
↓ open down ↓ |
293 lines elided |
↑ open up ↑ |
799 801
800 802 RTOBJS= \
801 803 clock_timer.o \
802 804 mqueue.o \
803 805 pos4obj.o \
804 806 sched.o \
805 807 sem.o \
806 808 shm.o \
807 809 sigev_thread.o
808 810
811 +SECFLAGSOBJS= \
812 + secflags.o
813 +
809 814 TPOOLOBJS= \
810 815 thread_pool.o
811 816
812 817 THREADSOBJS= \
813 818 alloc.o \
814 819 assfail.o \
815 820 c11_thr.o \
816 821 cancel.o \
817 822 door_calls.o \
818 823 tmem.o \
819 824 pthr_attr.o \
820 825 pthr_barrier.o \
821 826 pthr_cond.o \
822 827 pthr_mutex.o \
823 828 pthr_rwlock.o \
824 829 pthread.o \
825 830 rwlock.o \
826 831 scalls.o \
827 832 sema.o \
828 833 sigaction.o \
829 834 spawn.o \
830 835 synch.o \
831 836 tdb_agent.o \
832 837 thr.o \
833 838 thread_interface.o \
834 839 tls.o \
835 840 tsd.o
836 841
837 842 THREADSMACHOBJS= \
838 843 machdep.o
839 844
840 845 THREADSASMOBJS= \
841 846 asm_subr.o
842 847
843 848 UNICODEOBJS= \
844 849 u8_textprep.o \
845 850 uconv.o
846 851
847 852 UNWINDMACHOBJS= \
848 853 call_frame_inst.o \
849 854 eh_frame.o \
850 855 thrp_unwind.o \
851 856 unwind.o
852 857
853 858 pics/unwind.o:= COPTFLAG64 =
854 859
855 860 UNWINDASMOBJS= \
856 861 unwind_frame.o
857 862
858 863 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
859 864 # This macro should ALWAYS be empty; native APIs are already 'large file'.
860 865 PORTSYS64=
861 866
862 867 PORTSYS= \
863 868 _autofssys.o \
864 869 access.o \
865 870 acctctl.o \
866 871 bsd_signal.o \
867 872 chmod.o \
868 873 chown.o \
869 874 corectl.o \
870 875 epoll.o \
871 876 exacctsys.o \
872 877 execl.o \
873 878 execle.o \
874 879 execv.o \
875 880 eventfd.o \
876 881 fcntl.o \
877 882 getpagesizes.o \
878 883 getpeerucred.o \
879 884 inst_sync.o \
880 885 issetugid.o \
881 886 label.o \
882 887 link.o \
883 888 lockf.o \
884 889 lwp.o \
885 890 lwp_cond.o \
886 891 lwp_rwlock.o \
887 892 lwp_sigmask.o \
888 893 meminfosys.o \
889 894 mkdir.o \
890 895 mknod.o \
891 896 msgsys.o \
892 897 nfssys.o \
893 898 open.o \
894 899 pgrpsys.o \
895 900 posix_sigwait.o \
896 901 ppriv.o \
897 902 psetsys.o \
898 903 rctlsys.o \
899 904 readlink.o \
900 905 rename.o \
901 906 sbrk.o \
902 907 semsys.o \
903 908 set_errno.o \
904 909 sharefs.o \
905 910 shmsys.o \
906 911 sidsys.o \
907 912 siginterrupt.o \
908 913 signal.o \
909 914 signalfd.o \
910 915 sigpending.o \
911 916 sigstack.o \
912 917 stat.o \
913 918 symlink.o \
914 919 tasksys.o \
915 920 time.o \
916 921 time_util.o \
917 922 timerfd.o \
918 923 ucontext.o \
919 924 unlink.o \
920 925 ustat.o \
921 926 utimesys.o \
922 927 zone.o
923 928
924 929 PORTREGEX= \
925 930 glob.o \
926 931 regcmp.o \
927 932 regex.o \
928 933 wordexp.o
929 934
930 935 VALUES= \
931 936 values-Xa.o
932 937
933 938 MOSTOBJS= \
934 939 $(STRETS) \
935 940 $(CRTOBJS) \
936 941 $(DYNOBJS) \
937 942 $(FPOBJS) \
938 943 $(I386FPOBJS) \
939 944 $(FPASMOBJS) \
940 945 $(ATOMICOBJS) \
941 946 $(CHACHAOBJS) \
942 947 $(XATTROBJS) \
943 948 $(COMOBJS) \
944 949 $(GENOBJS) \
945 950 $(PORTFP) \
946 951 $(PORTGEN) \
947 952 $(PORTGEN64) \
948 953 $(PORTI18N) \
949 954 $(PORTI18N_COND) \
950 955 $(PORTLOCALE) \
↓ open down ↓ |
132 lines elided |
↑ open up ↑ |
951 956 $(PORTPRINT) \
952 957 $(PORTPRINT_W) \
953 958 $(PORTREGEX) \
954 959 $(PORTSTDIO) \
955 960 $(PORTSTDIO64) \
956 961 $(PORTSTDIO_W) \
957 962 $(PORTSYS) \
958 963 $(PORTSYS64) \
959 964 $(AIOOBJS) \
960 965 $(RTOBJS) \
966 + $(SECFLAGSOBJS) \
961 967 $(TPOOLOBJS) \
962 968 $(THREADSOBJS) \
963 969 $(THREADSMACHOBJS) \
964 970 $(THREADSASMOBJS) \
965 971 $(UNICODEOBJS) \
966 972 $(UNWINDMACHOBJS) \
967 973 $(UNWINDASMOBJS) \
968 974 $(COMSYSOBJS) \
969 975 $(SYSOBJS) \
970 976 $(COMSYSOBJS64) \
971 977 $(SYSOBJS64) \
972 978 $(VALUES)
973 979
974 980 TRACEOBJS= \
975 981 plockstat.o
976 982
977 983 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
978 984 # modules whose source is provided in the $(SRC)/lib/common directory.
979 985 # This must be done because otherwise the Sun C compiler would insert
980 986 # its own versions of these modules and those versions contain code
981 987 # to call out to C++ initialization functions. Such C++ initialization
982 988 # functions can call back into libc before thread initialization is
983 989 # complete and this leads to segmentation violations and other problems.
984 990 # Since libc contains no C++ code, linking with the minimal crti.o and
985 991 # crtn.o modules is safe and avoids the problems described above.
986 992 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
987 993 CRTSRCS= ../../common/amd64
988 994
989 995 # include common library definitions
990 996 include ../../Makefile.lib
991 997 include ../../Makefile.lib.64
992 998
993 999 CFLAGS64 += $(CTF_FLAGS)
994 1000
995 1001 # This is necessary to avoid problems with calling _ex_unwind().
996 1002 # We probably don't want any inlining anyway.
997 1003 CFLAGS64 += -xinline=
998 1004
999 1005 CERRWARN += -_gcc=-Wno-parentheses
1000 1006 CERRWARN += -_gcc=-Wno-switch
1001 1007 CERRWARN += -_gcc=-Wno-uninitialized
1002 1008 CERRWARN += -_gcc=-Wno-unused-value
1003 1009 CERRWARN += -_gcc=-Wno-unused-label
1004 1010 CERRWARN += -_gcc=-Wno-unused-variable
1005 1011 CERRWARN += -_gcc=-Wno-type-limits
1006 1012 CERRWARN += -_gcc=-Wno-char-subscripts
1007 1013 CERRWARN += -_gcc=-Wno-clobbered
1008 1014 CERRWARN += -_gcc=-Wno-unused-function
1009 1015 CERRWARN += -_gcc=-Wno-address
1010 1016
1011 1017 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1012 1018 # enables ASSERT() checking in the threads portion of the library.
1013 1019 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1014 1020 THREAD_DEBUG =
1015 1021 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1016 1022
1017 1023 # Make string literals read-only to save memory
1018 1024 CFLAGS64 += $(XSTRCONST)
1019 1025
1020 1026 ALTPICS= $(TRACEOBJS:%=pics/%)
1021 1027
1022 1028 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1023 1029
1024 1030 MAPFILES = $(LIBCDIR)/port/mapfile-vers
1025 1031
1026 1032 CPPFLAGS= -D_REENTRANT -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
1027 1033 -I. -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1028 1034 ASFLAGS= $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) \
1029 1035 $(amd64_AS_XARCH)
1030 1036
1031 1037 # As a favor to the dtrace syscall provider, libc still calls the
1032 1038 # old syscall traps that have been obsoleted by the *at() interfaces.
1033 1039 # Delete this to compile libc using only the new *at() system call traps
1034 1040 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1035 1041
1036 1042 # proc64_id.o is built with defines in $(SRC)/uts/intel/sys/x86_archext.h
1037 1043 pics/proc64_id.o := CFLAGS64 += -I$(SRC)/uts/intel
1038 1044
1039 1045 # Inform the run-time linker about libc specialized initialization
1040 1046 RTLDINFO = -z rtldinfo=tls_rtldinfo
1041 1047 DYNFLAGS += $(RTLDINFO)
1042 1048
1043 1049 # Force libc's internal references to be resolved immediately upon loading
1044 1050 # in order to avoid critical region problems. Since almost all libc symbols
1045 1051 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1046 1052 DYNFLAGS += -znow
1047 1053
1048 1054 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
1049 1055
1050 1056 # Override this top level flag so the compiler builds in its native
1051 1057 # C99 mode. This has been enabled to support the complex arithmetic
1052 1058 # added to libc.
1053 1059 C99MODE= $(C99_ENABLE)
1054 1060
1055 1061 # libc method of building an archive
1056 1062 # The "$(GREP) -v ' L '" part is necessary only until
1057 1063 # lorder is fixed to ignore thread-local variables.
1058 1064 BUILD.AR= $(RM) $@ ; \
1059 1065 $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1060 1066
1061 1067 # extra files for the clean target
1062 1068 CLEANFILES= \
1063 1069 $(LIBCDIR)/port/gen/errlst.c \
1064 1070 $(LIBCDIR)/port/gen/new_list.c \
1065 1071 assym.h \
1066 1072 genassym \
1067 1073 crt/_rtld.s \
1068 1074 pics/crti.o \
1069 1075 pics/crtn.o \
1070 1076 $(ALTPICS)
1071 1077
1072 1078 CLOBBERFILES += $(LIB_PIC)
1073 1079
1074 1080 # list of C source for lint
1075 1081 SRCS= \
1076 1082 $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
1077 1083 $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
1078 1084 $(COMOBJS:%.o=$(SRC)/common/util/%.c) \
↓ open down ↓ |
108 lines elided |
↑ open up ↑ |
1079 1085 $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
1080 1086 $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
1081 1087 $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
1082 1088 $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c) \
1083 1089 $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
1084 1090 $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
1085 1091 $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
1086 1092 $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
1087 1093 $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
1088 1094 $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
1095 + $(SECFLAGSOBJS:%.o=$(SRC)/common/secflags/%.c) \
1089 1096 $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
1090 1097 $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
1091 1098 $(THREADSMACHOBJS:%.o=threads/%.c) \
1092 1099 $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
1093 1100 $(UNWINDMACHOBJS:%.o=unwind/%.c) \
1094 1101 $(FPOBJS:%.o=fp/%.c) \
1095 1102 $(I386FPOBJS:%.o=$(LIBCDIR)/i386/fp/%.c) \
1096 1103 $(LIBCBASE)/gen/ecvt.c \
1097 1104 $(LIBCBASE)/gen/makectxt.c \
1098 1105 $(LIBCBASE)/gen/siginfolst.c \
1099 1106 $(LIBCBASE)/gen/siglongjmp.c \
1100 1107 $(LIBCBASE)/gen/sync_instruction_memory.c \
1101 1108 $(LIBCBASE)/sys/uadmin.c
1102 1109
1103 1110 # conditional assignments
1104 1111 # $(DYNLIB) $(LIB_PIC) := DYNOBJS = _rtbootld.o
1105 1112 $(DYNLIB) := CRTI = crti.o
1106 1113 $(DYNLIB) := CRTN = crtn.o
1107 1114
1108 1115 # Files which need the threads .il inline template
1109 1116 TIL= \
1110 1117 aio.o \
1111 1118 alloc.o \
1112 1119 assfail.o \
1113 1120 atexit.o \
1114 1121 atfork.o \
1115 1122 cancel.o \
1116 1123 door_calls.o \
1117 1124 err.o \
1118 1125 errno.o \
1119 1126 lwp.o \
1120 1127 ma.o \
1121 1128 machdep.o \
1122 1129 posix_aio.o \
1123 1130 pthr_attr.o \
1124 1131 pthr_barrier.o \
1125 1132 pthr_cond.o \
1126 1133 pthr_mutex.o \
1127 1134 pthr_rwlock.o \
1128 1135 pthread.o \
1129 1136 rand.o \
1130 1137 rwlock.o \
1131 1138 scalls.o \
1132 1139 sched.o \
1133 1140 sema.o \
1134 1141 sigaction.o \
1135 1142 sigev_thread.o \
1136 1143 spawn.o \
1137 1144 stack.o \
1138 1145 synch.o \
1139 1146 tdb_agent.o \
1140 1147 thr.o \
1141 1148 thread_interface.o \
1142 1149 thread_pool.o \
1143 1150 thrp_unwind.o \
1144 1151 tls.o \
1145 1152 tmem.o \
1146 1153 tsd.o
1147 1154
1148 1155 $(TIL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/threads/amd64.il
1149 1156
1150 1157 # pics/mul64.o := CFLAGS64 += crt/mul64.il
1151 1158
1152 1159 # large-file-aware components that should be built large
1153 1160
1154 1161 #$(COMSYSOBJS64:%=pics/%) := \
1155 1162 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1156 1163
1157 1164 #$(SYSOBJS64:%=pics/%) := \
1158 1165 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1159 1166
1160 1167 #$(PORTGEN64:%=pics/%) := \
1161 1168 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1162 1169
1163 1170 #$(PORTSTDIO64:%=pics/%) := \
1164 1171 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1165 1172
1166 1173 #$(PORTSYS64:%=pics/%) := \
1167 1174 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1168 1175
1169 1176 $(PORTSTDIO_W:%=pics/%) := \
1170 1177 CPPFLAGS += -D_WIDE
1171 1178
1172 1179 $(PORTPRINT_W:%=pics/%) := \
1173 1180 CPPFLAGS += -D_WIDE
1174 1181
1175 1182 $(PORTPRINT_C89:%=pics/%) := \
1176 1183 CPPFLAGS += -D_C89_INTMAX32
1177 1184
1178 1185 $(PORTSTDIO_C89:%=pics/%) := \
1179 1186 CPPFLAGS += -D_C89_INTMAX32
1180 1187
1181 1188 $(PORTI18N_COND:%=pics/%) := \
1182 1189 CPPFLAGS += -D_WCS_LONGLONG
1183 1190
1184 1191 pics/arc4random.o := CPPFLAGS += -I$(SRC)/common/crypto/chacha
1185 1192
1186 1193 .KEEP_STATE:
1187 1194
1188 1195 all: $(LIBS) $(LIB_PIC)
1189 1196
1190 1197 lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1191 1198 lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1192 1199 lint := LINTFLAGS64 += -mn -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
1193 1200
1194 1201 lint:
1195 1202 @echo $(LINT.c) ... $(LDLIBS)
1196 1203 @$(LINT.c) $(SRCS) $(LDLIBS)
1197 1204
1198 1205 $(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
1199 1206 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1200 1207 $(LINTLIB):= LINTFLAGS64=-nvx -m64
1201 1208
1202 1209 # object files that depend on inline template
1203 1210 $(TIL:%=pics/%): $(LIBCBASE)/threads/amd64.il
1204 1211 # pics/mul64.o: crt/mul64.il
1205 1212
1206 1213 # include common libc targets
1207 1214 include ../Makefile.targ
1208 1215
1209 1216 # We need to strip out all CTF data from the static library
1210 1217 $(LIB_PIC) := DIR = pics
1211 1218 $(LIB_PIC): pics $$(PICS)
1212 1219 $(BUILD.AR)
1213 1220 $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1214 1221 $(AR) -ts $@ > /dev/null
1215 1222 $(POST_PROCESS_A)
1216 1223
1217 1224 ASSYMDEP_OBJS= \
1218 1225 _lwp_mutex_unlock.o \
1219 1226 _stack_grow.o \
1220 1227 asm_subr.o \
1221 1228 getcontext.o \
1222 1229 setjmp.o \
1223 1230 tls_get_addr.o \
1224 1231 vforkx.o
1225 1232
1226 1233 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1227 1234
1228 1235 # assym.h build rules
1229 1236
1230 1237 GENASSYM_C = genassym.c
1231 1238
1232 1239 genassym: $(GENASSYM_C)
1233 1240 $(NATIVECC) $(NATIVE_CFLAGS) -Iinc -I$(LIBCDIR)/inc $(CPPFLAGS.native) \
1234 1241 -o $@ $(GENASSYM_C)
1235 1242
1236 1243 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1237 1244
1238 1245 assym.h: $(OFFSETS) genassym
1239 1246 $(OFFSETS_CREATE) <$(OFFSETS) >$@
1240 1247 ./genassym >>$@
1241 1248
1242 1249 # derived C source and related explicit dependencies
1243 1250 $(LIBCDIR)/port/gen/errlst.c + \
1244 1251 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1245 1252 cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1246 1253
1247 1254 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1248 1255
1249 1256 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
↓ open down ↓ |
151 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX