1 # Copyright (C) 1995-2004, 2005, 2006 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, write to the Free
16 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 # Makefile for elf subdirectory of GNU C Library.
23 headers
= elf.h bits
/elfclass.h link.h bits
/link.h
24 routines
= $(dl-routines
) dl-support dl-iteratephdr \
25 dl-addr enbl-secure dl-profstub \
26 dl-origin dl-libc dl-sym dl-tsd
28 # The core dynamic linking functions are in libc for the static and
30 dl-routines
= $(addprefix dl-
,load cache lookup object reloc deps \
31 runtime error init fini debug misc \
32 version profile conflict tls
origin \
33 execstack caller open close trampoline
)
34 all-dl-routines
= $(dl-routines
) $(sysdep-dl-routines
)
35 # But they are absent from the shared libc, because that code is in ld.so.
36 elide-routines.os
= $(all-dl-routines
) dl-support enbl-secure dl-origin
37 shared-only-routines
+= dl-caller
39 # ld.so uses those routines, plus some special stuff for being the program
40 # interpreter and operating independent of libc.
41 rtld-routines
:= rtld
$(dl-routines
) dl-sysdep dl-environ dl-minimal
42 all-rtld-routines
= $(rtld-routines
) $(sysdep-rtld-routines
)
44 distribute
:= rtld-Rules \
45 $(rtld-routines
:=.c
) dynamic-link.h do-rel.h dl-machine.h \
46 dl-cache.h dl-hash.h soinit.c sofini.c ldd.bash.in \
47 genrtldtbl.awk atomicity.h dl-procinfo.h ldsodefs.h \
48 dl-librecon.h interp.c sln.c dl-dst.h hp-timing.h \
49 do-lookup.h dl-lookupcfg.h sprof.c gen-trusted-dirs.awk \
50 testobj1.c testobj2.c testobj3.c testobj4.c testobj5.c \
51 testobj6.c testobj1_1.c failobj.c unloadmod.c \
52 ldconfig.h ldconfig.c cache.c readlib.c readelflib.c \
53 chroot_canon.c gccframe.h \
54 dep1.c dep2.c dep3.c dep4.c dl-dtprocnum.h unsecvars.h \
55 vismain.c vismod1.c vismod2.c vismod3.c \
56 constload2.c constload3.c filtmod1.c filtmod2.c \
57 nodlopenmod.c nodelete.c nodelmod1.c nodelmod2.c \
58 nodelmod3.c nodelmod4.c nodlopen.c dl-osinfo.h \
59 reldepmod1.c reldepmod2.c reldepmod3.c reldepmod4.c \
60 reldepmod5.c reldepmod6.c \
61 reldep4mod1.c reldep4mod2.c reldep4mod3.c reldep4mod4.c \
62 nextmod1.c nextmod2.c pathoptobj.c tst-pathopt.sh \
63 neededobj1.c neededobj2.c neededobj3.c neededobj4.c \
64 neededobj5.c neededobj6.c firstobj.c \
65 unload2mod.c unload2dep.c ltglobmod1.c ltglobmod2.c \
66 testobj.h vismod.h globalmod1.c \
67 dblloadmod1.c dblloadmod2.c dblloadmod3.c \
68 reldep6mod4.c reldep6mod3.c reldep6mod2.c reldep6mod1.c \
69 reldep6mod0.c reldep7mod1.c reldep7mod2.c \
70 unwind-dw2.c unwind-dw2-fde.c unwind.h unwind-pe.h \
71 unwind-dw2-fde.h dwarf2.h dl-procinfo.c tls.h dl-tls.h \
72 tst-tlsmod1.c tst-tlsmod2.c tst-tlsmod3.c tst-tlsmod4.c \
73 tst-tlsmod5.c tst-tlsmod6.c tst-tlsmod7.c tst-tlsmod8.c \
74 tst-tlsmod9.c tst-tlsmod10.c tst-tlsmod11.c \
75 tst-tlsmod12.c tst-tls10.h tst-alignmod.c tst-alignmod2.c \
76 circlemod1.c circlemod1a.c circlemod2.c circlemod2a.c \
77 circlemod3.c circlemod3a.c nodlopenmod2.c \
79 reldep8mod1.c reldep8mod2.c reldep8mod3.c \
80 nodel2mod1.c nodel2mod2.c nodel2mod3.c \
81 reldep9.c reldep9mod1.c reldep9mod2.c reldep9mod3.c \
82 tst-array1.exp tst-array2.exp tst-array4.exp \
83 tst-array2dep.c tst-piemod1.c \
84 tst-execstack-mod.c tst-dlmodcount.c \
85 check-textrel.c dl-sysdep.h test-dlopenrpathmod.c \
86 tst-deep1mod1.c tst-deep1mod2.c tst-deep1mod3.c \
87 unload3mod1.c unload3mod2.c unload3mod3.c unload3mod4.c \
88 unload4mod1.c unload4mod2.c unload4mod3.c unload4mod4.c \
89 unload6mod1.c unload6mod2.c unload6mod3.c \
90 tst-auditmod1.c tst-audit.sh \
91 order2mod1.c order2mod2.c order2mod3.c order2mod4.c \
92 tst-stackguard1.c tst-stackguard1-static.c \
93 tst-array5.c tst-array5-static.c tst-array5dep.c \
96 CFLAGS-dl-runtime.c
= -fexceptions
-fasynchronous-unwind-tables
97 CFLAGS-dl-lookup.c
= -fexceptions
-fasynchronous-unwind-tables
98 CFLAGS-dl-iterate-phdr.c
= $(uses-callbacks
)
100 include ..
/Makeconfig
102 ifeq ($(unwind-find-fde
),yes
)
103 routines
+= unwind-dw2-fde-glibc
104 shared-only-routines
+= unwind-dw2-fde-glibc
107 before-compile
= $(objpfx
)trusted-dirs.h
108 generated
:= trusted-dirs.h trusted-dirs.st for-renamed
/renamed.so
109 generated-dirs
:= for-renamed
111 ifeq ($(versioning
),yes
)
112 ld-map
= $(common-objpfx
)ld.map
115 ifeq (yes
,$(build-shared
))
116 extra-objs
= $(all-rtld-routines
:%=%.os
) soinit.os sofini.os interp.os
117 generated
+= librtld.os dl-allobjs.os
ld.so ldd
118 install-others
= $(inst_slibdir
)/$(rtld-installed-name
)
119 install-bin-script
= ldd
125 install-rootsbin
= sln
127 ifeq (yes
,$(use-ldconfig
))
128 ifeq (yes
,$(build-shared
))
129 others-static
+= ldconfig
131 install-rootsbin
+= ldconfig
133 ldconfig-modules
:= cache readlib xmalloc xstrdup chroot_canon
134 extra-objs
+= $(ldconfig-modules
:=.o
)
136 # To find xmalloc.c and xstrdup.c
137 vpath
%.c ..
/locale
/programs
142 tests
= tst-tls1 tst-tls2 tst-tls9
143 ifeq (yes
,$(have-initfini-array
))
144 tests
+= tst-array1 tst-array2 tst-array3 tst-array4 tst-array5
146 ifeq (yes
,$(build-static
))
147 tests-static
= tst-tls1-static tst-tls2-static tst-stackguard1-static
148 ifeq (yesyesyes
,$(build-static
)$(build-shared
)$(elf
))
149 tests-static
+= tst-tls9-static
150 tst-tls9-static-ENV
= \
151 LD_LIBRARY_PATH
=$(objpfx
):$(common-objpfx
):$(common-objpfx
)dlfcn
153 ifeq (yes
,$(have-initfini-array
))
154 tests-static
+= tst-array1-static tst-array5-static
156 tests
+= $(tests-static
)
158 ifeq (yes
,$(build-shared
))
159 tests
+= loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
160 constload1 order
$(tests-vis-
$(have-protected
)) noload
filter unload \
161 reldep reldep2 reldep3 reldep4
$(tests-nodelete-
$(have-z-nodelete
)) \
162 $(tests-nodlopen-
$(have-z-nodlopen
)) neededtest neededtest2 \
163 neededtest3 neededtest4 unload2 lateglobal initfirst global \
164 restest2 next dblload dblunload reldep5 reldep6 reldep7 reldep8 \
165 circleload1 tst-tls3 tst-tls4 tst-tls5 tst-tls6 tst-tls7 tst-tls8 \
166 tst-tls10 tst-tls11 tst-tls12 tst-tls13 tst-tls14 tst-tls15 \
168 tst-align tst-align2
$(tests-execstack-
$(have-z-execstack
)) \
169 tst-dlmodcount tst-dlopenrpath tst-deep1 \
170 tst-dlmopen1 tst-dlmopen2 tst-dlmopen3 \
171 unload3 unload4 unload5 unload6 tst-audit1 tst-global1 order2 \
174 test-srcs
= tst-pathopt
175 tests-vis-yes
= vismain
176 tests-nodelete-yes
= nodelete nodelete2
177 tests-nodlopen-yes
= nodlopen nodlopen2
178 tests-execstack-yes
= tst-execstack tst-execstack-needed tst-execstack-prog
180 ifeq (yesyes
,$(have-fpie
)$(build-shared
))
181 tests
: $(objpfx
)tst-pie1.out
183 modules-names
= testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
184 testobj1_1 failobj constload2 constload3 unloadmod \
185 dep1 dep2 dep3 dep4
$(modules-vis-
$(have-protected
)) \
186 $(modules-nodelete-
$(have-z-nodelete
)) \
187 $(modules-nodlopen-
$(have-z-nodlopen
)) filtmod1 filtmod2 \
188 reldepmod1 reldepmod2 reldepmod3 reldepmod4 nextmod1 nextmod2 \
189 reldep4mod1 reldep4mod2 reldep4mod3 reldep4mod4 \
190 neededobj1 neededobj2 neededobj3 neededobj4 \
191 neededobj5 neededobj6 firstobj globalmod1 \
192 unload2mod unload2dep ltglobmod1 ltglobmod2 pathoptobj \
193 dblloadmod1 dblloadmod2 dblloadmod3 reldepmod5 reldepmod6 \
194 reldep6mod0 reldep6mod1 reldep6mod2 reldep6mod3 reldep6mod4 \
195 reldep7mod1 reldep7mod2 \
196 tst-tlsmod1 tst-tlsmod2 tst-tlsmod3 tst-tlsmod4 \
197 tst-tlsmod5 tst-tlsmod6 tst-tlsmod7 tst-tlsmod8 \
198 tst-tlsmod9 tst-tlsmod10 tst-tlsmod11 tst-tlsmod12 \
199 tst-tlsmod13 tst-tlsmod13a tst-tlsmod14a tst-tlsmod14b \
200 tst-tlsmod15a tst-tlsmod15b \
201 circlemod1 circlemod1a circlemod2 circlemod2a \
202 circlemod3 circlemod3a \
203 reldep8mod1 reldep8mod2 reldep8mod3 \
204 reldep9mod1 reldep9mod2 reldep9mod3 \
205 tst-alignmod tst-alignmod2 \
206 $(modules-execstack-
$(have-z-execstack
)) \
207 tst-dlopenrpathmod tst-deep1mod1 tst-deep1mod2 tst-deep1mod3 \
208 tst-dlmopen1mod tst-auditmod1 \
209 unload3mod1 unload3mod2 unload3mod3 unload3mod4 \
210 unload4mod1 unload4mod2 unload4mod3 unload4mod4 \
211 unload6mod1 unload6mod2 unload6mod3 \
212 order2mod1 order2mod2 order2mod3 order2mod4
213 ifeq (yes
,$(have-initfini-array
))
214 modules-names
+= tst-array2dep tst-array5dep
216 ifeq (yesyes
,$(have-fpie
)$(build-shared
))
217 modules-names
+= tst-piemod1
219 modules-vis-yes
= vismod1 vismod2 vismod3
220 modules-nodelete-yes
= nodelmod1 nodelmod2 nodelmod3 nodelmod4 \
221 nodel2mod1 nodel2mod2 nodel2mod3
222 modules-nodlopen-yes
= nodlopenmod nodlopenmod2
223 modules-execstack-yes
= tst-execstack-mod
224 extra-objs
+= $(addsuffix .os
,$(strip $(modules-names
)))
225 # We need this variable to be sure the test modules get the right CPPFLAGS.
226 test-extras
+= $(modules-names
)
228 # filtmod1.so has a special rule
229 modules-names-nobuild
:= filtmod1
234 check-abi
: check-abi-ld
235 update-abi
: update-abi-ld
237 ifeq (yes
,$(build-shared
))
238 # Make sure these things are built in the `make lib' pass so they can be used
239 # to run programs during the `make others' pass.
240 lib-noranlib
: $(objpfx
)$(rtld-installed-name
) \
241 $(addprefix $(objpfx
),$(extra-objs
))
244 # Command to link into a larger single relocatable object.
245 reloc-link
= $(LINK.o
) -nostdlib
-nostartfiles
-r
247 $(objpfx
)dl-allobjs.os
: $(all-rtld-routines
:%=$(objpfx
)%.os
)
248 $(reloc-link
) -o
$@
$^
250 # Link together the dynamic linker into a single relocatable object.
251 # First we do a link against libc_pic.a just to get a link map,
252 # and discard the object produced by that link. From the link map
253 # we can glean all the libc modules that need to go into the dynamic
254 # linker. Then we do a recursive make that goes into all the subdirs
255 # those modules come from and builds special rtld-foo.os versions that
256 # are compiled with special flags, and puts these modules into rtld-libc.a
257 # for us. Then we do the real link using rtld-libc.a instead of libc_pic.a.
259 $(objpfx
)librtld.map
: $(objpfx
)dl-allobjs.os
$(common-objpfx
)libc_pic.a
261 $(reloc-link
) -o
$@.o
'-Wl,-(' $^
-lgcc
'-Wl,-)' -Wl
,-Map
,$@T
265 $(objpfx
)librtld.mk
: $(objpfx
)librtld.map Makefile
267 sed
-n
's@^$(common-objpfx)\([^(]*\)(\([^)]*\.os\)) *.*$$@\1 \2@p' \
269 while read lib file
; do \
272 LC_ALL
=C fgrep
-l
/$$file \
273 $(common-objpfx
)stamp.os
$(common-objpfx
)*/stamp.os | \
275 sed
's@^$(common-objpfx)\([^/]*\)/stamp\.os$$@rtld-\1'" +=$$file@"\
278 echo rtld-
$${lib
%%/*} += $$file ;; \
279 *) echo
"Wasn't expecting $$lib($$file)" >&2; exit
1 ;; \
282 echo rtld-subdirs
= `LC_ALL=C sed 's/^rtld-\([^ ]*\).*$$/\1/' $@T \
283 | LC_ALL=C sort -u` >> $@T
286 $(objpfx
)rtld-libc.a
: $(objpfx
)librtld.mk FORCE
287 $(MAKE
) -f
$< -f rtld-Rules
289 $(objpfx
)librtld.os
: $(objpfx
)dl-allobjs.os
$(objpfx
)rtld-libc.a
290 $(LINK.o
) -nostdlib
-nostartfiles
-r
-o
$@
'-Wl,-(' $^
-lgcc
'-Wl,-)' \
293 generated
+= librtld.map librtld.mk rtld-libc.a librtld.os.map
295 z-now-yes
= -Wl
,-z
,now
297 $(objpfx
)ld.so
: $(objpfx
)librtld.os
$(ld-map
)
299 $(LINK.o
) -nostdlib
-nostartfiles
-shared
$(z-now-
$(bind-now
)) \
300 $(LDFLAGS-rtld
) -Wl
,-z
,defs
-Wl
,--verbose
2>&1 | \
302 sed
-e
'/^=========/,/^=========/!d;/^=========/d' \
303 -e
's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
305 $(LINK.o
) -nostdlib
-nostartfiles
-shared
-o
$@ \
306 $(LDFLAGS-rtld
) -Wl
,-z
,defs
$(z-now-
$(bind-now
)) \
307 $(filter-out $(map-file
),$^
) $(load-map-file
) \
308 -Wl
,-soname
=$(rtld-installed-name
) -T
$@.lds
311 # interp.c exists just to get this string into the libraries.
312 CFLAGS-interp.c
= -D
'RUNTIME_LINKER="$(slibdir)/$(rtld-installed-name)"' \
314 $(objpfx
)interp.os
: $(common-objpfx
)config.make
316 ifneq (ld.so
,$(rtld-installed-name
))
317 # Make sure ld.so.1 exists in the build directory so we can link
319 $(objpfx
)$(rtld-installed-name
): $(objpfx
)ld.so
322 generated
+= $(rtld-installed-name
)
325 # Build a file mentioning all trustworthy directories to look for shared
326 # libraries when using LD_LIBRARY_PATH in a setuid program. The user can
327 # add directories to the list by defining $(user-defined-trusted-dirs)
328 # before starting make.
329 $(objpfx
)trusted-dirs.h
: $(objpfx
)trusted-dirs.st
; @
:
330 $(objpfx
)trusted-dirs.st
: Makefile
$(..
)Makeconfig
331 $(make-target-directory
)
332 echo
"$(subst :, ,$(default-rpath) $(user-defined-trusted-dirs))" \
333 |
$(AWK
) -f gen-trusted-dirs.awk
> ${@
:st
=T
};
334 echo
'#define DL_DST_LIB "$(notdir $(slibdir))"' >> ${@
:st
=T
}
335 $(move-if-change
) ${@
:st
=T
} ${@
:st
=h
}
337 CPPFLAGS-dl-load.c
= -I
$(objpfx
).
-I
$(csu-objpfx
).
339 ifeq (yes
,$(build-shared
))
340 $(inst_slibdir
)/$(rtld-version-installed-name
): $(objpfx
)ld.so
$(+force)
341 $(make-target-directory
)
342 $(do-install-program
)
344 $(inst_slibdir
)/$(rtld-installed-name
): \
345 $(inst_slibdir
)/$(rtld-version-installed-name
) \
346 $(inst_slibdir
)/libc-
$(version
).so
349 # Special target called by parent to install just the dynamic linker.
351 ldso_install
: $(inst_slibdir
)/$(rtld-installed-name
)
355 common-ldd-rewrite
= -e
's%@RTLD@%$(slibdir)/$(rtld-installed-name)%g' \
356 -e
's%@VERSION@%$(version)%g'
357 sh-ldd-rewrite
= $(common-ldd-rewrite
) -e
's%@BASH@%/bin/sh%g;s/\$$"/"/g'
358 bash-ldd-rewrite
= $(common-ldd-rewrite
) -e
's%@BASH@%$(BASH)%g' \
359 -e
's%@TEXTDOMAINDIR@%$(msgcatdir)%g'
361 ifneq ($(have-bash2
),yes
)
367 ifeq ($(ldd-rewrite-script
),no
)
369 LC_ALL
=C sed
$($(ldd-shell
)-ldd-rewrite
) < $< > $@.new
373 LC_ALL
=C sed
$($(ldd-shell
)-ldd-rewrite
) < $< | LC_ALL
=C sed
-f
$(ldd-rewrite-script
) > $@.new
377 $(objpfx
)ldd
: ldd.bash.in
$(common-objpfx
)soversions.mk \
378 $(common-objpfx
)config.make
383 $(objpfx
)sprof
: $(libdl
)
385 $(objpfx
)ldconfig
: $(ldconfig-modules
:%=$(objpfx
)%.o
)
386 SYSCONF-FLAGS
:= -D
'SYSCONFDIR="$(sysconfdir)"'
387 CFLAGS-ldconfig.c
= $(SYSCONF-FLAGS
) -D
'LIBDIR="$(libdir)"' \
388 -D
'SLIBDIR="$(slibdir)"' -DIS_IN_ldconfig
=1
389 CFLAGS-dl-cache.c
= $(SYSCONF-FLAGS
)
390 CFLAGS-cache.c
= $(SYSCONF-FLAGS
)
392 CPPFLAGS-.os
+= $(if
$(filter $(@F
),$(patsubst %,%.os
,$(all-rtld-routines
))),-DNOT_IN_libc
=1 -DIS_IN_rtld
=1)
394 test-modules
= $(addprefix $(objpfx
),$(addsuffix .so
,$(strip $(modules-names
))))
395 generated
+= $(addsuffix .so
,$(strip $(modules-names
)))
397 ifeq (yes
,$(build-shared
))
398 ifeq ($(cross-compiling
),no
)
399 tests
: $(objpfx
)tst-pathopt.out
403 $(objpfx
)testobj1.so
: $(libdl
)
404 $(objpfx
)testobj1_1.so
: $(objpfx
)testobj1.so
$(libdl
)
405 $(objpfx
)testobj2.so
: $(objpfx
)testobj1.so
$(libdl
)
406 $(objpfx
)testobj3.so
: $(libdl
)
407 $(objpfx
)testobj4.so
: $(libdl
)
408 $(objpfx
)testobj5.so
: $(libdl
)
409 $(objpfx
)testobj6.so
: $(objpfx
)testobj1.so
$(objpfx
)testobj2.so
$(libdl
)
410 $(objpfx
)failobj.so
: $(objpfx
)testobj6.so
411 $(objpfx
)dep1.so
: $(objpfx
)dep2.so
$(objpfx
)dep4.so
412 $(objpfx
)dep2.so
: $(objpfx
)dep3.so
$(objpfx
)dep4.so
413 $(objpfx
)dep4.so
: $(objpfx
)dep3.so
414 $(objpfx
)nodelmod3.so
: $(objpfx
)nodelmod4.so
415 $(objpfx
)nextmod1.so
: $(libdl
)
416 $(objpfx
)neededobj1.so
: $(libdl
)
417 $(objpfx
)neededobj2.so
: $(objpfx
)neededobj1.so
$(libdl
)
418 $(objpfx
)neededobj3.so
: $(objpfx
)neededobj1.so
$(objpfx
)neededobj2.so
$(libdl
)
419 $(objpfx
)neededobj4.so
: $(objpfx
)neededobj1.so
$(objpfx
)neededobj2.so \
420 $(objpfx
)neededobj3.so
$(libdl
)
421 $(objpfx
)neededobj6.so
: $(objpfx
)neededobj5.so
422 $(objpfx
)unload2mod.so
: $(objpfx
)unload2dep.so
423 $(objpfx
)ltglobmod2.so
: $(libdl
)
424 $(objpfx
)firstobj.so
: $(shared-thread-library
)
425 $(objpfx
)globalmod1.so
: $(libdl
)
426 $(objpfx
)reldep4mod1.so
: $(objpfx
)reldep4mod3.so
427 $(objpfx
)reldep4mod2.so
: $(objpfx
)reldep4mod4.so
428 $(objpfx
)dblloadmod1.so
: $(objpfx
)dblloadmod3.so
429 $(objpfx
)dblloadmod2.so
: $(objpfx
)dblloadmod3.so
430 $(objpfx
)reldepmod5.so
: $(objpfx
)reldepmod2.so
431 $(objpfx
)reldepmod6.so
: $(objpfx
)reldepmod2.so
432 $(objpfx
)reldep6mod1.so
: $(objpfx
)reldep6mod0.so
433 $(objpfx
)reldep6mod2.so
: $(objpfx
)reldep6mod1.so
434 $(objpfx
)reldep6mod3.so
: $(objpfx
)reldep6mod2.so
435 $(objpfx
)reldep6mod4.so
: $(objpfx
)reldep6mod1.so
436 $(objpfx
)tst-tlsmod3.so
: $(objpfx
)tst-tlsmod2.so
437 $(objpfx
)tst-tlsmod8.so
: $(objpfx
)tst-tlsmod7.so
438 $(objpfx
)tst-tlsmod10.so
: $(objpfx
)tst-tlsmod9.so
439 $(objpfx
)tst-tlsmod12.so
: $(objpfx
)tst-tlsmod11.so
440 $(objpfx
)tst-tlsmod13a.so
: $(objpfx
)tst-tlsmod13.so
441 # For tst-tls9-static, make sure the modules it dlopens have libc.so in DT_NEEDED
442 $(objpfx
)tst-tlsmod5.so
: $(common-objpfx
)libc.so
443 $(objpfx
)tst-tlsmod6.so
: $(common-objpfx
)libc.so
444 $(objpfx
)reldep8mod3.so
: $(objpfx
)reldep8mod1.so
$(objpfx
)reldep8mod2.so
445 $(objpfx
)nodel2mod3.so
: $(objpfx
)nodel2mod1.so
$(objpfx
)nodel2mod2.so
446 $(objpfx
)reldep9mod2.so
: $(objpfx
)reldep9mod1.so
447 $(objpfx
)reldep9mod3.so
: $(objpfx
)reldep9mod1.so
$(objpfx
)reldep9mod2.so
448 $(objpfx
)unload3mod1.so
: $(objpfx
)unload3mod3.so
449 $(objpfx
)unload3mod2.so
: $(objpfx
)unload3mod3.so
450 $(objpfx
)unload3mod3.so
: $(objpfx
)unload3mod4.so
451 $(objpfx
)unload4mod1.so
: $(objpfx
)unload4mod2.so
$(objpfx
)unload4mod3.so
452 $(objpfx
)unload4mod2.so
: $(objpfx
)unload4mod4.so
$(objpfx
)unload4mod3.so
453 $(objpfx
)unload6mod1.so
: $(libdl
)
454 $(objpfx
)unload6mod2.so
: $(libdl
)
455 $(objpfx
)unload6mod3.so
: $(libdl
)
457 LDFLAGS-tst-tlsmod5.so
= -nostdlib
458 LDFLAGS-tst-tlsmod6.so
= -nostdlib
460 testobj1.so-no-z-defs
= yes
461 testobj3.so-no-z-defs
= yes
462 testobj4.so-no-z-defs
= yes
463 testobj5.so-no-z-defs
= yes
464 testobj6.so-no-z-defs
= yes
465 failobj.so-no-z-defs
= yes
466 constload2.so-no-z-defs
= yes
467 constload3.so-no-z-defs
= yes
468 nodelmod1.so-no-z-defs
= yes
469 nodelmod2.so-no-z-defs
= yes
470 nodelmod4.so-no-z-defs
= yes
471 nodel2mod2.so-no-z-defs
= yes
472 reldepmod2.so-no-z-defs
= yes
473 reldepmod3.so-no-z-defs
= yes
474 reldepmod4.so-no-z-defs
= yes
475 reldep4mod4.so-no-z-defs
= yes
476 reldep4mod2.so-no-z-defs
= yes
477 ltglobmod2.so-no-z-defs
= yes
478 dblloadmod3.so-no-z-defs
= yes
479 tst-tlsmod1.so-no-z-defs
= yes
480 tst-tlsmod2.so-no-z-defs
= yes
481 tst-tlsmod3.so-no-z-defs
= yes
482 tst-tlsmod4.so-no-z-defs
= yes
483 tst-tlsmod7.so-no-z-defs
= yes
484 tst-tlsmod8.so-no-z-defs
= yes
485 tst-tlsmod9.so-no-z-defs
= yes
486 tst-tlsmod10.so-no-z-defs
= yes
487 tst-tlsmod12.so-no-z-defs
= yes
488 tst-tlsmod14a.so-no-z-defs
= yes
489 tst-tlsmod14b.so-no-z-defs
= yes
490 tst-tlsmod15a.so-no-z-defs
= yes
491 circlemod2.so-no-z-defs
= yes
492 circlemod3.so-no-z-defs
= yes
493 circlemod3a.so-no-z-defs
= yes
494 reldep8mod2.so-no-z-defs
= yes
495 reldep9mod1.so-no-z-defs
= yes
496 unload3mod4.so-no-z-defs
= yes
497 unload4mod1.so-no-z-defs
= yes
499 ifeq ($(build-shared
),yes
)
500 # Build all the modules even when not actually running test programs.
501 tests
: $(test-modules
)
504 $(objpfx
)loadtest
: $(libdl
)
505 LDFLAGS-loadtest
= -rdynamic
507 $(objpfx
)loadtest.out
: $(test-modules
)
509 $(objpfx
)neededtest
: $(libdl
)
510 $(objpfx
)neededtest.out
: $(objpfx
)neededobj1.so
$(objpfx
)neededobj2.so \
511 $(objpfx
)neededobj3.so
513 $(objpfx
)neededtest2
: $(libdl
)
514 $(objpfx
)neededtest2.out
: $(objpfx
)neededobj1.so
$(objpfx
)neededobj2.so \
515 $(objpfx
)neededobj3.so
517 $(objpfx
)neededtest3
: $(libdl
)
518 $(objpfx
)neededtest3.out
: $(objpfx
)neededobj1.so
$(objpfx
)neededobj2.so \
519 $(objpfx
)neededobj3.so
$(objpfx
)neededobj4.so
521 neededtest4-ENV
= LC_ALL
=C LANGUAGE
=C
522 $(objpfx
)neededtest4
: $(libdl
) $(objpfx
)neededobj1.so
523 $(objpfx
)neededtest4.out
: $(objpfx
)neededobj5.so
$(objpfx
)neededobj6.so
525 $(objpfx
)restest1
: $(objpfx
)testobj1.so
$(objpfx
)testobj1_1.so
$(libdl
)
526 LDFLAGS-restest1
= -rdynamic
528 $(objpfx
)restest2
: $(libdl
)
529 LDFLAGS-restest2
= -rdynamic
531 $(objpfx
)restest1.out
: $(test-modules
)
533 preloadtest-preloads
= testobj1 testobj2 testobj3 testobj4 testobj5
534 $(objpfx
)preloadtest
: $(objpfx
)testobj6.so
535 LDFLAGS-preloadtest
= -rdynamic
536 $(objpfx
)preloadtest.out
: $(preloadtest-preloads
:%=$(objpfx
)%.so
)
538 LD_PRELOAD
=$(subst $(empty
) ,:,$(strip $(preloadtest-preloads
:=.so
)))
540 $(objpfx
)loadfail
: $(libdl
)
541 LDFLAGS-loadfail
= -rdynamic
543 $(objpfx
)loadfail.out
: $(objpfx
)failobj.so
545 $(objpfx
)multiload
: $(libdl
)
546 LDFLAGS-multiload
= -rdynamic
547 CFLAGS-multiload.c
= -DOBJDIR
=\"$(elf-objpfx
)\"
549 $(objpfx
)multiload.out
: $(objpfx
)testobj1.so
551 $(objpfx
)origtest
: $(libdl
)
552 LDFLAGS-origtest
= -rdynamic
553 $(objpfx
)origtest.out
: $(objpfx
)testobj1.so
555 ifeq ($(have-thread-library
),yes
)
556 $(objpfx
)resolvfail
: $(libdl
) $(shared-thread-library
)
558 $(objpfx
)resolvfail
: $(libdl
)
561 $(objpfx
)constload1
: $(libdl
)
562 $(objpfx
)constload1.out
: $(objpfx
)constload2.so
$(objpfx
)constload3.so
564 $(objpfx
)circleload1
: $(libdl
)
565 $(objpfx
)circleload1.out
: $(objpfx
)circlemod1.so \
566 $(objpfx
)circlemod1a.so
568 $(objpfx
)circlemod1.so
: $(objpfx
)circlemod2.so
569 $(objpfx
)circlemod2.so
: $(objpfx
)circlemod3.so
570 $(objpfx
)circlemod1a.so
: $(objpfx
)circlemod2a.so
571 $(objpfx
)circlemod2a.so
: $(objpfx
)circlemod3a.so
573 $(objpfx
)order
: $(addprefix $(objpfx
),dep4.so dep3.so dep2.so dep1.so
)
575 $(objpfx
)order.out
: $(objpfx
)order
576 $(elf-objpfx
)$(rtld-installed-name
) \
577 --library-path
$(rpath-link
)$(patsubst %,:%,$(sysdep-library-path
)) \
579 (echo
"0123456789" | cmp
$@
-) > /dev
/null
581 $(objpfx
)vismain
: $(addprefix $(objpfx
),vismod1.so vismod2.so
)
582 $(objpfx
)vismain.out
: $(addprefix $(objpfx
),vismod3.so
)
583 vismain-ENV
= LD_PRELOAD
=$(addprefix $(objpfx
),vismod3.so
)
585 $(objpfx
)noload
: $(objpfx
)testobj1.so
586 LDFLAGS-noload
= -rdynamic
587 $(objpfx
)noload.out
: $(objpfx
)testobj5.so
589 LDFLAGS-nodelete
= -rdynamic
590 LDFLAGS-nodelmod1.so
= -Wl
,--enable-new-dtags
,-z
,nodelete
591 LDFLAGS-nodelmod4.so
= -Wl
,--enable-new-dtags
,-z
,nodelete
592 $(objpfx
)nodelete
: $(libdl
)
593 $(objpfx
)nodelete.out
: $(objpfx
)nodelmod1.so
$(objpfx
)nodelmod2.so \
594 $(objpfx
)nodelmod3.so
596 LDFLAGS-nodlopenmod.so
= -Wl
,--enable-new-dtags
,-z
,nodlopen
597 $(objpfx
)nodlopen
: $(libdl
)
598 $(objpfx
)nodlopen.out
: $(objpfx
)nodlopenmod.so
600 $(objpfx
)nodlopenmod2.so
: $(objpfx
)nodlopenmod.so
601 $(objpfx
)nodlopen2
: $(libdl
)
602 $(objpfx
)nodlopen2.out
: $(objpfx
)nodlopenmod2.so
604 $(objpfx
)filtmod1.so
: $(objpfx
)filtmod1.os
$(objpfx
)filtmod2.so
605 $(LINK.o
) -shared
-o
$@
-B
$(csu-objpfx
) $(LDFLAGS.so
) \
606 -L
$(subst :, -L
,$(rpath-link
)) \
607 -Wl
,-rpath-link
=$(rpath-link
) \
608 $< -Wl
,-F
,$(objpfx
)filtmod2.so
609 $(objpfx
)filter: $(objpfx
)filtmod1.so
611 $(objpfx
)unload
: $(libdl
)
612 $(objpfx
)unload.out
: $(objpfx
)unloadmod.so
614 $(objpfx
)reldep
: $(libdl
)
615 $(objpfx
)reldep.out
: $(objpfx
)reldepmod1.so
$(objpfx
)reldepmod2.so
617 $(objpfx
)reldep2
: $(libdl
)
618 $(objpfx
)reldep2.out
: $(objpfx
)reldepmod1.so
$(objpfx
)reldepmod3.so
620 $(objpfx
)reldep3
: $(libdl
)
621 $(objpfx
)reldep3.out
: $(objpfx
)reldepmod1.so
$(objpfx
)reldepmod4.so
623 $(objpfx
)reldep4
: $(libdl
)
624 $(objpfx
)reldep4.out
: $(objpfx
)reldep4mod1.so
$(objpfx
)reldep4mod2.so
626 $(objpfx
)next
: $(objpfx
)nextmod1.so
$(objpfx
)nextmod2.so
$(libdl
)
628 $(objpfx
)unload2
: $(libdl
)
629 $(objpfx
)unload2.out
: $(objpfx
)unload2mod.so
$(objpfx
)unload2dep.so
631 $(objpfx
)lateglobal
: $(libdl
)
632 $(objpfx
)lateglobal.out
: $(objpfx
)ltglobmod1.so
$(objpfx
)ltglobmod2.so
634 $(objpfx
)tst-pathopt
: $(libdl
)
635 $(objpfx
)tst-pathopt.out
: tst-pathopt.sh
$(objpfx
)tst-pathopt \
636 $(objpfx
)pathoptobj.so
637 $(SHELL
) -e
$< $(common-objpfx
)
639 $(objpfx
)initfirst
: $(libdl
)
640 $(objpfx
)initfirst.out
: $(objpfx
)firstobj.so
642 $(objpfx
)global
: $(objpfx
)globalmod1.so
643 $(objpfx
)global.out
: $(objpfx
)reldepmod1.so
645 $(objpfx
)dblload
: $(libdl
)
646 $(objpfx
)dblload.out
: $(objpfx
)dblloadmod1.so
$(objpfx
)dblloadmod2.so
648 $(objpfx
)dblunload
: $(libdl
)
649 $(objpfx
)dblunload.out
: $(objpfx
)dblloadmod1.so
$(objpfx
)dblloadmod2.so
651 $(objpfx
)reldep5
: $(libdl
)
652 $(objpfx
)reldep5.out
: $(objpfx
)reldepmod5.so
$(objpfx
)reldepmod6.so
654 $(objpfx
)reldep6
: $(libdl
)
655 $(objpfx
)reldep6.out
: $(objpfx
)reldep6mod3.so
$(objpfx
)reldep6mod4.so
657 $(objpfx
)reldep7
: $(libdl
)
658 $(objpfx
)reldep7.out
: $(objpfx
)reldep7mod1.so
$(objpfx
)reldep7mod2.so
660 $(objpfx
)reldep8
: $(libdl
)
661 $(objpfx
)reldep8.out
: $(objpfx
)reldep8mod3.so
663 LDFLAGS-nodel2mod2.so
= -Wl
,--enable-new-dtags
,-z
,nodelete
664 $(objpfx
)nodelete2
: $(libdl
)
665 $(objpfx
)nodelete2.out
: $(objpfx
)nodel2mod3.so
667 $(objpfx
)reldep9
: $(libdl
)
668 $(objpfx
)reldep9.out
: $(objpfx
)reldep9mod3.so
670 $(objpfx
)tst-tls3
: $(objpfx
)tst-tlsmod1.so
672 $(objpfx
)tst-tls4
: $(libdl
)
673 $(objpfx
)tst-tls4.out
: $(objpfx
)tst-tlsmod2.so
675 $(objpfx
)tst-tls5
: $(libdl
)
676 $(objpfx
)tst-tls5.out
: $(objpfx
)tst-tlsmod2.so
678 $(objpfx
)tst-tls6
: $(libdl
)
679 $(objpfx
)tst-tls6.out
: $(objpfx
)tst-tlsmod2.so
681 $(objpfx
)tst-tls7
: $(libdl
)
682 $(objpfx
)tst-tls7.out
: $(objpfx
)tst-tlsmod3.so
684 $(objpfx
)tst-tls8
: $(libdl
)
685 $(objpfx
)tst-tls8.out
: $(objpfx
)tst-tlsmod3.so
$(objpfx
)tst-tlsmod4.so
687 $(objpfx
)tst-tls9
: $(libdl
)
688 $(objpfx
)tst-tls9.out
: $(objpfx
)tst-tlsmod5.so
$(objpfx
)tst-tlsmod6.so
690 $(objpfx
)tst-tls10
: $(objpfx
)tst-tlsmod8.so
692 $(objpfx
)tst-tls11
: $(objpfx
)tst-tlsmod10.so
694 $(objpfx
)tst-tls12
: $(objpfx
)tst-tlsmod12.so
696 $(objpfx
)tst-tls13
: $(libdl
)
697 $(objpfx
)tst-tls13.out
: $(objpfx
)tst-tlsmod13a.so
699 $(objpfx
)tst-tls14
: $(objpfx
)tst-tlsmod14a.so
$(libdl
)
700 $(objpfx
)tst-tls14.out
: $(objpfx
)tst-tlsmod14b.so
702 $(objpfx
)tst-tls15
: $(libdl
)
703 $(objpfx
)tst-tls15.out
: $(objpfx
)tst-tlsmod15a.so
$(objpfx
)tst-tlsmod15b.so
705 $(objpfx
)tst-tls-dlinfo
: $(libdl
)
706 $(objpfx
)tst-tls-dlinfo.out
: $(objpfx
)tst-tlsmod2.so
710 CFLAGS-tst-align.c
= $(stack-align-test-flags
)
711 CFLAGS-tst-align2.c
= $(stack-align-test-flags
)
712 CFLAGS-tst-alignmod.c
= $(stack-align-test-flags
)
713 CFLAGS-tst-alignmod2.c
= $(stack-align-test-flags
)
714 $(objpfx
)tst-align
: $(libdl
)
715 $(objpfx
)tst-align.out
: $(objpfx
)tst-alignmod.so
716 $(objpfx
)tst-align2
: $(objpfx
)tst-alignmod2.so
718 $(objpfx
)unload3
: $(libdl
)
719 $(objpfx
)unload3.out
: $(objpfx
)unload3mod1.so
$(objpfx
)unload3mod2.so \
720 $(objpfx
)unload3mod3.so
$(objpfx
)unload3mod4.so
722 $(objpfx
)unload4
: $(libdl
)
723 $(objpfx
)unload4.out
: $(objpfx
)unload4mod1.so
$(objpfx
)unload4mod3.so
725 $(objpfx
)unload5
: $(libdl
)
726 $(objpfx
)unload5.out
: $(objpfx
)unload3mod1.so
$(objpfx
)unload3mod2.so \
727 $(objpfx
)unload3mod3.so
$(objpfx
)unload3mod4.so
729 $(objpfx
)unload6
: $(libdl
)
730 $(objpfx
)unload6.out
: $(objpfx
)unload6mod1.so
$(objpfx
)unload6mod2.so \
731 $(objpfx
)unload6mod3.so
734 $(objpfx
)tst-tls9-static
: $(common-objpfx
)dlfcn
/libdl.a
735 $(objpfx
)tst-tls9-static.out
: $(objpfx
)tst-tlsmod5.so
$(objpfx
)tst-tlsmod6.so
738 ifeq ($(have-z-execstack
),yes
)
739 $(objpfx
)tst-execstack
: $(libdl
)
740 $(objpfx
)tst-execstack.out
: $(objpfx
)tst-execstack-mod.so
741 LDFLAGS-tst-execstack
= -Wl
,-z
,noexecstack
742 LDFLAGS-tst-execstack-mod
= -Wl
,-z
,execstack
744 $(objpfx
)tst-execstack-needed
: $(objpfx
)tst-execstack-mod.so
745 LDFLAGS-tst-execstack-needed
= -Wl
,-z
,noexecstack
747 LDFLAGS-tst-execstack-prog
= -Wl
,-z
,execstack
750 $(objpfx
)tst-array1.out
: $(objpfx
)tst-array1
751 $(elf-objpfx
)$(rtld-installed-name
) \
752 --library-path
$(rpath-link
)$(patsubst %,:%,$(sysdep-library-path
)) \
753 $(objpfx
)tst-array1
> $@
754 cmp
$@ tst-array1.exp
> /dev
/null
756 $(objpfx
)tst-array1-static.out
: $(objpfx
)tst-array1-static
757 $(objpfx
)tst-array1-static
> $@
758 cmp
$@ tst-array1.exp
> /dev
/null
760 $(objpfx
)tst-array2
: $(objpfx
)tst-array2dep.so
761 $(objpfx
)tst-array2.out
: $(objpfx
)tst-array2
762 $(elf-objpfx
)$(rtld-installed-name
) \
763 --library-path
$(rpath-link
)$(patsubst %,:%,$(sysdep-library-path
)) \
764 $(objpfx
)tst-array2
> $@
765 cmp
$@ tst-array2.exp
> /dev
/null
767 $(objpfx
)tst-array3.out
: $(objpfx
)tst-array3
768 $(elf-objpfx
)$(rtld-installed-name
) \
769 --library-path
$(rpath-link
)$(patsubst %,:%,$(sysdep-library-path
)) \
770 $(objpfx
)tst-array3
> $@
771 cmp
$@ tst-array1.exp
> /dev
/null
773 $(objpfx
)tst-array4
: $(libdl
)
774 $(objpfx
)tst-array4.out
: $(objpfx
)tst-array4
$(objpfx
)tst-array2dep.so
775 $(elf-objpfx
)$(rtld-installed-name
) \
776 --library-path
$(rpath-link
)$(patsubst %,:%,$(sysdep-library-path
)) \
778 cmp
$@ tst-array4.exp
> /dev
/null
780 $(objpfx
)tst-array5
: $(objpfx
)tst-array5dep.so
781 $(objpfx
)tst-array5.out
: $(objpfx
)tst-array5
782 $(elf-objpfx
)$(rtld-installed-name
) \
783 --library-path
$(rpath-link
)$(patsubst %,:%,$(sysdep-library-path
)) \
784 $(objpfx
)tst-array5
> $@
785 cmp
$@ tst-array5.exp
> /dev
/null
787 $(objpfx
)tst-array5-static.out
: $(objpfx
)tst-array5-static
788 $(objpfx
)tst-array5-static
> $@
789 cmp
$@ tst-array5-static.exp
> /dev
/null
791 ifeq (yesyes
,$(have-fpie
)$(build-shared
))
792 CFLAGS-tst-pie1.c
+= -fpie
794 $(objpfx
)tst-pie1.out
: $(objpfx
)tst-pie1
795 $(elf-objpfx
)$(rtld-installed-name
) \
796 --library-path
$(rpath-link
)$(patsubst %,:%,$(sysdep-library-path
)) \
799 $(objpfx
)tst-pie1
: $(objpfx
)tst-pie1.o
$(objpfx
)tst-piemod1.so
800 $(LINK.o
) -pie
-Wl
,-O1 \
801 $(sysdep-LDFLAGS
) $(config-LDFLAGS
) \
802 $(extra-B-
$(@F
:lib
%.so
=%).so
) -B
$(csu-objpfx
) \
803 $(extra-B-
$(@F
:lib
%.so
=%).so
) $(load-map-file
) \
804 $(LDFLAGS
) $(LDFLAGS-
$(@F
)) \
805 -L
$(subst :, -L
,$(rpath-link
)) -Wl
,-rpath-link
=$(rpath-link
) \
806 -o
$@
$(objpfx
)tst-pie1.o
$(objpfx
)tst-piemod1.so \
807 $(common-objpfx
)libc_nonshared.a
809 generated
+= tst-pie1 tst-pie1.out tst-pie1.o
812 check-textrel-CFLAGS
= -O
-Wall
-D_XOPEN_SOURCE
=600 -D_BSD_SOURCE
813 $(objpfx
)check-textrel
: check-textrel.c
816 check-localplt-CFLAGS
= -O
-Wall
-D_GNU_SOURCE
-std
=gnu99
817 $(objpfx
)check-localplt
: check-localplt.c
820 ifeq (yes
,$(build-shared
))
821 tests
: $(objpfx
)check-textrel.out
823 $(objpfx
)check-textrel.out
: $(objpfx
)check-textrel
824 $(dir $<)$(notdir $<) $(common-objpfx
)libc.so \
825 $(sort $(wildcard $(common-objpfx
)*/lib
*.so \
826 $(common-objpfx
)iconvdata
/*.so
)) > $@
827 generated
+= check-textrel check-textrel.out
829 $(objpfx
)tst-dlmodcount
: $(libdl
)
830 $(objpfx
)tst-dlmodcount.out
: $(test-modules
)
832 check-data
:= $(firstword $(wildcard \
833 $(foreach M
,$(config-machine
) $(base-machine
),\
834 ..
/scripts
/data
/localplt-
$M-$(config-os
).data
)))
835 ifneq (,$(check-data
))
836 tests
: $(objpfx
)check-localplt.out
838 ifeq ($(have-thread-library
),yes
)
839 thread-dso
:= $(filter-out %_nonshared.a
, $(shared-thread-library
))
842 $(objpfx
)check-localplt.out
: $(objpfx
)check-localplt
$(common-objpfx
)libc.so \
843 $(common-objpfx
)math
/libm.so
$(thread-dso
) \
844 $(common-objpfx
)rt
/librt.so \
845 $(common-objpfx
)dlfcn
/libdl.so \
847 $(objpfx
)check-localplt
$(common-objpfx
)libc.so \
848 $(common-objpfx
)math
/libm.so
$(thread-dso
) \
849 $(common-objpfx
)rt
/librt.so \
850 $(common-objpfx
)dlfcn
/libdl.so | \
852 diff
-u
$(check-data
) - > $@
856 $(objpfx
)tst-dlopenrpathmod.so
: $(libdl
)
857 $(objpfx
)tst-dlopenrpath
: $(objpfx
)tst-dlopenrpathmod.so
$(libdl
)
858 CFLAGS-tst-dlopenrpath.c
+= -DPFX
=\"$(objpfx
)\"
859 LDFLAGS-tst-dlopenrpathmod.so
+= -Wl
,-rpath
,\
$$ORIGIN/test-subdir
860 $(objpfx
)tst-dlopenrpath.out
: $(objpfx
)firstobj.so
862 $(objpfx
)tst-deep1mod2.so
: $(objpfx
)tst-deep1mod3.so
863 $(objpfx
)tst-deep1
: $(libdl
) $(objpfx
)tst-deep1mod1.so
864 $(objpfx
)tst-deep1.out
: $(objpfx
)tst-deep1mod2.so
865 LDFLAGS-tst-deep1
+= -rdynamic
866 tst-deep1mod3.so-no-z-defs
= yes
868 $(objpfx
)tst-dlmopen1mod.so
: $(libdl
)
869 $(objpfx
)tst-dlmopen1
: $(libdl
)
870 $(objpfx
)tst-dlmopen1.out
: $(objpfx
)tst-dlmopen1mod.so
872 $(objpfx
)tst-dlmopen2
: $(libdl
)
873 $(objpfx
)tst-dlmopen2.out
: $(objpfx
)tst-dlmopen1mod.so
875 $(objpfx
)tst-dlmopen3
: $(libdl
)
876 $(objpfx
)tst-dlmopen3.out
: $(objpfx
)tst-dlmopen1mod.so
878 $(objpfx
)tst-audit1.out
: $(objpfx
)tst-auditmod1.so
879 tst-audit1-ENV
= LD_AUDIT
=$(objpfx
)tst-auditmod1.so
881 $(objpfx
)tst-global1
: $(libdl
)
882 $(objpfx
)tst-global1.out
: $(objpfx
)testobj6.so
$(objpfx
)testobj2.so
884 $(objpfx
)order2
: $(libdl
)
885 $(objpfx
)order2.out
: $(objpfx
)order2
$(objpfx
)order2mod1.so \
886 $(objpfx
)order2mod2.so
887 $(elf-objpfx
)$(rtld-installed-name
) \
888 --library-path
$(rpath-link
)$(patsubst %,:%,$(sysdep-library-path
)) \
890 (echo
"12345" | cmp
$@
-) > /dev
/null
891 $(objpfx
)order2mod1.so
: $(objpfx
)order2mod4.so
892 $(objpfx
)order2mod4.so
: $(objpfx
)order2mod3.so
893 $(objpfx
)order2mod2.so
: $(objpfx
)order2mod3.so
894 order2mod2.so-no-z-defs
= yes
896 tst-stackguard1-ARGS
= --command
"$(built-program-cmd) --child"
897 tst-stackguard1-static-ARGS
= --command
"$(objpfx)tst-stackguard1-static --child"