5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
24 #
25
26 RTLD= ld.so.1
27
28 AVLOBJ= avl.o
29 DTROBJ= dtrace_data.o
30 TOOLOBJS= alist.o strhash.o
31 BLTOBJ= msg.o
32 ELFCAPOBJ= elfcap.o
33 OBJECTS= $(BLTOBJ) \
34 $(AVLOBJ) \
35 $(DTROBJ) \
36 $(TOOLOBJS) \
37 $(ELFCAPOBJ) \
38 $(P_ASOBJS) $(P_COMOBJS) $(P_MACHOBJS) $(G_MACHOBJS) \
39 $(S_ASOBJS) $(S_COMOBJS) $(S_MACHOBJS) $(CP_MACHOBJS)
40
41 COMOBJS= $(P_COMOBJS) $(S_COMOBJS)
42 ASOBJS= $(P_ASOBJS) $(S_ASOBJS)
43 MACHOBJS= $(P_MACHOBJS) $(S_MACHOBJS)
44 NOCTFOBJS= $(ASOBJS)
72
73
74 FILEMODE = 755
75
76 CPPFLAGS += -I$(SRCBASE)/lib/libc/inc \
77 -I$(SRCBASE)/uts/common/krtld \
78 -I$(SRCBASE)/uts/$(PLAT) \
79 -I$(SRCBASE)/uts/$(PLAT)/krtld \
80 -I$(SRC)/common/sgsrtcid \
81 -I$(ELFCAP) \
82 $(CPPFEATUREMACROS)
83
84 ASFLAGS= -P -D_ASM $(CPPFLAGS)
85 LDLIB = -L ../../libld/$(MACH)
86 RTLDLIB = -L ../../librtld/$(MACH)
87
88 CERRWARN += -_gcc=-Wno-uninitialized
89 CERRWARN += -_gcc=-Wno-unused-variable
90 CERRWARN += -_gcc=-Wno-switch
91
92 # These definitions require that libc be built in the same workspace
93 # as the run-time linker and before the run-time linker is built.
94 # This is required for the system's self-consistency in any case.
95 CPICLIB = $(VAR_RTLD_CPICLIB)
96 CPICLIB64 = $(VAR_RTLD_CPICLIB64)
97 CLIB = -lc_pic
98
99 LDLIBS += $(CONVLIBDIR) $(CONV_LIB) \
100 $(CPICLIB) $(CLIB) \
101 $(LDDBGLIBDIR) $(LDDBG_LIB) \
102 $(RTLDLIB) -lrtld \
103 $(LDLIB) $(LD_LIB)
104
105 DYNFLAGS += -i -e _rt_boot $(VERSREF) $(ZNODLOPEN) \
106 $(ZINTERPOSE) -zdtrace=dtrace_data '-R$$ORIGIN'
107
108 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
109
110 BLTDEFS= msg.h
111 BLTDATA= msg.c
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
24 #
25 # Copyright (c) 2018, Joyent, Inc.
26
27 RTLD= ld.so.1
28
29 AVLOBJ= avl.o
30 DTROBJ= dtrace_data.o
31 TOOLOBJS= alist.o strhash.o
32 BLTOBJ= msg.o
33 ELFCAPOBJ= elfcap.o
34 OBJECTS= $(BLTOBJ) \
35 $(AVLOBJ) \
36 $(DTROBJ) \
37 $(TOOLOBJS) \
38 $(ELFCAPOBJ) \
39 $(P_ASOBJS) $(P_COMOBJS) $(P_MACHOBJS) $(G_MACHOBJS) \
40 $(S_ASOBJS) $(S_COMOBJS) $(S_MACHOBJS) $(CP_MACHOBJS)
41
42 COMOBJS= $(P_COMOBJS) $(S_COMOBJS)
43 ASOBJS= $(P_ASOBJS) $(S_ASOBJS)
44 MACHOBJS= $(P_MACHOBJS) $(S_MACHOBJS)
45 NOCTFOBJS= $(ASOBJS)
73
74
75 FILEMODE = 755
76
77 CPPFLAGS += -I$(SRCBASE)/lib/libc/inc \
78 -I$(SRCBASE)/uts/common/krtld \
79 -I$(SRCBASE)/uts/$(PLAT) \
80 -I$(SRCBASE)/uts/$(PLAT)/krtld \
81 -I$(SRC)/common/sgsrtcid \
82 -I$(ELFCAP) \
83 $(CPPFEATUREMACROS)
84
85 ASFLAGS= -P -D_ASM $(CPPFLAGS)
86 LDLIB = -L ../../libld/$(MACH)
87 RTLDLIB = -L ../../librtld/$(MACH)
88
89 CERRWARN += -_gcc=-Wno-uninitialized
90 CERRWARN += -_gcc=-Wno-unused-variable
91 CERRWARN += -_gcc=-Wno-switch
92
93 # not linted
94 SMATCH=off
95
96 # These definitions require that libc be built in the same workspace
97 # as the run-time linker and before the run-time linker is built.
98 # This is required for the system's self-consistency in any case.
99 CPICLIB = $(VAR_RTLD_CPICLIB)
100 CPICLIB64 = $(VAR_RTLD_CPICLIB64)
101 CLIB = -lc_pic
102
103 LDLIBS += $(CONVLIBDIR) $(CONV_LIB) \
104 $(CPICLIB) $(CLIB) \
105 $(LDDBGLIBDIR) $(LDDBG_LIB) \
106 $(RTLDLIB) -lrtld \
107 $(LDLIB) $(LD_LIB)
108
109 DYNFLAGS += -i -e _rt_boot $(VERSREF) $(ZNODLOPEN) \
110 $(ZINTERPOSE) -zdtrace=dtrace_data '-R$$ORIGIN'
111
112 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
113
114 BLTDEFS= msg.h
115 BLTDATA= msg.c
|