aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-20 20:01:17 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-20 20:01:17 +0000
commit1e2623127469890c7912d12a8ba5bc70d068eb18 (patch)
treef3e9b75f2cd829b6819c2c7e825c6c97366697ad /elf/Makefile
parentad11b5a745d0aeee42ead08f6cadfe4dcc84ad82 (diff)
downloadglibc-1e2623127469890c7912d12a8ba5bc70d068eb18.tar
glibc-1e2623127469890c7912d12a8ba5bc70d068eb18.tar.gz
glibc-1e2623127469890c7912d12a8ba5bc70d068eb18.tar.bz2
glibc-1e2623127469890c7912d12a8ba5bc70d068eb18.zip
Update.
* elf/Makefile (tests): Add loadfail. Add rules to build failobj.so. * elf/loadfail.c: New file. Test of failing to load object with RTLD_GLOBAL set. * elf/failobj.c: New file. Object which will fail to load.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/elf/Makefile b/elf/Makefile
index f79a312dcf..05bc44637e 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -75,7 +75,7 @@ others += ldconfig
install-rootsbin += ldconfig
endif
-tests = loadtest restest1 preloadtest
+tests = loadtest restest1 preloadtest loadfail
include ../Rules
@@ -203,7 +203,7 @@ $(objpfx)sprof: $(objpfx)libdl.a
endif
modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
- testobj1_1
+ testobj1_1 failobj
test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
generated += $(test-modules)
@@ -216,6 +216,7 @@ LDLIBS-testobj3.so = -ldl
LDLIBS-testobj4.so = -ldl
LDLIBS-testobj5.so = -ldl
LDLIBS-testobj6.so = -ldl
+LDLIBS-failobj.so = $(objpfx)testobj6.so
$(test-modules): $(objpfx)%.so: %.c
$(build-module)
@@ -233,6 +234,11 @@ $(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
+
+$(objpfx)loadfail: $(objpfx)libdl.so
+LDFLAGS-loadfail = -rdynamic
+
+$(objpfx)loadfile.out: $(objpfx)failobj.so
# muwahaha