mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
(tests): Add $(tests-vis-$(have-protected)). (tests-vis-yes): Add vismain. (modules-names): Add $(modules-vis-$(have-protected)). (modules-vis-yes): Add vismod1, vismod2, and vismod3. Add rules to generate and run vismain.
This commit is contained in:
parent
2d2d8237e0
commit
c1025c1980
10
elf/Makefile
10
elf/Makefile
@ -81,11 +81,13 @@ endif
|
|||||||
|
|
||||||
ifeq (yes,$(build-shared))
|
ifeq (yes,$(build-shared))
|
||||||
tests = loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
|
tests = loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
|
||||||
constload1 order
|
constload1 order $(tests-vis-$(have-protected))
|
||||||
|
tests-vis-yes = vismain
|
||||||
endif
|
endif
|
||||||
modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
|
modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
|
||||||
testobj1_1 failobj constload2 constload3 \
|
testobj1_1 failobj constload2 constload3 \
|
||||||
dep1 dep2 dep3 dep4
|
dep1 dep2 dep3 dep4 $(modules-vis-$(have-protected))
|
||||||
|
modules-vis-yes = vismod1 vismod2 vismod3
|
||||||
extra-objs += $(modules-names:=.os)
|
extra-objs += $(modules-names:=.os)
|
||||||
|
|
||||||
include ../Rules
|
include ../Rules
|
||||||
@ -275,3 +277,7 @@ $(objpfx)order.out: $(objpfx)order
|
|||||||
--library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
|
--library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
|
||||||
$(objpfx)order > $@
|
$(objpfx)order > $@
|
||||||
(echo "0123456789" | cmp $@ -) > /dev/null
|
(echo "0123456789" | cmp $@ -) > /dev/null
|
||||||
|
|
||||||
|
$(objpfx)vismain: $(addprefix $(objpfx),vismod1.so vismod2.so)
|
||||||
|
$(objpfx)vismain.out: $(addprefix $(objpfx),vismod3.so)
|
||||||
|
vismain-ENV = LD_PRELOAD=$(addprefix $(objpfx),vismod3.so)
|
||||||
|
Loading…
Reference in New Issue
Block a user