Ulrich Drepper [Sat, 8 Sep 2001 21:31:59 +0000 (21:31 +0000)]
Update.
2001-09-08 Ben Collins <bcollins@debian.org>
* sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
usage of RESOLVE() (r_type, not reloc->r_type).
Ulrich Drepper [Sat, 8 Sep 2001 20:03:14 +0000 (20:03 +0000)]
Update.
2001-09-08 Ulrich Drepper <drepper@redhat.com>
* elf/dl-object.c: Avoid allocating extra memory block for name.
* elf/dl-close.c (_dl_close): Don't free l_libname if it is no
allocated separately.
* elf/dl-load.c (_dl_map_object_from_fd): Likewise.
Ulrich Drepper [Sat, 8 Sep 2001 17:53:04 +0000 (17:53 +0000)]
Update.
2001-09-08 H.J. Lu <hjl@gnu.org>
* po/zh_TW.po: Fix a typo.
Ulrich Drepper [Sat, 8 Sep 2001 17:45:32 +0000 (17:45 +0000)]
Update.
2001-09-07 Tom Rix <trix@redhat.com>
* sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2001-08-26 Tom Rix <trix@redhat.com>
* sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
command line options.
* sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
* sysdeps/unix/sysv/aix/start.c: Removed.
* sysdeps/unix/sysv/aix/start-libc.c: New file.
* sysdeps/unix/sysv/aix/init-first.c: New file.
* sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2001-09-08 Ben Collins <bcollins@debian.org>
* sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
* sysdeps/generic/dl-machine.h: Likewise.
* sysdeps/hppa/dl-fptr.c: Likewise.
* sysdeps/ia64/dl-fptr.c: Likewise.
* sysdeps/mach/hurd/dl-sysdep.c: Likewise.
* sysdeps/mips/dl-machine.h: Likewise.
* sysdeps/mips/mips64/dl-machine.h: Likewise.
* sysdeps/powerpc/dl-machine.c: Likewise.
2001-09-07 Ben Collins <bcollins@debian.org>
* sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
* sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
* elf/dl-lookup.c (add_dependency): Bump l_opencount of all
dependencies if necessary.
Ulrich Drepper [Sat, 8 Sep 2001 16:27:08 +0000 (16:27 +0000)]
Update.
2001-09-08 Ulrich Drepper <drepper@redhat.com>
* elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
loaded directly) determine length if l_initfini list by iterating
over its elements. Minor optimizations.
* elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
for dependency objects.
If object was already loaded check whether any of the dependencies
is already on the relocation dependency list. If yes, remove the
latter. Minor optimizations.
* elf/dl-lookup.c (add_dependency): Add check for self reference of
maps here. Search l_initfini list only if the object was loaded
directly and not only as a dependency.
(_dl_lookup_symbol): Add relocation dependency also if object
is not in global scope. Remove test for self-reference here.
(_dl_lookup_versioned_symbol): Likewise.
* elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
element of first name record.
* elf/loadtest.c: Add some more test to recognize early if an object
wasn't unloaded.
* elf/Makefile: Add rules to build and run reldep5.
* elf/reldep5.c: New file.
* elf/reldepmod5.c: New file.
* elf/reldepmod6.c: New file.
* elf/reldep2.c: Fix typo.
* elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
Ulrich Drepper [Fri, 7 Sep 2001 07:57:11 +0000 (07:57 +0000)]
Update.
2001-09-07 Ulrich Drepper <drepper@redhat.com>
* include/link.h (struct link_map): Add l_scope_mem and l_scope_max
elements. Change l_scope to be a pointer only.
* elf/dl-object.c (_dl_new_ojbect): Initialize l_scope and l_scope_max.
* elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
here add searchlist of newly open file to the dependency's scope.
* elf/dl-close.c (_dl_close): If dependency is used otherwise remove
only searchlist from its scope. Free own scope array if necessary.
* elf/Makefile (tests): Add dblload and dblunload now.
Ulrich Drepper [Fri, 7 Sep 2001 07:50:47 +0000 (07:50 +0000)]
(struct link_map): Add l_scope_mem and l_scope_max elements. Change l_scope to be a pointer only.
Andreas Jaeger [Thu, 6 Sep 2001 12:53:09 +0000 (12:53 +0000)]
Update.
2001-09-06 Andreas Jaeger <aj@suse.de>
* sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
Stephen L Moshier.
Andreas Jaeger [Thu, 6 Sep 2001 12:53:04 +0000 (12:53 +0000)]
128 bit long double lgamma implementation.
Ulrich Drepper [Thu, 6 Sep 2001 01:03:05 +0000 (01:03 +0000)]
Update.
2001-09-05 Ulrich Drepper <drepper@redhat.com>
* elf/Makefile: Add rules to build new tests. Don't run them yet since
they both fail.
* elf/dblload.c: New file.
* elf/dblloadmod1.c: New file.
* elf/dblloadmod2.c: New file.
* elf/dblloadmod3.c: New file.
* elf/dblunload.c: New file.
Ulrich Drepper [Wed, 5 Sep 2001 04:54:25 +0000 (04:54 +0000)]
Update.
2001-09-04 Richard Henderson <rth@redhat.com>
* elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
(R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
Ulrich Drepper [Wed, 5 Sep 2001 03:42:43 +0000 (03:42 +0000)]
Update.
2001-09-04 Ulrich Drepper <drepper@redhat.com>
Correct very misleading message for error in failed runtime relocation.
* elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
place of the error.
(_dl_signal_cerror): Likewise.
* sysdeps/generic/ldsodefs.h: Adjust prototypes.
* elf/dl-close.c: Likewise.
* elf/dl-deps.c: Likewise.
* elf/dl-load.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-open.c: Likewise.
* elf/dl-reloc.c: Likewise.
* elf/dl-sym.c: Likewise.
* elf/dl-version.c: Likewise.
* sysdeps/generic/dl-sysdep.c: Likewise.
Ulrich Drepper [Wed, 5 Sep 2001 00:26:04 +0000 (00:26 +0000)]
Update.
2001-09-04 Jakub Jelinek <jakub@redhat.com>
* iconv/strtab.c (strtabinit): Initialize null Strent.
(newstring): Move len == 0 handling...
(strtabadd): ...here.
If len == 1, return null Strent.
When inserting a suffix of an existing string, check if
it is not equal to some suffix already recorded.
Copy left and right members over if adding longer string.
2001-09-04 Jakub Jelinek <jakub@redhat.com>
* sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
* sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
(__syscall_gethostname): Add prototype.
Ulrich Drepper [Tue, 4 Sep 2001 07:50:46 +0000 (07:50 +0000)]
Update.
2001-09-04 Ulrich Drepper <drepper@redhat.com>
* elf/dl-object.c (_dl_new_object): Remove unnecessary if.
Ulrich Drepper [Sun, 2 Sep 2001 07:28:54 +0000 (07:28 +0000)]
Update.
2001-09-02 Ulrich Drepper <drepper@redhat.com>
* elf/rtld.c (dl_main): Increment l_opencount for main binary.
Ulrich Drepper [Sun, 2 Sep 2001 07:27:51 +0000 (07:27 +0000)]
(dl_main): Increment l_opencount for main binary.
Roland McGrath [Sat, 1 Sep 2001 21:45:49 +0000 (21:45 +0000)]
* sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
short, copy that much into NAME anyway before returning error.
Roland McGrath [Sat, 1 Sep 2001 21:45:32 +0000 (21:45 +0000)]
2001-08-27 Roland McGrath <roland@frob.com>
* sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
short, copy that much into NAME anyway before returning error.
Ulrich Drepper [Sat, 1 Sep 2001 19:24:55 +0000 (19:24 +0000)]
Update.
2001-09-01 Richard Henderson <rth@redhat.com>
* sysdeps/alpha/elf/Dist: Remove file.
* sysdeps/alpha/elf/Makefile: Remove file.
* sysdeps/alpha/elf/crtbegin.S: Remove file.
* sysdeps/alpha/elf/crtend.S: Remove file.
* sysdeps/alpha/elf/initfini.c: New file.
2001-09-01 Mark Kettenis <kettenis@gnu.org>
* iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
* iconv/tst-iconv3.c: Likewise.
2001-09-01 Jakub Jelinek <jakub@redhat.com>
* sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
handle it like 'I' for symmetry with strftime.
Ulrich Drepper [Sat, 1 Sep 2001 19:03:22 +0000 (19:03 +0000)]
Update.
2001-09-01 Ulrich Drepper <drepper@redhat.com>
* iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
export it.
* iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
* iconv/iconv_prog.c (insert_cache): New function.
(print_known_names): If cache is used call insert_cache to use the
information from the cache [PR libc/2509].
Ulrich Drepper [Sat, 1 Sep 2001 06:22:57 +0000 (06:22 +0000)]
Update.
2001-08-31 Ulrich Drepper <drepper@redhat.com>
* time/strptime.c (strptime_internal): Recognize 'l' format and
handle it like 'I' for symmatry with strftime.
Ulrich Drepper [Sat, 1 Sep 2001 06:10:36 +0000 (06:10 +0000)]
Update.
2001-08-31 Richard Henderson <rth@redhat.com>
* elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
(HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
* elf/rtld.c (HP_TIMING_AVAIL): Likewise.
(print_statistics): Make scalar unsigned long long.
* sysdeps/alpha/hp-timing.h: New file.
2001-08-31 Jakub Jelinek <jakub@redhat.com>
* stdio-common/perror.c (perror): Save errno early, pass it
down to perror_internal.
(perror_internal): Add errnum argument.
2001-08-31 Jakub Jelinek <jakub@redhat.com>
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
Don't add old memory content for R_ALPHA_REFQUAD.
Ulrich Drepper [Fri, 31 Aug 2001 01:46:47 +0000 (01:46 +0000)]
Update.
* crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
memory correctly.
Ulrich Drepper [Thu, 30 Aug 2001 23:25:18 +0000 (23:25 +0000)]
Update.
* sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
instead of open, __close instead of close, __getpagesize instead
of getpagesize.
R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
Ulrich Drepper [Thu, 30 Aug 2001 23:22:02 +0000 (23:22 +0000)]
Update.
2001-08-30 Ulrich Drepper <drepper@redhat.com>
* string/argz-stringify.c (__argz_stringify): Use __strnlen
instead of strnlen.
* include/string.h (strndupa): Redefine here to use __strnlen
instead of strnlen.
* string/strndup.c (__strndup): Use __strnlen not strnlen.
* misc/syslog.c (vsyslog): Fix typo in last change (connect ->
connected).
Ulrich Drepper [Thu, 30 Aug 2001 23:09:38 +0000 (23:09 +0000)]
Update.
2001-08-30 Jakub Jelinek <jakub@redhat.com>
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only
check for rtld map if RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
* sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
Ulrich Drepper [Thu, 30 Aug 2001 20:23:15 +0000 (20:23 +0000)]
Update.
2001-08-30 Ulrich Drepper <drepper@redhat.com>
* sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
Ulrich Drepper [Thu, 30 Aug 2001 20:04:34 +0000 (20:04 +0000)]
Adjust j0 ULPs.
Andreas Jaeger [Thu, 30 Aug 2001 11:26:11 +0000 (11:26 +0000)]
Update.
2001-08-30 Andreas Jaeger <aj@suse.de>
* sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
contributed Stephen L Moshier.
Andreas Jaeger [Thu, 30 Aug 2001 11:16:00 +0000 (11:16 +0000)]
128-bit long double Bessel functions jn and yn.
Ulrich Drepper [Thu, 30 Aug 2001 08:27:57 +0000 (08:27 +0000)]
Update.
2001-08-30 Jakub Jelinek <jakub@redhat.com>
* sunrpc/etc.rpc (sgi_fam): Add.
Ulrich Drepper [Thu, 30 Aug 2001 08:20:13 +0000 (08:20 +0000)]
Update.
2001-08-30 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
Ulrich Drepper [Thu, 30 Aug 2001 02:13:26 +0000 (02:13 +0000)]
Update.
2001-08-29 Ulrich Drepper <drepper@redhat.com>
* spinlock.c (__pthread_lock): Top max_count value with
MAX_ADAPTIVE_SPIN_COUNT.
* internals.h (MAX_ADAPTIVE_SPIN_COUNT): Define if not already done.
* sysdeps/i386/i686/pt-machine.h (BUSY_WAIT_NOP): New macro to
help P4.
Ulrich Drepper [Wed, 29 Aug 2001 23:31:38 +0000 (23:31 +0000)]
Update.
2001-08-29 Ulrich Drepper <drepper@redhat.com>
* nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
first is from a previous call.
Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2001-08-29 Andreas Schwab <schwab@suse.de>
* sysdeps/ia64/fpu/libm-test-ulps: Updated.
2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* config.make.in (INSTALL_SCRIPT): Define.
* Makeconfig (INSTALL_SCRIPT): Define.
* Makerules (do-install-script): New macro to install scripts using
INSTALL_SCRIPT.
(install-bin-script): New rule to install scripts with
do-install-script.
(install-bin-script-nosubdir): New rule.
(install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
(distinfo-vars): Add $(install-bin-script).
* Rules (others): Likewise.
* Makefile (glibcbug): Install with install-bin-script.
* debug/Makefile (xtrace): Likewise.
(catchsegv): Likewise.
* elf/Makefile (ldd): Likewise.
* malloc/Makefile (mtrace): Likewise.
* timezone/Makefile (tzselect): Likewise.
2001-08-29 H.J. Lu <hjl@gnu.org>
* sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
_dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
Ulrich Drepper [Wed, 29 Aug 2001 22:43:27 +0000 (22:43 +0000)]
(INSTALL_SCRIPT): Define.
Andreas Schwab [Wed, 29 Aug 2001 21:13:03 +0000 (21:13 +0000)]
* sysdeps/m68k/fpu/libm-test-ulps: Updated.
Andreas Schwab [Wed, 29 Aug 2001 21:12:09 +0000 (21:12 +0000)]
Updated.
Ulrich Drepper [Wed, 29 Aug 2001 18:48:49 +0000 (18:48 +0000)]
(__dl_runtime_resolve): Pass ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
Ulrich Drepper [Wed, 29 Aug 2001 18:45:03 +0000 (18:45 +0000)]
Update.
2001-08-28 H.J. Lu <hjl@gnu.org>
* Makeconfig (combreloc-LDFLAGS): New variable.
Add it to LDFALGS.so, LDFLAGS-rtld, and +link.
* config.make.in (have-z-combreloc): New variable.
* configure.in: Substitute libc_cv_z_combreloc.
* iconv/strtab.c (searchstring): Use correct length for comparison.
Ulrich Drepper [Wed, 29 Aug 2001 08:07:47 +0000 (08:07 +0000)]
Update.
* po/da.po: Likewise.
Ulrich Drepper [Wed, 29 Aug 2001 08:06:33 +0000 (08:06 +0000)]
Update.
2001-08-29 Ulrich Drepper <drepper@redhat.com>
* po/sv.po: Update from translation team.
* po/fr.po: Likewise.
Andreas Jaeger [Wed, 29 Aug 2001 07:23:19 +0000 (07:23 +0000)]
Fix typo.
2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* Makerules: Fix a typo: MD% -> MD5.
Ulrich Drepper [Tue, 28 Aug 2001 09:19:58 +0000 (09:19 +0000)]
Update.
2001-08-28 Ulrich Drepper <drepper@redhat.com>
* sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
Ulrich Drepper [Tue, 28 Aug 2001 09:17:24 +0000 (09:17 +0000)]
(pargdef): Function must take pointer to object.
Andreas Jaeger [Tue, 28 Aug 2001 08:06:07 +0000 (08:06 +0000)]
Update.
2001-08-28 Andreas Jaeger <aj@suse.de>
* manual/libc-texinfo.sh: Add entry about free manuals.
* manual/contrib.texi (Contributors): Fix cross reference.
* manual/libc.texinfo (Copying): Include freemanuals.
* manual/Makefile (appendices): Add freemanuals.
* manual/freemanuals.texi: New file.
Patch by Brian Youmans <3diff@gnu.org>.
* manual/libm-err-tab.pl: Pretty print more platforms, print a
smaller table.
* manual/math.texi (Errors in Math Functions): Fix grammar, start
table on separate page.
Patch by Brian Youmans <3diff@gnu.org>.
Andreas Jaeger [Tue, 28 Aug 2001 08:05:41 +0000 (08:05 +0000)]
* manual/libc-texinfo.sh: Add entry about free manuals.
* manual/contrib.texi (Contributors): Fix cross reference.
* manual/libc.texinfo (Copying): Include freemanuals.
* manual/Makefile (appendices): Add freemanuals.
* manual/freemanuals.texi: New file.
Patch by Brian Youmans <3diff@gnu.org>.
* manual/libm-err-tab.pl: Pretty print more platforms, print a
smaller table.
* manual/math.texi (Errors in Math Functions): Fix grammar, start
table on separate page.
Patch by Brian Youmans <3diff@gnu.org>.
Ulrich Drepper [Tue, 28 Aug 2001 04:52:25 +0000 (04:52 +0000)]
Update.
2001-08-27 Ulrich Drepper <drepper@redhat.com>
* misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
the connection went down after we first used it try to connect
again and resend the message before printing to the console.
Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2001-08-27 Jakub Jelinek <jakub@redhat.com>
* string/tst-strlen.c (main): Test strnlen (, -1) too.
* sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
bit set.
2001-08-27 Ulrich Drepper <drepper@redhat.com>
* iconv/strtab.c (searchstring): Use correct length for
comparison.
(strtabadd): Account total size correct if new string has old string as
substring.
Ulrich Drepper [Mon, 27 Aug 2001 17:17:42 +0000 (17:17 +0000)]
Update.
2001-08-27 Jakub Jelinek <jakub@redhat.com>
* elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
Ulrich Drepper [Mon, 27 Aug 2001 16:21:32 +0000 (16:21 +0000)]
(dl_main): Update call to _dl_lookup_symbol.
Andreas Jaeger [Mon, 27 Aug 2001 13:55:20 +0000 (13:55 +0000)]
Update.
2001-08-27 Andreas Jaeger <aj@suse.de>
* sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
* math/libm-test.inc (j0_test): Add extra tests.
* sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
not x, in Hankel approximation.
Patches by Stephen L Moshier.
Andreas Jaeger [Mon, 27 Aug 2001 13:55:13 +0000 (13:55 +0000)]
* sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
* math/libm-test.inc (j0_test): Add extra tests.
* sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
not x, in Hankel approximation.
Patches by Stephen L Moshier.
Ulrich Drepper [Mon, 27 Aug 2001 05:32:49 +0000 (05:32 +0000)]
Update.
2001-08-26 Jakub Jelinek <jakub@redhat.com>
* sysdeps/pthread/bits/libc-lock.h (__libc_lock_t): Define
non-opaque lock types also if _IO_MTSAFE_IO is defined.
Ulrich Drepper [Mon, 27 Aug 2001 00:59:51 +0000 (00:59 +0000)]
Update.
* sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
link_map.
Ulrich Drepper [Mon, 27 Aug 2001 00:45:49 +0000 (00:45 +0000)]
Update.
* configure.in: Fix test for .rela.dyn section.
Ulrich Drepper [Mon, 27 Aug 2001 00:19:07 +0000 (00:19 +0000)]
Update.
2001-08-26 Ulrich Drepper <drepper@redhat.com>
* elf/dl-runtime.c: Update calls to _dl_lookup_*.
Ulrich Drepper [Sun, 26 Aug 2001 22:28:16 +0000 (22:28 +0000)]
Update.
2001-08-26 Jakub Jelinek <jakub@redhat.com>
* elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
Pass type_class to _dl_lookup_*.
* elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
Pass around just type_class instead of noexec, noplt pair.
(_dl_lookup_versioned_symbol): Likewise.
(_dl_lookup_symbol_skip): Pass around just type_class instead of
noexec, noplt pair.
(_dl_lookup_versioned_symbol_skip): Likewise.
(_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
* elf/do-lookup.h (do_lookup): Likewise.
* include/link.h (struct link_map): Replace noexec and noplt fields
in l_lookup_cache with type_class field.
* sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
ELF_RTYPE_CLASS_COPY): Define.
Adjust prototypes for _dl_lookup_symbol and
_dl_lookup_versioned_symbol.
* sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
elf_machine_lookup_noexec_p): Remove.
(elf_machine_type_class): Define.
* sysdeps/arm/dl-machine.h: Likewise.
* sysdeps/hppa/dl-machine.h: Likewise.
* sysdeps/cris/dl-machine.h: Likewise.
* sysdeps/i386/dl-machine.h: Likewise.
* sysdeps/ia64/dl-machine.h: Likewise.
* sysdeps/m68k/dl-machine.h: Likewise.
* sysdeps/mips/mips64/dl-machine.h: Likewise.
* sysdeps/mips/dl-machine.h: Likewise.
* sysdeps/powerpc/dl-machine.h: Likewise.
* sysdeps/sparc/sparc32/dl-machine.h: Likewise.
* sysdeps/sparc/sparc64/dl-machine.h: Likewise.
* sysdeps/sh/dl-machine.h: Likewise.
* sysdeps/s390/s390-32/dl-machine.h: Likewise.
* sysdeps/s390/s390-64/dl-machine.h: Likewise.
Ulrich Drepper [Sun, 26 Aug 2001 17:37:42 +0000 (17:37 +0000)]
Update.
* manual/message.texi (Advanced gettext functions): Change
description of plural forms for Slovak.
Reported by Marcel Telka <marcel@telka.sk>.
* manuaL/time.texi (Low-Level Time String Parsing): Fix description of
%z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2001-08-26 Jakub Jelinek <jakub@redhat.com>
* sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
typo. Patch by Florian La Roche <laroche@redhat.com>.
2001-08-26 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Sun, 26 Aug 2001 10:50:26 +0000 (10:50 +0000)]
Update.
* include/link.h (struct link_map): Add l_lookup_cache element.
* elf/dl-reloc.c (RESOLVE): Add symbol caching here.
(RESOLVE_MAP): Likewise.
(_dl_relocate_object): Remove cache initialization.
* elf/dl-lookup.c: Rip out cache handling code.
* sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
declarations.
* elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
remove some __builtin_expect.
(_dl_lookup_versioned_symbol): Likewise.
R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
case to almost no code.
Ulrich Drepper [Sun, 26 Aug 2001 09:17:23 +0000 (09:17 +0000)]
Update.
2001-08-26 Ulrich Drepper <drepper@redhat.com>
* config.h.in: Add HAVE_Z_COMBRELOC.
* configure.in: Add test for -z combreloc.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
R_386_RELATIVE handling for ld.so startup.
Ulrich Drepper [Sun, 26 Aug 2001 08:15:36 +0000 (08:15 +0000)]
Update.
* sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
Likewise.
* sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
Likewise.
Ulrich Drepper [Sat, 25 Aug 2001 20:26:59 +0000 (20:26 +0000)]
Update.
2001-08-25 Ulrich Drepper <drepper@redhat.com>
* po/tr.po: Update from translation team.
Ulrich Drepper [Sat, 25 Aug 2001 20:25:55 +0000 (20:25 +0000)]
Update from translation team.
Andreas Jaeger [Sat, 25 Aug 2001 16:19:22 +0000 (16:19 +0000)]
Update.
2001-08-24 Andreas Jaeger <aj@suse.de>
* iconv/Makefile (extra-objs): Add iconvconfig-modules so that
make clean works.
Andreas Jaeger [Sat, 25 Aug 2001 16:19:15 +0000 (16:19 +0000)]
(extra-objs): Add iconvconfig-modules so that make clean works.
Ulrich Drepper [Sat, 25 Aug 2001 06:33:07 +0000 (06:33 +0000)]
Update.
2001-08-24 Ulrich Drepper <drepper@redhat.com>
* elf/rtld.c (print_statistics): Printf % after percent values.
* elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
* elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
don't have to compute the hash value and initialize current_value.
Move reference_name variable to where it is needed.
(_dl_lookup_versioned_symbol): Likewise.
Ulrich Drepper [Sat, 25 Aug 2001 06:15:27 +0000 (06:15 +0000)]
(_dl_lookup_symbol): If we use the cache we don't have to compute the hash value and initialize current_value. Move reference_name variable to where it is needed. (_dl_lookup_versioned_symbol): Likewise.
Roland McGrath [Fri, 24 Aug 2001 23:51:15 +0000 (23:51 +0000)]
* string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
Just test that strerror returns non-null for a few errno codes.
Roland McGrath [Fri, 24 Aug 2001 21:47:53 +0000 (21:47 +0000)]
* hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
_hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
* sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
* mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
__mach_reply_port.
Roland McGrath [Fri, 24 Aug 2001 21:47:43 +0000 (21:47 +0000)]
2001-08-23 Roland McGrath <roland@frob.com>
* mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
__mach_reply_port.
Ulrich Drepper [Fri, 24 Aug 2001 20:38:43 +0000 (20:38 +0000)]
Update.
* nss/test-netdb.c (test_hosts): Don't segfault if gethostname
returns NULL.
Ulrich Drepper [Fri, 24 Aug 2001 19:56:19 +0000 (19:56 +0000)]
Update.
* elf/rtld.c: Include <sys/param.h>.
* elf/dl-reloc.c: Likewise.
Ulrich Drepper [Fri, 24 Aug 2001 18:46:40 +0000 (18:46 +0000)]
Update.
2001-08-24 Ulrich Drepper <drepper@redhat.com>
* elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
doesn't do it.
Ulrich Drepper [Fri, 24 Aug 2001 18:45:23 +0000 (18:45 +0000)]
(elf_dynamic_do_rel): Fix problem with ld.so startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc doesn't do it.
Andreas Jaeger [Fri, 24 Aug 2001 18:29:20 +0000 (18:29 +0000)]
Update.
2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
empty to prevent junk from being generated.
* sysdeps/unix/sysv/linux/mips/configure: Regenerated.
Andreas Jaeger [Fri, 24 Aug 2001 18:27:55 +0000 (18:27 +0000)]
2001-08-24 Maciej W. Rozycki macro@ds2.pg.gda.pl
* sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
empty to prevent junk from being generated.
sysdeps/unix/sysv/linux/mips/configure: Regenerated.
Ulrich Drepper [Fri, 24 Aug 2001 17:18:04 +0000 (17:18 +0000)]
Update.
* elf/do-rel.h (elf_dynamic_do_rel) [RTLD_BOOTSTRAP]: Disable use of
RELCOUNT for now until we know what is wrong with it.
2001-08-24 Jakub Jelinek <jakub@redhat.com>
* elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
records. Rename endrel to relative, initialize it to r, and use it
in elf_machine_rel_relative calls. Point r after relative relocs.
2001-08-24 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Fri, 24 Aug 2001 15:12:38 +0000 (15:12 +0000)]
Update.
2001-08-24 Ulrich Drepper <drepper@redhat.com>
* sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
of R_386_NONE.
Ulrich Drepper [Fri, 24 Aug 2001 14:58:03 +0000 (14:58 +0000)]
Update.
2001-08-24 Jakub Jelinek <jakub@redhat.com>
* elf/do-rel.h (elf_machine_rel_relative): Define for rela if
necessary. Undefine newly defined macros at the end.
* sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
Rename from elf_machine_rel_relative.
* sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
* sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
* sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
* sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
Fix argument types.
* sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
Fix argument types.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
Likewise. Fix argument types.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
Likewise. Fix argument types.
* sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
Fix argument types.
* sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
ElfW(Rel) in argument.
* sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
function.
Ulrich Drepper [Fri, 24 Aug 2001 14:20:11 +0000 (14:20 +0000)]
Update.
2001-08-24 Alexandre Oliva <aoliva@redhat.com>
* sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
* elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
first if RELCOUNT is set.
Ulrich Drepper [Fri, 24 Aug 2001 13:56:33 +0000 (13:56 +0000)]
(elf_dynamic_do_rel): RELATIVE relocations comes first if RELCOUNT is set.
Andreas Jaeger [Fri, 24 Aug 2001 13:17:54 +0000 (13:17 +0000)]
Update.
2001-08-24 Andreas Jaeger <aj@suse.de>
* sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
Stephen L Moshier <moshier@mediaone.net>.
Andreas Jaeger [Fri, 24 Aug 2001 13:17:46 +0000 (13:17 +0000)]
j1l/y1l implementation.
Ulrich Drepper [Fri, 24 Aug 2001 08:53:35 +0000 (08:53 +0000)]
Update.
2001-08-24 Ulrich Drepper <drepper@redhat.com>
* elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
call elf_machine_rel for the last DT_RELCOUNT relocations but instead
elf_machine_rel_relative.
* sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
Minor optimizations.
* sysdeps/arm/dl-machine.h: Likewise.
* sysdeps/cris/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/powerpc/dl-machine.h: Likewise.
* sysdeps/s390/s390-32/dl-machine.h: Likewise.
* sysdeps/s390/s390-64/dl-machine.h: Likewise.
* sysdeps/sh/dl-machine.h: Likewise.
* sysdeps/sparc/sparc32/dl-machine.h: Likewise.
* sysdeps/sparc/sparc64/dl-machine.h: Likewise.
Ulrich Drepper [Fri, 24 Aug 2001 08:40:21 +0000 (08:40 +0000)]
(elf_dynamic_do_rel): If not relocating lazily, don't call elf_machine_rel for the last DT_RELCOUNT relocations but instead elf_machine_rel_relative.
Roland McGrath [Fri, 24 Aug 2001 05:07:37 +0000 (05:07 +0000)]
* rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
Roland McGrath [Fri, 24 Aug 2001 03:25:40 +0000 (03:25 +0000)]
* sysdeps/generic/bits/libc-lock.h: Same changes.
Roland McGrath [Fri, 24 Aug 2001 03:21:51 +0000 (03:21 +0000)]
* sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
sysdeps/mach version. Implement counting ("recursive") mutexes
on top of cthreads mutexes.
* sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
* sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
_LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
(__libc_cleanup_region_start, __libc_cleanup_region_end,
__libc_clean_end): Define these to call the cleanup function after
normal exit when they're supposed to.
* sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
Take new first arg DOIT, a boolean saying whether to really install
any cleanup handler.
(__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
(__libc_cleanup_end): Likewise.
* stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
* stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
* sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
Likewise.
* misc/syslog.c (vsyslog, openlog, closelog): Likewise.
* sysdeps/generic/bits/stdio-lock.h
(_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
Roland McGrath [Fri, 24 Aug 2001 03:20:56 +0000 (03:20 +0000)]
2001-08-23 Roland McGrath <roland@frob.com>
* sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
_LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
(__libc_cleanup_region_start, __libc_cleanup_region_end,
__libc_clean_end): Define these to call the cleanup function after
normal exit when they're supposed to.
* sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
Take new first arg DOIT, a boolean saying whether to really install
any cleanup handler.
(__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
(__libc_cleanup_end): Likewise.
* stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
* stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
* sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
Likewise.
* misc/syslog.c (vsyslog, openlog, closelog): Likewise.
* sysdeps/generic/bits/stdio-lock.h
(_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
Ulrich Drepper [Thu, 23 Aug 2001 23:40:28 +0000 (23:40 +0000)]
(print_statistics): Nicer format for cache hit output.
Ulrich Drepper [Thu, 23 Aug 2001 23:36:47 +0000 (23:36 +0000)]
Update.
2001-08-23 Jakub Jelinek <jakub@redhat.com>
* elf/ldconfig.c (search_dir): Remove stale symlinks.
2001-08-23 Jakub Jelinek <jakub@redhat.com>
* elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
(_dl_lookup_symbol): Lookup relocations in cache and store successfull
lookups in cache.
(_dl_lookup_versioned_symbol): Likewise.
* elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
relocation lookup.
* elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
* sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
(lookup_cache, lookup_cache_versioned): Add declarations.
2001-08-23 Ulrich Drepper <drepper@redhat.com>
* stdlib/tst-random.c (main): Swap parameters in fail call.
Patch by Pete Bevin <pete@petebevin.com>.
2001-08-23 Jakub Jelinek <jakub@redhat.com>
* sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
* malloc/obstack.c: Indent preprocessor directives.
Patch by Jim Meyering <meyering@ascend.com>.
Ulrich Drepper [Thu, 23 Aug 2001 16:28:34 +0000 (16:28 +0000)]
Update.
2001-08-23 Ulrich Drepper <drepper@redhat.com>
* po/ja.po: Update from translation team.
Ulrich Drepper [Thu, 23 Aug 2001 16:26:26 +0000 (16:26 +0000)]
Update from translation team.
Roland McGrath [Thu, 23 Aug 2001 08:36:47 +0000 (08:36 +0000)]
* libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
* nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
Roland McGrath [Thu, 23 Aug 2001 06:03:42 +0000 (06:03 +0000)]
* sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
__libc_lock_define_recursive.
* elf/dl-open.c: Don't declare it here any more.
* elf/dl-close.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-iteratephdr.c: Likewise.
* elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
__libc_lock_unlock_recursive.
* elf/dl-close.c (_dl_close): Likewise
* elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
* elf/dl-open.c (_dl_open): Likewise
* sysdeps/generic/bits/libc-lock.h
(__libc_lock_define_recursive): New macro.
* sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
(_IO_lock_lock): Use __libc_lock_lock_recursive.
(_IO_lock_unlock): Use __libc_lock_unlock_recursive.
Roland McGrath [Thu, 23 Aug 2001 04:34:57 +0000 (04:34 +0000)]
* conform/conformtest.pl (checknamespace): Sort the output list.
* sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
(POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
definitions conditional on [__USE_XOPEN].
* sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
these unconditionally, not only use [__USE_BSD], so as to match
the sysdeps/unix/sysv/linux files.
Roland McGrath [Thu, 23 Aug 2001 04:34:36 +0000 (04:34 +0000)]
2001-08-22 Roland McGrath <roland@frob.com>
* conform/conformtest.pl (checknamespace): Sort the output list.
Ulrich Drepper [Thu, 23 Aug 2001 04:17:06 +0000 (04:17 +0000)]
Update.
2001-08-22 Ulrich Drepper <drepper@redhat.com>
* test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
avoid warnings.
* dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
DL_LOOKUP_ADDRESS.
Ulrich Drepper [Thu, 23 Aug 2001 04:01:56 +0000 (04:01 +0000)]
(do_test): Get address of ref1 using DL_LOOKUP_ADDRESS.
Roland McGrath [Thu, 23 Aug 2001 03:08:40 +0000 (03:08 +0000)]
* sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
conditionalization of sa_handler/sa_sigaction member types to
match the sysdeps/unix/sysv/linux file.
Roland McGrath [Thu, 23 Aug 2001 03:07:50 +0000 (03:07 +0000)]
2001-08-22 Roland McGrath <roland@frob.com>
* sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
conditionalization of sa_handler/sa_sigaction member types to
match the sysdeps/unix/sysv/linux file.