(tests): Add tst-global1. Add rules to build and run unload3 test.
This commit is contained in:
parent
04c8bd46a5
commit
fab0abb446
17
elf/Makefile
17
elf/Makefile
@ -84,6 +84,7 @@ distribute := rtld-Rules \
|
|||||||
tst-execstack-mod.c tst-dlmodcount.c \
|
tst-execstack-mod.c tst-dlmodcount.c \
|
||||||
check-textrel.c dl-sysdep.h test-dlopenrpathmod.c \
|
check-textrel.c dl-sysdep.h test-dlopenrpathmod.c \
|
||||||
tst-deep1mod1.c tst-deep1mod2.c tst-deep1mod3.c \
|
tst-deep1mod1.c tst-deep1mod2.c tst-deep1mod3.c \
|
||||||
|
unload3mod1.c unload3mod2.c unload3mod3.c unload3mod4.c \
|
||||||
tst-auditmod1.c
|
tst-auditmod1.c
|
||||||
|
|
||||||
CFLAGS-dl-runtime.c = -fexceptions -fasynchronous-unwind-tables
|
CFLAGS-dl-runtime.c = -fexceptions -fasynchronous-unwind-tables
|
||||||
@ -159,7 +160,7 @@ tests += loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
|
|||||||
tst-tls10 tst-tls11 tst-tls12 tst-tls13 tst-tls14 tst-align \
|
tst-tls10 tst-tls11 tst-tls12 tst-tls13 tst-tls14 tst-align \
|
||||||
tst-align2 $(tests-execstack-$(have-z-execstack)) tst-dlmodcount \
|
tst-align2 $(tests-execstack-$(have-z-execstack)) tst-dlmodcount \
|
||||||
tst-dlopenrpath tst-deep1 tst-dlmopen1 tst-dlmopen2 tst-dlmopen3 \
|
tst-dlopenrpath tst-deep1 tst-dlmopen1 tst-dlmopen2 tst-dlmopen3 \
|
||||||
tst-audit1
|
unload3 tst-audit1 tst-global1
|
||||||
# reldep9
|
# reldep9
|
||||||
test-srcs = tst-pathopt
|
test-srcs = tst-pathopt
|
||||||
tests-vis-yes = vismain
|
tests-vis-yes = vismain
|
||||||
@ -194,7 +195,8 @@ modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
|
|||||||
tst-alignmod tst-alignmod2 \
|
tst-alignmod tst-alignmod2 \
|
||||||
$(modules-execstack-$(have-z-execstack)) \
|
$(modules-execstack-$(have-z-execstack)) \
|
||||||
tst-dlopenrpathmod tst-deep1mod1 tst-deep1mod2 tst-deep1mod3 \
|
tst-dlopenrpathmod tst-deep1mod1 tst-deep1mod2 tst-deep1mod3 \
|
||||||
tst-dlmopen1mod tst-auditmod1
|
tst-dlmopen1mod tst-auditmod1 \
|
||||||
|
unload3mod1 unload3mod2 unload3mod3 unload3mod4
|
||||||
ifeq (yes,$(have-initfini-array))
|
ifeq (yes,$(have-initfini-array))
|
||||||
modules-names += tst-array2dep
|
modules-names += tst-array2dep
|
||||||
endif
|
endif
|
||||||
@ -426,6 +428,9 @@ $(objpfx)reldep8mod3.so: $(objpfx)reldep8mod1.so $(objpfx)reldep8mod2.so
|
|||||||
$(objpfx)nodel2mod3.so: $(objpfx)nodel2mod1.so $(objpfx)nodel2mod2.so
|
$(objpfx)nodel2mod3.so: $(objpfx)nodel2mod1.so $(objpfx)nodel2mod2.so
|
||||||
$(objpfx)reldep9mod2.so: $(objpfx)reldep9mod1.so
|
$(objpfx)reldep9mod2.so: $(objpfx)reldep9mod1.so
|
||||||
$(objpfx)reldep9mod3.so: $(objpfx)reldep9mod1.so $(objpfx)reldep9mod2.so
|
$(objpfx)reldep9mod3.so: $(objpfx)reldep9mod1.so $(objpfx)reldep9mod2.so
|
||||||
|
$(objpfx)unload3mod1.so: $(objpfx)unload3mod3.so
|
||||||
|
$(objpfx)unload3mod2.so: $(objpfx)unload3mod3.so
|
||||||
|
$(objpfx)unload3mod3.so: $(objpfx)unload3mod4.so
|
||||||
|
|
||||||
LDFLAGS-tst-tlsmod5.so = -nostdlib
|
LDFLAGS-tst-tlsmod5.so = -nostdlib
|
||||||
LDFLAGS-tst-tlsmod6.so = -nostdlib
|
LDFLAGS-tst-tlsmod6.so = -nostdlib
|
||||||
@ -465,6 +470,7 @@ circlemod3.so-no-z-defs = yes
|
|||||||
circlemod3a.so-no-z-defs = yes
|
circlemod3a.so-no-z-defs = yes
|
||||||
reldep8mod2.so-no-z-defs = yes
|
reldep8mod2.so-no-z-defs = yes
|
||||||
reldep9mod1.so-no-z-defs = yes
|
reldep9mod1.so-no-z-defs = yes
|
||||||
|
unload3mod4.so-no-z-defs = yes
|
||||||
|
|
||||||
# filtmod1.so has a special rule
|
# filtmod1.so has a special rule
|
||||||
$(filter-out $(objpfx)filtmod1.so, $(test-modules)): $(objpfx)%.so: $(objpfx)%.os
|
$(filter-out $(objpfx)filtmod1.so, $(test-modules)): $(objpfx)%.so: $(objpfx)%.os
|
||||||
@ -681,6 +687,10 @@ $(objpfx)tst-align: $(libdl)
|
|||||||
$(objpfx)tst-align.out: $(objpfx)tst-alignmod.so
|
$(objpfx)tst-align.out: $(objpfx)tst-alignmod.so
|
||||||
$(objpfx)tst-align2: $(objpfx)tst-alignmod2.so
|
$(objpfx)tst-align2: $(objpfx)tst-alignmod2.so
|
||||||
|
|
||||||
|
$(objpfx)unload3: $(libdl)
|
||||||
|
$(objpfx)unload3.out: $(objpfx)unload3mod1.so $(objpfx)unload3mod2.so \
|
||||||
|
$(objpfx)unload3mod3.so $(objpfx)unload3mod4.so
|
||||||
|
|
||||||
ifdef libdl
|
ifdef libdl
|
||||||
$(objpfx)tst-tls9-static: $(common-objpfx)dlfcn/libdl.a
|
$(objpfx)tst-tls9-static: $(common-objpfx)dlfcn/libdl.a
|
||||||
$(objpfx)tst-tls9-static.out: $(objpfx)tst-tlsmod5.so $(objpfx)tst-tlsmod6.so
|
$(objpfx)tst-tls9-static.out: $(objpfx)tst-tlsmod5.so $(objpfx)tst-tlsmod6.so
|
||||||
@ -791,3 +801,6 @@ $(objpfx)tst-dlmopen3.out: $(objpfx)tst-dlmopen1mod.so
|
|||||||
|
|
||||||
$(objpfx)tst-audit1.out: $(objpfx)tst-auditmod1.so
|
$(objpfx)tst-audit1.out: $(objpfx)tst-auditmod1.so
|
||||||
tst-audit1-ENV = LD_AUDIT=$(objpfx)tst-auditmod1.so
|
tst-audit1-ENV = LD_AUDIT=$(objpfx)tst-auditmod1.so
|
||||||
|
|
||||||
|
$(objpfx)tst-global1: $(libdl)
|
||||||
|
$(objpfx)tst-global1.out: $(objpfx)testobj6.so $(objpfx)testobj2.so
|
||||||
|
Loading…
x
Reference in New Issue
Block a user