Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/rtld/sparcv9/Makefile
+++ new/usr/src/cmd/sgs/rtld/sparcv9/Makefile
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 #
23 23 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
25 25 #
26 26
27 27 # Object lists are organized into primary (most frequently used code) and
28 28 # secondary lists (less frequently used code, ie. a.out support).
29 29
30 30 P_COMOBJS= debugdata.o \
31 31 analyze.o elf.o external.o globals.o \
32 32 malloc.o paths.o setup.o util.o \
33 33 dlfcns.o config_elf.o locale.o tsort.o \
34 34 remove.o move.o tls.o cap.o
35 35
36 36 S_COMOBJS= debug.o audit.o object.o
37 37
38 38 G_MACHOBJS= doreloc.o
39 39
40 40 P_MACHOBJS= sparc_elf.o _setup.o
41 41
42 42 CP_MACHOBJS= common_sparc.o
43 43
44 44 S_MACHOBJS=
↓ open down ↓ |
44 lines elided |
↑ open up ↑ |
45 45
46 46 P_ASOBJS= boot.o boot_elf.o caller.o
47 47
48 48 S_ASOBJS=
49 49
50 50 CRTSRCS= ../../../../lib/crt/sparc
51 51 CRTI= pics/crti.o
52 52 CRTN= pics/crtn.o
53 53 CRTS= $(CRTI) $(CRTN)
54 54
55 -CHKSRCS= $(SRCBASE)/uts/common/krtld/reloc.h
55 +CHKSRCS= $(SRC)/uts/common/krtld/reloc.h
56 56
57 57 BASEPLAT = sparc
58 58
59 59 include $(SRC)/Makefile.master
60 60
61 61 # We build sparc objects with cc by default
62 62 MAPFILE-ORDER = ../common/mapfile-order-devpro
63 63 $(__GNUC64)MAPFILE-ORDER = ../common/mapfile-order-gcc
64 64
65 65 include $(SRC)/cmd/sgs/rtld/Makefile.com
66 66 include $(SRC)/lib/Makefile.lib.64
67 67
68 68 # Add any machine specific flags.
69 69
70 70 CPPFLAGS += -I../../../../uts/sparc/krtld
71 71 CFLAGS += -xregs=no%appl
72 72 ASFLAGS += -s $(AS_PICFLAGS) -D__sparcv9 -D_ELF64 $(sparcv9_XARCH)
73 73 ADBGENFLAGS += -mlp64
74 74 ADBGENCFLAGS += -erroff=%all
75 75 ADBSUB= $(ADBSUB64)
76 76 CPPFLAGS += -D_ELF64
77 77 SONAME= /lib/sparcv9/ld.so.1
78 78
79 79 SGSMSGTARG += $(SGSMSGSPARC) $(SGSMSGSPARC64) $(SGSMSG64)
80 80
81 81 LDLIB = -L ../../libld/$(MACH64)
82 82 RTLDLIB = -L ../../librtld/$(MACH64)
83 83
84 84 CPICLIB = $(CPICLIB64)
85 85 LDDBGLIBDIR = $(LDDBGLIBDIR64)
86 86 CONVLIBDIR = $(CONVLIBDIR64)
87 87
88 88
89 89 .KEEP_STATE:
90 90
91 91 all: $(RTLD)
92 92
93 93 install: all $(ROOTDYNLIB64)
94 94
95 95 adbmacros: adb .WAIT $(ADBSCRIPTS)
96 96
97 97 adbinstall: adbmacros .WAIT $(ROOTADB64)
98 98
99 99 pics/%.o: ../sparc/%.c
100 100 $(COMPILE.c) -o $@ $<
101 101 $(POST_PROCESS_O)
102 102
103 103 include $(SRC)/cmd/sgs/rtld/Makefile.targ
104 104 include ../../Makefile.sub.64
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX