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