From 08162fa888913a5153d2fcdc4e1a816b57b1fe56 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 2 May 1995 05:56:40 +0000 Subject: Tue May 2 01:52:58 1995 Roland McGrath Implemented runtime dynamic linker to support ELF shared libraries. * elf/Makefile: Added rules to make ld.so and libdl. * elf/dl-error.c: New file. * elf/dl-fini.c: New file. * elf/dl-init.c: New file. * elf/dl-load.c: New file. * elf/dl-lookup.c: New file. * elf/dl-object.c: New file. * elf/dl-reloc.c: New file. * elf/dlclose.c: New file. * elf/dlerror.c: New file. * elf/dlopen.c: New file. * elf/dlsym.c: New file. * elf/dynamic-link.h: New file. * elf/link.h: New file. * elf/rtld.c: New file. Mon May 1 18:48:30 1995 Roland McGrath * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make libc.so runnable. * version.c (__libc_print_version): Add "et al" and missing NL to author credit. --- Makerules | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 6c01013e8d..0e67398dad 100644 --- a/Makerules +++ b/Makerules @@ -350,6 +350,8 @@ lib%.so: lib%_pic.a # Also omits crti.o and crtn.o, which we do not want # since we define our own `.init' section specially. LDFLAGS-c.so = -nostdlib +# Give libc.so an entry point and make it directly runnable itself. +LDFLAGS-c.so += -Wl,-interp -Wl,/lib/ld.so -e __libc_print_version endif libobjs: $(foreach o,$(object-suffixes),\ -- cgit v1.2.3