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