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