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