diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-01-16 17:09:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-01-16 17:09:04 +0000 |
commit | 482eec0d1188823ad93247f79bf965886e8bd4f7 (patch) | |
tree | 5a3157c41a1310f5440de77f841753a32bb1444d /elf/Makefile | |
parent | 37a87f834a459f6136ff44c7887b013d1ae0f6be (diff) | |
download | glibc-482eec0d1188823ad93247f79bf965886e8bd4f7.zip glibc-482eec0d1188823ad93247f79bf965886e8bd4f7.tar.gz glibc-482eec0d1188823ad93247f79bf965886e8bd4f7.tar.bz2 |
Update.
1999-01-16 Ulrich Drepper <drepper@cygnus.com>
* elf/Makefile (tests): Add loadtest.
Add rules to generate test modules.
* Makeconfig (+link): Add $(LDFLAGS-$(@F)) to command line.
* elf/loadtest.c: New file.
* elf/testobj1.c: New file.
* elf/testobj2.c: New file.
* elf/testobj3.c: New file.
* elf/dl-close.c: Correct removing module from global list.
* elf/dl-open.c: Add debugging code.
* include/string.h: Add __rawmemchr prototype.
* string/Makefile (routines): Add rawmemchr.
* string/Versions [GLIBC_2.1]: Add __rawmemchr and rawmemchr.
* string/string.h: Add prototype for rawmemchr.
* string/bits/string2.h: Optimize strchr with rawmemchr.
* sysdeps/generic/rawmemchr.c: New file.
* sysdeps/i386/rawmemchr.c: New file.
* sysdeps/i386/i486/bits/string.h: Add rawmemchr inline code.
Optimize strchr with rawmemchr.
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Define _LFS_LARGEFILE,
_LFS64_LARGEFILE, and _LFS64_STDIO for Unix98.
1999-01-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* nis/nis_error.c (nis_errlist): Fix capitilasation.
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile index 81aa217..e029fba 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +# Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -75,6 +75,8 @@ others += ldconfig install-rootsbin += ldconfig endif +tests = loadtest + include ../Rules @@ -200,6 +202,32 @@ else $(objpfx)sprof: $(objpfx)libdl.a endif +# This macro is similar to build-shlib but it does not define a soname +# and it does not depend on the destination name to start with `lib'. +define build-module +$(LINK.o) -shared -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS) \ + -B$(csu-objpfx) $(load-map-file) \ + $(LDFLAGS.so) $(LDFLAGS-$(@F:%.so=%).so) \ + -L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \ + -Wl,--whole-archive -Wl,-soname,$(@F) \ + $(filter-out $(map-file) $(+preinit) $(+postinit),$^) \ + $(no-whole-archive) $(LDLIBS-$(@F:%.so=%).so) +endef + +modules-names = testobj1 testobj2 testobj3 +test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names))) + +$(objpfx)testobj2.so: $(objpfx)testobj1.so +LDLIBS-testobj2.so = $(objpfx)testobj1.so + +$(test-modules): $(objpfx)%.so: %.c + $(build-module) + +$(objpfx)loadtest: $(objpfx)libdl.so +LDFLAGS-loadtest = -rdynamic + +$(objpfx)loadtest.out: $(test-modules) + # muwahaha LDFLAGS-dl.so = -Wl,-dynamic-linker,$(slibdir)/$(rtld-installed-name) |