From 61e0617ac34c4daaeb2f07f89a05c9f9353b8879 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 19 Feb 1999 00:00:05 +0000 Subject: Update. * elf/link.h (link_map): Add l_dev and l_ino. * elf/dl-load.c (_dl_map_object_from_fd): Test dev/ino of newly loaded shared object with all laoded objects. Initialize l_ino and l_dev in case it's new. * elf/rtld.c (dl_main): Explain situation is l_dev/l_ino with main object. * elf/Makefile: Compile and run new test. * elf/multiload.c: New file. --- elf/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'elf/Makefile') diff --git a/elf/Makefile b/elf/Makefile index 1706efc..ef5b831 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -77,7 +77,7 @@ others += ldconfig install-rootsbin += ldconfig endif -tests = loadtest restest1 preloadtest loadfail +tests = loadtest restest1 preloadtest loadfail multiload modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \ testobj1_1 failobj extra-objs += $(modules-names:=.os) @@ -244,7 +244,13 @@ preloadtest-ENV = \ $(objpfx)loadfail: $(libdl) LDFLAGS-loadfail = -rdynamic -$(objpfx)loadfile.out: $(objpfx)failobj.so +$(objpfx)loadfail.out: $(objpfx)failobj.so + +$(objpfx)multiload: $(libdl) +LDFLAGS-multiload = -rdynamic +CFLAGS-multiload.c = -DOBJDIR=\"$(objdir)/$(subdir)\" + +$(objpfx)multiload.out: $(objpfx)testobj1.so # muwahaha -- cgit v1.1