about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-20 00:34:52 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-20 00:34:52 +0000
commit3d91edb219b3970ccbc9dd53e24536b25fb41edf (patch)
treeef522a32e560cd00bb86c895590859f7cbdf9fc6 /elf/Makefile
parentb25d4ff04dff85bd1d32741cc0a320ee38cfdf51 (diff)
downloadglibc-3d91edb219b3970ccbc9dd53e24536b25fb41edf.tar.gz
glibc-3d91edb219b3970ccbc9dd53e24536b25fb41edf.tar.xz
glibc-3d91edb219b3970ccbc9dd53e24536b25fb41edf.zip
Update.
1999-01-20  Ulrich Drepper  <drepper@cygnus.com>

	* elf/Makefile (tests): Add preloadtest.  Add rules to build more test
	modules and the preloadtest binary.
	* elf/loadtest.c (TEST_ROUNDS): Increase to 1000.
	(testobjs): Add more modules.
	(tests): Add entries for new modules.
	* elf/preloadtest.c: New file.  Test for LD_PRELOAD.
	* elf/testobj1.c: Add 'preload' function.
	* elf/testobj2.c: Likewise.
	* elf/testobj3.c: Likewise.
	* elf/testobj4.c: New file.
	* elf/testobj5.c: New file.
	* elf/testobj6.c: New file.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/elf/Makefile b/elf/Makefile
index f6da5c47a0..c46c22933b 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -75,7 +75,7 @@ others		+= ldconfig
 install-rootsbin += ldconfig
 endif
 
-tests = loadtest restest1
+tests = loadtest restest1 preloadtest
 
 include ../Rules
 
@@ -214,14 +214,20 @@ $(LINK.o) -shared -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS)  \
 	  $(no-whole-archive) $(LDLIBS-$(@F:%.so=%).so)
 endef
 
-modules-names = testobj1 testobj2 testobj3 testobj1_1
+modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
+		testobj1_1
 test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
 generated += $(test-modules)
 
+LDLIBS-testobj1.so = -ldl
 $(objpfx)testobj1_1.so: $(objpfx)testobj1.so
 LDLIBS-testobj1_1.so = $(objpfx)testobj1.so
 $(objpfx)testobj2.so: $(objpfx)testobj1.so
-LDLIBS-testobj2.so = $(objpfx)testobj1.so
+LDLIBS-testobj2.so = $(objpfx)testobj1.so -ldl
+LDLIBS-testobj3.so = -ldl
+LDLIBS-testobj4.so = -ldl
+LDLIBS-testobj5.so = -ldl
+LDLIBS-testobj6.so = -ldl
 
 $(test-modules): $(objpfx)%.so: %.c
 	$(build-module)
@@ -235,6 +241,10 @@ $(objpfx)restest1: $(objpfx)libdl.so
 LDFLAGS-restest1 = -rdynamic $(objpfx)testobj1.so $(objpfx)testobj1_1.so
 
 $(objpfx)restest1.out: $(test-modules)
+
+$(objpfx)preloadtest.out: $(test-modules)
+LDFLAGS-preloadtest = -rdynamic $(objpfx)testobj6.so
+preloadtest-ENV = LD_PRELOAD=testobj1.so:testobj2.so:testobj3.so:testobj4.so:testobj5.so
 
 # muwahaha