Commit Graph

6065 Commits

Author SHA1 Message Date
Andreas Jaeger 3509e9f246 (_dl_map_object_from_fd): Remove unused variable. (_dl_map_object): Likewise. 2000-10-25 14:11:27 +00:00
Ulrich Drepper b05598ef31 Update.
2000-10-24  Paul Eggert  <eggert@twinsun.com>

	* time/strftime.c (my_strftime macro)
	[!defined _LIBC && HAVE_TZNAME && HAVE_TZSET]:
	When redefining, do it without args, so that it works even if
	emacs is defined and an extra argument is passed to my_stftime.
	(my_strftime function): When evaluating a subformat, pass
	ut_argument as well.

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

	* sysdeps/unix/sysv/linux/ia64/Versions: Add pciconfig_read and
	pciconfig_write.

	* sysdeps/generic/dl-cache.c (_dl_cache_verify_ptr): Correct test
	for files with new cache format.
	(_dl_load_cache_lookup): Add variable cache_data_size for size of the
	data.  Correctly report error if neither old not new signature is
	found. Little optimizations.
	Mostly based on a patch by Denis Zaitsev <zzz@cd-club.ru>.
2000-10-25 08:23:00 +00:00
Ulrich Drepper 7e036a0134 Update.
2000-10-25  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-close.c (_dl_close): Optimize a bit by optimizing out the
	nsearchlist variable.
2000-10-25 07:06:03 +00:00
Ulrich Drepper e30f2b9828 Update.
* elf/dl-lookup.c (add_dependency): Fix test to check whether
	dependency already exists.
	* elf/Makefile: Add testobj1 and testobj2 as dependencies of testobj6.
	* elf/loadtest.c (main): Add test at the end that everything is
	unloaded.

	* elf/dl-open.c (dl_open_worker): Fix typo in comment.
2000-10-25 04:00:08 +00:00
Ulrich Drepper 7d1231f116 Update.
2000-10-24  Ulrich Drepper  <drepper@redhat.com>

	* elf/elf.h: Add even more IA-64 relocations.
2000-10-25 00:19:27 +00:00
Ulrich Drepper e950d61f64 Add even more IA-64 relocations. 2000-10-25 00:16:25 +00:00
Geoff Keating feb2789332 * io/test-lfs.c (do_prepare): Call setrlimit64, in case the user
has a limit set---for instance, a limit of 2^31 bytes, which can't 
easily be reset by non-LFS-aware shells.
2000-10-24  Geoffrey Keating  <geoffk@cygnus.com>

	* io/test-lfs.c (do_prepare): Call setrlimit64, in case the user
	has a limit set---for instance, a limit of 2^31 bytes, which can't
	easily be reset by non-LFS-aware shells.
2000-10-24 21:12:01 +00:00
Geoff Keating 0a1e7f70eb * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Define PAGE_SHIFT
explicitly rather than getting it from <asm/page.h>.
2000-10-21  Geoffrey Keating  <geoffk@cygnus.com>

	* sysdeps/unix/sysv/linux/powerpc/mmap64.c: Define PAGE_SHIFT
	explicitly rather than getting it from <asm/page.h>.
2000-10-24 21:09:50 +00:00
Ulrich Drepper 4b4fcf99d1 Update.
* elf/dl-close.c (_dl_close): Handle relocation dependencies of
	the dependencies of the object currently unloaded.
2000-10-24 20:20:37 +00:00
Ulrich Drepper e3e5f6725b Update.
* elf/dl-close.c (_dl_close): Don't free memory for global scope
	list immediately when empty.  Move code to...
	(free_mem): ...here.  Called as part of __libc_subfreeres list.
2000-10-24 19:31:51 +00:00
Ulrich Drepper 2e93b4a4cd Update.
* elf/dl-deps.c (_dl_map_object_deps): Put l_initfini array before
	r_list array in allocated memory.
	* elf/dl-close.c (_dl_close): Optimize access to l_initfini list
	and remove use of r_list.
2000-10-24 19:18:25 +00:00
Ulrich Drepper 8edd917253 Update.
2000-10-24  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-close.c (_dl_close): Use correct list (l_initfini) when
	computing new opencounts.
	* elf/Makefile: Add rules to build and run neededtest3.
	* neededtest3.c: New file.
	* neededobj4.c: New file.

	* elf/neededtest.c (main): Correct tests for failing dlopen.
2000-10-24 17:04:14 +00:00
Ulrich Drepper ef044fc8bf Object for unload testing. 2000-10-24 16:59:10 +00:00
Andreas Jaeger 2c88f87251 Regenerated. 2000-10-24 15:42:04 +00:00
Andreas Jaeger be5dc44cf7 Mention glibc 2.2 caveats. 2000-10-24 15:36:52 +00:00
Ulrich Drepper a51deec480 (main): Correct tests for failing dlopen. 2000-10-24 15:25:53 +00:00
Andreas Jaeger 27f590cefb Update.
2000-10-24  Andreas Jaeger  <aj@suse.de>

	* elf/dl-lookup.c (add_dependency): Remove unused variable j.
2000-10-24 11:17:58 +00:00
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