Print this page
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/lib/brand/lx/lx_vdso/Makefile.com
+++ new/usr/src/lib/brand/lx/lx_vdso/Makefile.com
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright 2016 Joyent, Inc.
14 14 #
15 15
16 16 LIBRARY = lx_vdso.a
17 17 VERS = .1
18 18
19 19 include $(SRC)/lib/commpage/Makefile.shared.com
20 20
21 21 COBJS = vdso_main.o vdso_subr.o
22 22 OBJECTS = $(COBJS) $(COMMPAGE_OBJS)
23 23
24 24 include ../../../../Makefile.lib
25 25 include ../../Makefile.lx
26 26
27 27 #
28 28 # Since our name doesn't start with "lib", Makefile.lib incorrectly
29 29 # calculates LIBNAME. Therefore, we set it here.
30 30 #
31 31 LIBNAME = lx_vdso
32 32
33 33 MAPFILES = ../common/mapfile-vers
34 34 MAPOPTS = $(MAPFILES:%=-M%)
35 35
36 36 ASOBJS = vdso_subr.o
37 37 COBJS = vdso_main.o
38 38 OBJECTS = $(ASOBJS) $(COBJS) $(COMMPAGE_OBJS)
39 39
40 40 SRCDIR = ../common
41 41
42 42 ASSRCS = $(ASOBJS:%.o=$(ISASRCDIR)/%.s)
43 43 CSRCS = $(COBJS:%.o=$(SRCDIR)/%.c)
44 44 SRCS = $(ASSRCS) $(CSRCS)
45 45
46 46 LIBS = $(DYNLIB)
47 47 DYNFLAGS += $(DYNFLAGS_$(CLASS))
48 48 DYNFLAGS += $(MAPOPTS)
49 49 LDLIBS +=
50 50 ASFLAGS = -P $(ASFLAGS_$(CURTYPE)) -D_ASM
51 51
52 52
53 53 LIBS = $(DYNLIB)
54 54
55 55 CLEANFILES += $(DYNLIB)
56 56 ROOTLIBDIR = $(ROOT)/usr/lib/brand/lx
57 57 ROOTLIBDIR64 = $(ROOT)/usr/lib/brand/lx/$(MACH64)
58 58
59 59 VDSO_TOOL = ../tools/vdso_tool
60 60
61 61 .KEEP_STATE:
62 62
63 63 #
64 64 # While $(VDSO_TOOL) performs most of the transformations required to
65 65 # construct a correct VDSO object, we still make use of $(ELFEDIT). To
66 66 # remove the $(ELFEDIT) requirement would mean shouldering the burden of
67 67 # becoming a link-editor; this dark lore is best left to the linker aliens.
68 68 #
69 69 all: $(LIBS)
70 70 $(ELFEDIT) -e "dyn:value -add VERSYM $$($(ELFEDIT) \
71 71 -e 'shdr:dump .SUNW_versym' $(DYNLIB) | \
72 72 $(AWK) '{ if ($$1 == "sh_addr:") { print $$2 } }')" $(DYNLIB)
73 73 $(VDSO_TOOL) -f $(DYNLIB)
74 74
75 75 lint: $(LINTLIB) lintcheck
76 76
77 77 include ../../../../Makefile.targ
78 78 include $(SRC)/lib/commpage/Makefile.shared.targ
79 79
80 80 pics/%.o: $(ISASRCDIR)/%.s
81 81 $(COMPILE.s) -o $@ $<
82 82 $(POST_PROCESS_O)
83 83
84 84 pics/vdso_main.o := CPPFLAGS += $(COMMPAGE_CPPFLAGS) -I$(SRCDIR)
85 85 pics/vdso_subr.o := ASFLAGS += -I$(SRC)/uts/common/brand/lx -I$(SRCDIR)
|
↓ open down ↓ |
85 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX