Commit Graph

5898 Commits

Author SHA1 Message Date
Andreas Jaeger 7bbaa3b260 (add_dependency): Remove unused variable j. 2000-10-24 11:17:45 +00:00
Ulrich Drepper a602757647 (main): Run tests for different alignments. 2000-10-24 08:30:36 +00:00
Ulrich Drepper f3e7f6080f Update.
* malloc/Makefile (tests): Add tst-obstack.
2000-10-24 08:25:05 +00:00
Ulrich Drepper 84832e0528 Update.
* malloc/obstack.c (_obstack_newchunk): Correctly align first returned
	block.
	* malloc/tst-obstack.c: New file.
	Patch and test case by Alexandre Duret-Lutz <duret_g@epita.fr>.
2000-10-24 08:23:06 +00:00
Ulrich Drepper 42c4f32a44 Update.
2000-10-24  Ulrich Drepper  <drepper@redhat.com>

	Complete revamp of the reference counter handling.
	* include/link.h (struct link_map): Add l_idx field.
	* elf/dl-close.c: Handle decrementing of reference counters more
	correctly. If necessary decrement reference counters of dependencies
	of dependencies.
	* elf/dl-lookup.c (add_dependency): Only increment reference counter
	of the object itself and not also its dependencies.
	* elf/dl-open.c: Increment reference counters here.
	* elf/dl-deps.c: Remove reference counter handling here.
	* elf/dl-load.c: Likewise.
	* elf/rtld.c: Adjust for _dl_map_deps not handling reference counters.

	* elf/loadtest.c: Print loaded objects at the beginning.
2000-10-24 07:36:55 +00:00
Ulrich Drepper 69c3325490 (struct link_map): Add l_idx field. 2000-10-24 07:24:28 +00:00
Andreas Jaeger e6d8aef870 Update.
2000-10-24  Andreas Jaeger  <aj@suse.de>

	* sysdeps/mips/dl-machine.h: Partly revert patch from 2000-10-18.
2000-10-24 07:02:35 +00:00
Andreas Jaeger 391713a434 Partly revert patch from 2000-10-18. 2000-10-24 07:01:37 +00:00
Ulrich Drepper a881e0a074 Update.
* include/link.h (struct link_map): New bit field l_faked.
	* elf/dl-deps.c: Use l_faked field in struct link_map instead of
	the magic l_opencount==0.
	* elf/dl-load.c: Likewise.
	* elf/dl-version.c: Likewise.
	* elf/rtld.c: Likewise.
