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