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