2000-10-24 01:02:15 +00:00
Ulrich Drepper c41c89d35d Update.
2000-10-23  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-close.c (_dl_close): Add a few more __builtin_expect.
2000-10-24 00:03:37 +00:00
Ulrich Drepper 298ea0ffa5 Update.
2000-10-23  Jim Meyering  <meyering@ascend.com>

	Allow this code to be used outside of glibc.
	* sysdeps/generic/memrchr.c: Undef __memrchr, too.
	[!weak_alias]: Define __memrchr to memrchr.
	Guard weak_alias use with `#ifdef weak_alias'.
2000-10-23 23:19:40 +00:00
Ulrich Drepper 9807e5408b Update.
* elf/unload.c: Generate more debugging output.

	* elf/neededtest.c: Make it more complicated.
	* elf/neededtest2.c: New file.
	* elf/Makefile: Add rules to build and run neededtest2.
2000-10-23 22:58:40 +00:00
Ulrich Drepper f92338be6e Update.
* elf/dl-sym.c (_dl_sym): Use exact check for caller PC in range
	of DSO address space.
	(_dl_vsym): Likewise.
2000-10-23 21:40:57 +00:00
Ulrich Drepper 0d0db00c02 Update.
2000-10-23  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-sym.c (_dl_sym): For RTLD_DEFAULT, search in objects
	global scope if we can determine it.
2000-10-23 20:02:38 +00:00
Ulrich Drepper f288d2b27c Update.
* sysdeps/unix/sysv/linux/ia64/bits/resource.h (RLIMIT_LOCKS): Added.
	(RLIMIT_NLIMITS): Sync with kernel definition.
	(PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Also define as macros.

2000-10-23  Andreas Schwab  <schwab@suse.de>
2000-10-23 19:38:30 +00:00
Ulrich Drepper 94074f7882 (RLIMIT_LOCKS): Added. (RLIMIT_NLIMITS): Sync with kernel definition. (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Also define as macros. 2000-10-23 19:36:18 +00:00
Andreas Schwab 7a266a90d6 * sysdeps/m68k/fpu/libm-test-ulps: Updated. 2000-10-23 19:15:24 +00:00
Andreas Schwab c973fccc99 Updated. 2000-10-23 19:14:22 +00:00
Ulrich Drepper 949d553a58 Update.
2000-10-23  Ulrich Drepper  <drepper@redhat.com>

	* elf/elf.h (R_IA64_GPREL32MSB, R_IA64_GPREL32LSB): New definitions.
2000-10-23 18:51:39 +00:00
Ulrich Drepper fd6650707a Update.
2000-10-22  Bruno Haible  <haible@clisp.cons.org>

	* iconvdata/big5hkscs.c (big5hkscs_to_ucs): Add irreversible mappings
	for 0x8BF8, 0xA27E..0xA2A7.
	* iconvdata/BIG5HKSCS.irreversible: New file.

2000-10-23  Jakub Jelinek  <jakub@redhat.com>

	* timezone/zdump.c (main): setlocale LC_CTYPE as well as LC_MESSAGES.
	* timezone/zic.c (main): Likewise.

2000-10-23  Thorsten Kukuk  <kukuk@suse.de>

	* nscd/connections.c (invalidate_cache): Don't invalidate a cache
	if it is not enabled.
2000-10-23 17:11:35 +00:00
Ulrich Drepper 26b2a85a04 (TIMEOUT): Override default timeout. 2000-10-23 16:53:00 +00:00
Andreas Jaeger 827ab1353e Update.
* sysdeps/s390/fpu/libm-test-ulps: New ulps.
2000-10-23 13:19:05 +00:00
Andreas Jaeger 1192cb4d5e Update.
2000-10-23  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/mips/syscalls.list: Add fcntl64.
	Patch by Ralf Baechle <ralf@gnu.org>.
2000-10-23 06:27:03 +00:00
Andreas Jaeger 4d2adf2957 Update MIPS entry. 2000-10-22 06:18:44 +00:00
Ulrich Drepper a35e137a99 Update.
* elf/dl-load.c (_dl_map_object_from_fd): Split out ELF file
	verification in open_verify.
	(open_verify): New function.  Called instead of open.  Ignores valid
	files for other architectures.
	(open_path): Call open_verify instead of open.
	(_dl_map_object): Likewise.
	Somewhat based on a patch by Don Dugger <n0ano@valinux.com>.

	* io/pwd.c (main): The output was missing a newline.
2000-10-21 17:08:18 +00:00
Ulrich Drepper d1990c5562 (main): The output was missing a newline. 2000-10-21 17:03:01 +00:00
Andreas Jaeger 92ec318f0d Add MIPS information. 2000-10-21 11:04:04 +00:00
Ulrich Drepper a4607c1f07 Update.
* posix/fnmatch_loop.c: Make FNM_LEADING_DIR behave as GNU tar
	expects it.  Patch by Colin Watson <riva.ucam.org>.
	* posix/tst-fnmatch.input: Add test cases for FNM_LEADING_DIR.
2000-10-21 07:30:28 +00:00
Ulrich Drepper d785c36692 Update.
2000-10-21  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-open.c (add_to_global): New function.  Split out from
	dl_open_worker.
	(dl_open_worker): Call add_to_global not only for new objects, also for
	previously loaded objects when (mode & RTLD_GLOBAL) and the object
	was not yet in the global scope.
	* elf/Makefile: Add rules to build and run lateglobal.
	* elf/lateglobal.c: New file.
	* elf/ltglobmod1.c: New file.
	* elf/ltglobmod2.c: New file.
2000-10-21 07:16:18 +00:00
Ulrich Drepper c91bc73e3e Update.
* include/link.h (struct link_map): Add l_soname_added bitfield.
	* elf/dl-load.c (_dl_map_object): Remember when we added the
	SONAME to the l_libname list and don't try it again.
2000-10-21 06:32:16 +00:00
Ulrich Drepper 8699e7b1da Update.
* elf/dl-close.c: Decrement opencount for all dependencies which can
	be removed even if the object is not yet unloaded.
	* elf/dl-deps.c (_dl_map_object_deps): If dependency is already in
	the list decrement opencount of all dependencies.
	* elf/dl-load.c (_dl_map_object_from_fd): Increment object of object
	and all dependencies.
	(_dl_map_object): Likewise.
	* elf/dl-lookup.c (add_dependency): Likewise.

	* elf/loadtest.c: Add debug when with more output.
2000-10-21 06:02:49 +00:00
Ulrich Drepper f6de2239e2 Update.
* elf/Makefile: Add rules to build and run unload2.
	* elf/unload2.c: New file.
	* elf/unload2mod.c: New file.
	* elf/unload2dep.c: New file.

	* intl/libintl.h (ngettext macro): Add missing parameter.
	(dngettext macro): Likewise.
2000-10-21 02:07:22 +00:00
Ulrich Drepper e6d18111ad Update.
2000-10-20  Ulrich Drepper  <drepper@redhat.com>

	* intl/libintl.h (ngettext): Add missing parameter.
	(dngettext): Likewise.
2000-10-21 02:03:09 +00:00
Ulrich Drepper ceb579a3f8 Update.
2000-10-19  H.J. Lu  <hjl@gnu.org>

	* elf/Makefile (distribute): Add neededtest.c, neededobj1.c,
	neededobj2.c and neededobj3.c.
	(tests): Add neededtest.
	(modules-names): Add neededobj1, neededobj2 and neededobj3.
	($(objpfx)neededobj1.so): New target.
	($(objpfx)neededobj2.so): Likewise.
	($(objpfx)neededobj3.so): Likewise.
	($(objpfx)neededtest): Likewise.
	($(objpfx)neededtest.out): Likewise.
	* elf/neededtest.c: New. Based on the bug report from
	Allen Bauer <kylix_rd@hotmail.com>.
	* elf/neededobj1.c: Likewise.
	* elf/neededobj2.c: Likewise.
	* elf/neededobj3.c: Likewise.

2000-10-20  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-close.c (_dl_close): Decrement reference counter for all
	dependencies even if the DSO does not get unloaded.

	* elf/dl-load.c (_dl_map_object_from_fd): Pass pointer to ELF header
	to elf_machine_matches_host.
	* sysdeps/alpha/dl-machine.h (elf_machine_matches_host): Parameter
	is now pointer to ELF header.
	* sysdeps/arm/dl-machine.h: Likewise.
	* sysdeps/generic/dl-machine.h: Likewise.
	* sysdeps/hppa/dl-machine.h: Likewise.
	* sysdeps/i386/dl-machine.h: Likewise.
	* sysdeps/ia64/dl-machine.h: Likewise.
	* sysdeps/m68k/dl-machine.h: Likewise.
	* sysdeps/mips/dl-machine.h: Likewise.
	* sysdeps/mips/mips64/dl-machine.h: Likewise.
	* sysdeps/powerpc/dl-machine.h: Likewise.
	* sysdeps/s390/dl-machine.h: Likewise.
	* sysdeps/sh/dl-machine.h: Likewise.
	* sysdeps/sparc/sparc32/dl-machine.h: Likewise.
	* sysdeps/sparc/sparc64/dl-machine.h: Likewise.
	Patch by Martin Schwidefsksy <schwidefsky@de.ibm.com>.

2000-10-20  Jakub Jelinek  <jakub@redhat.com>

	* include/limits.h: Include bits/wordsize.h, use #if __WORDSIZE == 64
	check instead of #ifdef __alpha__.
	* include/bits/xopen_lim.h (WORD_BIT, LONG_BIT): Don't count on
	INT_MAX, __INT_MAX__, LONG_MAX or __LONG_MAX__ being defined when
	this is included.

	* posix/wordexp-tst.sh (testout): Place output file in build
	directory.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
2000-10-21 00:02:39 +00:00
Ulrich Drepper 2a0dcb7c16 Update.
2000-10-20  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/powerpc/fpu/bits/mathinline.h: Pretty print.

2000-10-19  Ulrich Drepper  <drepper@redhat.com>

	* hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
	Correctly handle numeric group member information.
	Patch by tomasw@cs.huji.ac.il.

	* hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
	Complete test for strtol overflow.

2000-10-19  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Pass union
	semun as 4th argument to semctl syscall, not address of it.

2000-10-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add fcntl64() syscall.

2000-10-17  Andreas Schwab  <schwab@suse.de>

	* string/string.h: Remove declaration of __strcasecmp and __strcasestr.
	* include/string.h: Declare them here.
2000-10-20 07:34:48 +00:00
Ulrich Drepper eca33418e7 Pretty print. 2000-10-20 07:31:42 +00:00
Andreas Jaeger 9dbdf61da1 Update.
2000-10-18  Ralf Baechle  <ralf@gnu.org>

	* sysdeps/unix/sysv/linux/mips/sys/syscall.h: Include <asm/unistd.h>.
2000-10-20 07:03:02 +00:00
Andreas Jaeger b32244b457 Include <asm/unistd.h>. 2000-10-20 07:02:12 +00:00
Ulrich Drepper 521a2f6584 (_nss_hesiod_initgroups_dyn): Correctly handle numeric group member information. Complete test for strtol overflow. 2000-10-20 06:33:30 +00:00
Ulrich Drepper aab0963999 Update.
2000-10-19  Ulrich Drepper  <drepper@redhat.com>

	* locales/iso14651_t1: Handle Macedonian correctly.
	Patch by Damjan <arhiv@freemail.org.mk>.
2000-10-20 06:16:38 +00:00
Ulrich Drepper 0b4a2ea611 Remove declaration of __strcasecmp and __strcasestr. 2000-10-20 05:59:51 +00:00
Geoff Keating 781ca93d82 * sysdeps/powerpc/fpu/bits/mathinline.h: Add versions
of the unordered comparison functions that use the GCC builtins.
2000-10-19  Geoffrey Keating  <geoffk@cygnus.com>
2000-10-19 08:15:41 +00:00
Geoff Keating c6e6c9c896 * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): New function.
(__process_machine_rela): Print the address of an overflowing 
reloc.
2000-10-17  Geoffrey Keating  <geoffk@cygnus.com>

	* sysdeps/powerpc/fpu/bits/mathinline.h: Add versions
	of the unordered comparison functions that use the GCC builtins.

	* sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): New function.
	(__process_machine_rela): Print the address of an overflowing
	reloc.
2000-10-19 08:15:09 +00:00
Ulrich Drepper 549fc33c06 Update.
2000-10-18  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/shm_open.c: Correct default mount point
	in comments.
	(freeit): Remove unnecessary test.
2000-10-18 20:50:51 +00:00
Ulrich Drepper b26a9120ec Correct default mount point in comments. (freeit): Remove unnecessary test. 2000-10-18 20:46:52 +00:00
Andreas Jaeger cd3cd00ccb Update.
2000-10-18  Andreas Jaeger  <aj@suse.de>

	* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_OK): New.
	(ELF_MACHINE_BEFORE_RTLD_RELOC): Handle newer linkers.
	(elf_machine_runtime_link_map): Likewise.
	(elf_machine_runtime_setup): Likewise.
	Handle dynamic linker's local got entries.
	Patches by Ralf Baechle <ralf@gnu.org>.

2000-10-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

	* sysdeps/mips/dl-machine.h (_dl_runtime_resolve): Define $sp as
	the frame pointer.  Allocate stack space for $a0 for
	__dl_runtime_resolve().  Do not save $sp in $s0 as it's
	callee-saved anyway.
2000-10-18 11:01:58 +00:00
Andreas Jaeger c9f4ffcf5a 2000-10-18 Andreas Jaeger <aj@suse.de>
* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_OK): New.
	(ELF_MACHINE_BEFORE_RTLD_RELOC): Handle newer linkers.
	(elf_machine_runtime_link_map): Likewise.
	(elf_machine_runtime_setup): Likewise.
	Handle dynamic linker's local got entries.
	Patches by Ralf Baechle <ralf@gnu.org>.

2000-10-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

	* sysdeps/mips/dl-machine.h (_dl_runtime_resolve): Define $sp as
	the frame pointer.  Allocate stack space for $a0 for
	__dl_runtime_resolve().  Do not save $sp in $s0 as it's
	callee-saved anyway.
2000-10-18 10:21:16 +00:00
Ulrich Drepper deda4d1a4e Update.
2000-10-17  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/powerpc/fpu/libm-test-ulps: Update for changes in
	libm-test.inc.
2000-10-17 22:04:13 +00:00
Ulrich Drepper 5bfc6757b6 Update after precision increase is sources. 2000-10-17 22:03:34 +00:00
Andreas Schwab 226672f842 * sysdeps/m68k/fpu/libm-test-ulps: Update for changes in
libm-test.inc.
2000-10-17 13:24:51 +00:00