Print this page
3544 save-args matcher could be considerably more robust
3545 save-args matcher should accept saves may be out-of-order
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libproc/Makefile.com
+++ new/usr/src/lib/libproc/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) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2012 DEY Storage Systems, Inc. All rights reserved.
24 24 #
25 25
26 26 LIBRARY = libproc.a
27 27 VERS = .1
28 28
29 29 CMNOBJS = \
30 30 P32ton.o \
31 31 Pcontrol.o \
32 32 Pcore.o \
33 33 Pexecname.o \
34 34 Pfdinfo.o \
35 35 Pgcore.o \
36 36 Pidle.o \
37 37 Pisprocdir.o \
38 38 Plwpregs.o \
39 39 Pservice.o \
40 40 Psymtab.o \
41 41 Psymtab_machelf32.o \
42 42 $(CMNOBJS64) \
43 43 Pscantext.o \
44 44 Pstack.o \
45 45 Psyscall.o \
46 46 Putil.o \
47 47 Pzone.o \
48 48 pr_door.o \
49 49 pr_exit.o \
50 50 pr_fcntl.o \
51 51 pr_getitimer.o \
52 52 pr_getrctl.o \
53 53 pr_getrlimit.o \
54 54 pr_getsockname.o \
55 55 pr_ioctl.o \
56 56 pr_lseek.o \
57 57 pr_memcntl.o \
58 58 pr_meminfo.o \
59 59 pr_mmap.o \
60 60 pr_open.o \
61 61 pr_pbind.o \
62 62 pr_rename.o \
63 63 pr_sigaction.o \
64 64 pr_stat.o \
65 65 pr_statvfs.o \
66 66 pr_tasksys.o \
↓ open down ↓ |
66 lines elided |
↑ open up ↑ |
67 67 pr_waitid.o \
68 68 proc_get_info.o \
69 69 proc_names.o \
70 70 proc_arg.o \
71 71 proc_set.o \
72 72 proc_stdio.o
73 73
74 74 ISAOBJS = \
75 75 Pisadep.o
76 76
77 -amd64_SAVEOBJS = \
78 - saveargs.o
79 -
80 -amd64_CPPFLAGS = -I$(SRC)/common/saveargs
81 -
82 -SAVEOBJS = $($(MACH64)_SAVEOBJS)
83 -
84 77 OBJECTS = $(CMNOBJS) $(ISAOBJS) $(SAVEOBJS)
85 78
86 79 # include library definitions
87 80 include ../../Makefile.lib
88 81 include ../../Makefile.rootfs
89 82
90 83 SRCS = $(CMNOBJS:%.o=../common/%.c) $(ISAOBJS:%.o=%.c)
91 84
92 85 LIBS = $(DYNLIB) $(LINTLIB)
93 86 LDLIBS += -lrtld_db -lelf -lctf -lc
94 87 CPPFLAGS += $($(MACH64)_CPPFLAGS)
95 88
96 89 SRCDIR = ../common
97 90 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
98 91
99 92 CFLAGS += $(CCVERBOSE)
100 93 CPPFLAGS += -I$(SRCDIR)
101 94
102 95 CERRWARN += -_gcc=-Wno-uninitialized
103 96 CERRWARN += -_gcc=-Wno-parentheses
104 97 CERRWARN += -_gcc=-Wno-type-limits
105 98 CERRWARN += -_gcc=-Wno-unused-label
106 99
107 100 # All interfaces are interposable, therefore don't allow direct binding to
108 101 # libproc. Disable libproc from directly binding to itself, but allow libperl
109 102 # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect). Ensure
110 103 # lazy loading is established (which is enabled automatically with -Bdirect).
111 104 BDIRECT =
112 105 DYNFLAGS += $(BNODIRECT) $(ZDIRECT) $(ZLAZYLOAD)
113 106
114 107 .KEEP_STATE:
115 108
116 109 all: $(LIBS)
117 110
118 111 lint: lintcheck
119 112
120 113 # include library targets
121 114 include ../../Makefile.targ
122 115
123 116 objs/%.o pics/%.o: %.c
124 117 $(COMPILE.c) -o $@ $<
125 118 $(POST_PROCESS_O)
126 119
127 120 objs/%.o pics/%.o: $(SRC)/common/saveargs/%.c
128 121 $(COMPILE.c) -o $@ $<
129 122 $(POST_PROCESS_O)
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX