platform/upstream/glibc.git
22 years agoUpdate.
Ulrich Drepper [Mon, 11 Feb 2002 06:09:47 +0000 (06:09 +0000)]
Update.

* elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.

22 years agoUpdate.
Ulrich Drepper [Mon, 11 Feb 2002 06:00:19 +0000 (06:00 +0000)]
Update.

* elf/tst-tls3.c: New file.
* elf/tst-tlsmod1.c: New file.
* elf/Makefile: Add rules to build and run tst-tls3.

* sysdeps/i386/dl-machine.h: Include <tls.h>.
(elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
TLS relocations.

22 years agoUpdate.
Ulrich Drepper [Mon, 11 Feb 2002 02:27:43 +0000 (02:27 +0000)]
Update.

* elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.

22 years agoUpdate.
Ulrich Drepper [Mon, 11 Feb 2002 01:49:22 +0000 (01:49 +0000)]
Update.

* po/fr.po: Update from translation team.

* elf/tls-macros.h: Add alternative macros for use in PIC.

22 years agoUpdate.
Ulrich Drepper [Mon, 11 Feb 2002 01:30:15 +0000 (01:30 +0000)]
Update.

* elf/dl-lookup.c: Include <tls.h>.
* elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.

22 years agoUpdate.
Ulrich Drepper [Mon, 11 Feb 2002 00:57:37 +0000 (00:57 +0000)]
Update.

* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
required by passing pointer to last element of the list.

* elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
l_tls_initimage to a place where it actually is performed.

* elf/tls-macros.h: ...here.  New file.

22 years agoUpdate.
Ulrich Drepper [Sun, 10 Feb 2002 23:36:05 +0000 (23:36 +0000)]
Update.

* sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
after globfree() calls.

22 years agoUpdate.
Ulrich Drepper [Sun, 10 Feb 2002 22:40:17 +0000 (22:40 +0000)]
Update.

* elf/dl-deps.c (struct openaux_args): Add open_mode element.
(openaux): Pass open_mode as new last argument to _dl_map_object.
(_dl_map_object_deps): Add new argument open_mode.  Initialize
open_mode element of args variable with it.
* elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
_dl_map_object_deps.
* elf/rtld.c (dl_main): Add zero as last parameter to
_dl_map_object_deps call.
* sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
* elf/nodlopen2.c: New file.
* elf/nodlopenmod2.c: New file.
* elf/Makefile: Add rules to build and run nodlopen2.

* elf/tls-macros.hgg: ...here.  New file.
2002-02-08  Richard Henderson  <rth@redhat.com>

22 years agoUpdate.
Ulrich Drepper [Sun, 10 Feb 2002 18:58:00 +0000 (18:58 +0000)]
Update.

* elf/tst-tls1.c: Move TLS helper macros to...
* elf/tls-macros.h: ...here.  New file.
* elf/tst-tls2.c: New file.
* elf/Makefile (tests): Add tst-tls2.
(distribute): Add tls-macros.h.

22 years agoUpdate.
Ulrich Drepper [Sun, 10 Feb 2002 18:32:43 +0000 (18:32 +0000)]
Update.

* po/sv.po: Update from translation team.

22 years agoUpdate.
Ulrich Drepper [Sun, 10 Feb 2002 09:15:59 +0000 (09:15 +0000)]
Update.

* elf/tst-tls1.c (main): Add complete set of tests.  Split
architecture specific definitions from the actual test code.

22 years agoUpdate.
Ulrich Drepper [Sun, 10 Feb 2002 08:34:20 +0000 (08:34 +0000)]
Update.

2002-02-10  Ulrich Drepper  <drepper@redhat.com>

* po/tr.po: Update from translation team.

22 years agoUpdate.
Ulrich Drepper [Sun, 10 Feb 2002 07:44:36 +0000 (07:44 +0000)]
Update.

* elf/Makefile (tests): Add tst-tls1.
* elf/tst-tls1.c: New file.

* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
alignment of TCB for now.

* elf/rtld.c (dl_main): Use p_vaddr as address of TLS
initialization image for the application itself.

loop to initialize TLS block.

22 years agoUpdate.
Ulrich Drepper [Sat, 9 Feb 2002 19:02:31 +0000 (19:02 +0000)]
Update.

2002-02-09  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
loop to initial TLS block.

* csu/version.c (banner): If TLS support is available say so.

22 years agoUpdate.
Ulrich Drepper [Sat, 9 Feb 2002 06:13:03 +0000 (06:13 +0000)]
Update.

2002-02-08  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/i386/tls.h (TLS_INIT_TP): Also initialize %gs.

22 years agoUpdate.
Ulrich Drepper [Sat, 9 Feb 2002 01:59:10 +0000 (01:59 +0000)]
Update.

2002-02-08  Richard Henderson  <rth@twiddle.net>
* sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.

22 years agoUpdate.
Ulrich Drepper [Sat, 9 Feb 2002 01:54:57 +0000 (01:54 +0000)]
Update.

2002-02-09  Richard Henderson  <rth@twiddle.net>

* sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
_dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.

2002-02-09  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.

* po/ca.po: Update from translation team.
* po/sk.po: Likewise.

22 years agoUpdate.
Ulrich Drepper [Sat, 9 Feb 2002 01:41:44 +0000 (01:41 +0000)]
Update.

2002-02-08  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (_dl_start_final): Install DTV explicitly.
(dl_main): Move dtv/static TLS handling before relocation.
Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
TLS_INIT_TP to allocate and install the dtv/static TLS block.
* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
so far uses TLS initialize GL(dl_tls_static_size) and
GL(dl_tls_static_align) to account for the TCB.
(_dl_allocate_tls): New function.
* sysdeps/generic/ldsodefs.h (rtld_global): Add
_dl_initial_dtv_malloced.

* configure.in: Test for __builtin_memset more realistically.

* csu/version.c (banner): If TLS support available say so.

22 years ago(banner): If TLS support available say so.
Ulrich Drepper [Sat, 9 Feb 2002 01:29:45 +0000 (01:29 +0000)]
(banner): If TLS support available say so.

22 years agoUpdate.
Andreas Jaeger [Fri, 8 Feb 2002 18:57:15 +0000 (18:57 +0000)]
Update.

2002-02-04  H.J. Lu  <hjl@gnu.org>

* sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
__attribute_used__.
(__dl_runtime_resolve): Likewise.

* sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
declaration.

22 years agoUpdate.
Andreas Jaeger [Fri, 8 Feb 2002 16:21:13 +0000 (16:21 +0000)]
Update.

2001-11-15  H.J. Lu  <hjl@gnu.org>

* sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
<signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.

* sysdeps/unix/sysv/linux/mips/sys/user.h: New.

22 years ago* sysdeps/mips/atomicity.h (compare_and_swap): Remove
Andreas Jaeger [Fri, 8 Feb 2002 16:15:43 +0000 (16:15 +0000)]
* sysdeps/mips/atomicity.h (compare_and_swap): Remove

".set noreorder".
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
Likewise.

22 years ago* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Silence the
Andreas Jaeger [Fri, 8 Feb 2002 16:14:43 +0000 (16:14 +0000)]
* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Silence the

gcc warning.
(__pthread_spin_lock): Remove ".set noreorder".
* sysdeps/mips/pt-machine.h (__compare_and_swap): Liekwise.
2002-02-07  H.J. Lu  <hjl@gnu.org>

* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Silence the
gcc warning.
(__pthread_spin_lock): Remove ".set noreorder".
* sysdeps/mips/pt-machine.h (__compare_and_swap): Liekwise.

22 years agoUpdate.
Ulrich Drepper [Fri, 8 Feb 2002 07:50:07 +0000 (07:50 +0000)]
Update.

* sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.

22 years agoUpdate.
Ulrich Drepper [Fri, 8 Feb 2002 06:24:57 +0000 (06:24 +0000)]
Update.

* sysdeps/i386/dl-tls.h (__tls_get_addr): Call
___tls_get_addr_internal.
(___tls_get_addr_internal): Define as alias for ___tls_get_addr.

22 years agoUpdate.
Ulrich Drepper [Fri, 8 Feb 2002 05:03:57 +0000 (05:03 +0000)]
Update.

2002-02-07  Ulrich Drepper  <drepper@redhat.com>

* po/ko.po: Update from translation team.

22 years agoUpdate.
Ulrich Drepper [Fri, 8 Feb 2002 04:59:15 +0000 (04:59 +0000)]
Update.

2002-02-07  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
attribute, change __pad{1,2} type to unsigned int.
(struct stat64): Remove packed attribute.

22 years agoUpdate.
Ulrich Drepper [Thu, 7 Feb 2002 18:04:59 +0000 (18:04 +0000)]
Update.

2002-02-07  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.

22 years agoUpdate.
Ulrich Drepper [Thu, 7 Feb 2002 17:54:45 +0000 (17:54 +0000)]
Update.

2002-02-07  Andreas Schwab  <schwab@suse.de>

* configure.in: Fix check for -zcombreloc.

2002-02-06  H.J. Lu  <hjl@gnu.org>

* config.h.in (HAVE_BUILTIN_MEMSET): New.
* configure.in: Check if __builtin_memset really works.
* elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
__GNUC_PREREQ (2, 96) before using __builtin_memset.

2002-02-06  Jakub Jelinek  <jakub@redhat.com>

* io/bug-ftw3.c (main): Don't try the test if root.

2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
constraints.
* sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
a weak alias for __clone.
* sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
* sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
* sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
* sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
a weak alias for __mmap64.

* sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
* sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.

22 years agoDon't read TLS header if TLS is not needed.
Ulrich Drepper [Thu, 7 Feb 2002 17:29:14 +0000 (17:29 +0000)]
Don't read TLS header if TLS is not needed.

22 years ago* sysdeps/mips/atomicity.h (exchange_and_add): Not use branch
Andreas Jaeger [Thu, 7 Feb 2002 10:40:03 +0000 (10:40 +0000)]
* sysdeps/mips/atomicity.h (exchange_and_add): Not use branch

likely.
(atomic_add): Likewise.
(compare_and_swap): Likewise.
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
Likewise.

22 years agoDo not use branch likely.
Andreas Jaeger [Thu, 7 Feb 2002 10:39:07 +0000 (10:39 +0000)]
Do not use branch likely.

2002-02-05  H.J. Lu  <hjl@gnu.org>

* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Not use
branch likely.
* sysdeps/mips/pt-machine.h (testandset): Likewise.
(__compare_and_swap): Likewise.

>>>>>>> 1.469

22 years agoUpdate.
Ulrich Drepper [Thu, 7 Feb 2002 08:44:37 +0000 (08:44 +0000)]
Update.

2002-02-07  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
alignment of the TCB and store total size and alignment of static
TLS block in _dl_tls_static_size and _dl_tls_static_align.
tls_index is a typedef.
* sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
_dl_tls_static_align.
* sysdeps/i386/dl-tls.h: tls_index is a typedef.
* elf/dl-support.c: Define _dl_tls_static_size and
_dl_tls_static_align.

22 years agoUpdate.
Ulrich Drepper [Thu, 7 Feb 2002 06:38:57 +0000 (06:38 +0000)]
Update.

2002-02-06  Ulrich Drepper  <drepper@redhat.com>

* configure.in: Add --without-tls option.
* sysdeps/i386/elf/configure.in: Don't check for TLS support if
--without-tls is given.

* sysdeps/generic/dl-tls.c: Include <tls.h>.

* sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.

22 years agoDon't define anything if !USE_TLS.
Ulrich Drepper [Thu, 7 Feb 2002 06:06:02 +0000 (06:06 +0000)]
Don't define anything if !USE_TLS.

22 years ago* malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
Roland McGrath [Thu, 7 Feb 2002 05:30:48 +0000 (05:30 +0000)]
* malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.

* malloc/malloc.c [! HAVE_MREMAP]: Likewise.

22 years ago* scripts/versions.awk: Improve error message for missing version.
Roland McGrath [Thu, 7 Feb 2002 05:25:11 +0000 (05:25 +0000)]
* scripts/versions.awk: Improve error message for missing version.

Each version inherits from the last one only if they have the same
nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
but not GLIBC_x and FOO_y.

* scripts/firstversions.awk: Handle libraries that don't have each
particular version named in the third column of shlib-versions.

22 years ago* scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
Roland McGrath [Thu, 7 Feb 2002 04:37:38 +0000 (04:37 +0000)]
* scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.

22 years ago2002-02-06 Roland McGrath <roland@frob.com>
Roland McGrath [Thu, 7 Feb 2002 04:33:51 +0000 (04:33 +0000)]
2002-02-06  Roland McGrath  <roland@frob.com>

* scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.

22 years agoUpdate.
Ulrich Drepper [Thu, 7 Feb 2002 04:08:19 +0000 (04:08 +0000)]
Update.

2002-02-06  Ulrich Drepper  <drepper@redhat.com>

* Versions.def [ld]: Add GLIBC_2.3.
* elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
* elf/Makefile (dl-routines): Add dl-tls.
(distribute): Add dl-tls.h.
* sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
_dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
* elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
along with the other info in the link map.  Change queueing of init
images for double linked list.  Use _dl_next_tls_modid to compute
l_tls_modid.
* elf/rtld.c (_dl_start_final): Store alignment requirement
along with the other info in rtld map and executable map.
(dl_main): Add ld.so to the init image list if necessary.  Compute
final module ID with _dl_next_tls_modid.
* include/link.h (struct link_map): Add l_tls_previmage and
l_tls_align.
* eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
* sysdeps/i386/elf/Versions: New file.
* sysdeps/generic/dl-tls.c: New file.
* sysdeps/generic/dl-tls.h: New file.
* sysdeps/i386/dl-tls.h: New file.

attribute((packed)) to counter stupid people misusing gcc options.

22 years ago(_dl_map_object_from_fd): Store alignment requirement along with the other info in...
Ulrich Drepper [Thu, 7 Feb 2002 03:53:17 +0000 (03:53 +0000)]
(_dl_map_object_from_fd): Store alignment requirement along with the other info in the link map.  Change queueing of init images for double linked list.  Use _dl_next_tls_modid to compute l_tls_modid.

22 years ago* sysdeps/mach/configure.in: New file.
Roland McGrath [Thu, 7 Feb 2002 03:52:18 +0000 (03:52 +0000)]
* sysdeps/mach/configure.in: New file.

* sysdeps/mach/configure: New generated file.

* mach/Makefile (user-interfaces): Remove default_pager_helper.
It has never been used by anything.

22 years agowhitespace
Roland McGrath [Thu, 7 Feb 2002 03:50:24 +0000 (03:50 +0000)]
whitespace

22 years ago[ld]: Add __tls_get_addr to GLIBC_2.3.
Ulrich Drepper [Thu, 7 Feb 2002 03:50:23 +0000 (03:50 +0000)]
[ld]: Add __tls_get_addr to GLIBC_2.3.

22 years ago* sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
Roland McGrath [Thu, 7 Feb 2002 03:49:52 +0000 (03:49 +0000)]
* sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...

* sysdeps/generic/netinet/ip.h: ... here, replacing old file.

22 years ago(dl-routines): Add dl-tls. (distribute): Add dl-tls.h.
Ulrich Drepper [Thu, 7 Feb 2002 03:49:37 +0000 (03:49 +0000)]
(dl-routines): Add dl-tls. (distribute): Add dl-tls.h.

22 years ago2002-02-06 Roland McGrath <roland@frob.com>
Roland McGrath [Thu, 7 Feb 2002 03:49:18 +0000 (03:49 +0000)]
2002-02-06  Roland McGrath  <roland@frob.com>

* sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
* sysdeps/generic/netinet/ip.h: ... here, replacing old file.

22 years ago[ld]: Add GLIBC_2.3.
Ulrich Drepper [Thu, 7 Feb 2002 03:48:00 +0000 (03:48 +0000)]
[ld]: Add GLIBC_2.3.

22 years agoAdditional version definitions for i386/ELF.
Ulrich Drepper [Thu, 7 Feb 2002 03:47:17 +0000 (03:47 +0000)]
Additional version definitions for i386/ELF.

22 years ago* sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
Andreas Jaeger [Wed, 6 Feb 2002 22:48:57 +0000 (22:48 +0000)]
* sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>

is included.

22 years agoMake sure the right <ldsodefs.h> is included.
Andreas Jaeger [Wed, 6 Feb 2002 22:48:35 +0000 (22:48 +0000)]
Make sure the right <ldsodefs.h> is included.

22 years agoUpdate.
Ulrich Drepper [Wed, 6 Feb 2002 18:14:12 +0000 (18:14 +0000)]
Update.

2002-02-06  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
attribute((packed)) to counter stupid people misuing gcc options.
(struct stat64): Likewise.

2002-02-05  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
the variables which are used as booleans.

22 years ago(struct stat): Add attribute((packed)) to counter stupid people misuing gcc options...
Ulrich Drepper [Wed, 6 Feb 2002 18:12:16 +0000 (18:12 +0000)]
(struct stat): Add attribute((packed)) to counter stupid people misuing gcc options. (struct stat64): Likewise.

22 years agoUpdate.
Andreas Jaeger [Wed, 6 Feb 2002 14:19:54 +0000 (14:19 +0000)]
Update.

* elf/dl-error.c: Likewise.
* elf/dl-fini.c: Likewise.
* elf/dl-runtime.c: Likewise.
* elf/do-lookup.h: Likewise.

22 years agoUpdate.
Andreas Jaeger [Wed, 6 Feb 2002 14:14:51 +0000 (14:14 +0000)]
Update.

2002-02-06  Andreas Jaeger  <aj@suse.de>

* include/libc-symbols.h (INTUSE): Renamed from INT.
* elf/dl-deps.c: Change users.
* sysdeps/generic/dl-sysdep.c: Likewise.
* sysdeps/generic/dl-cache.c: Likewise.
* elf/dl-reloc.c: Likewise.
* elf/rtld.c: Likewise.
* elf/dl-version.c: Likewise.
* elf/dl-load.c: Likewise.
* elf/dl-dst.h: Likewise.
* elf/dl-init.c: Likewise.

22 years agoUpdate.
Andreas Jaeger [Wed, 6 Feb 2002 12:55:35 +0000 (12:55 +0000)]
Update.

2002-02-05  Andreas Jaeger  <aj@suse.de>

* stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
definition.
* stdio-common/_itowa.h: Likewise.

22 years agoUndefine SPECIAL to avoid duplicate definition.
Andreas Jaeger [Wed, 6 Feb 2002 12:54:16 +0000 (12:54 +0000)]
Undefine SPECIAL to avoid duplicate definition.

22 years ago(dl_main): Correct indentation. Use bool as type for the variables which are used...
Ulrich Drepper [Wed, 6 Feb 2002 03:42:42 +0000 (03:42 +0000)]
(dl_main): Correct indentation.  Use bool as type for the variables which are used as booleans.

22 years agoUpdate.
Ulrich Drepper [Wed, 6 Feb 2002 01:14:01 +0000 (01:14 +0000)]
Update.

* elf/dl-minimal.c: Define _itoa_lower_digits.

* elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
DT_FLAGS set.

22 years agoUpdate.
Ulrich Drepper [Wed, 6 Feb 2002 00:55:46 +0000 (00:55 +0000)]
Update.

* elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
loading modules with the DF_STATIC_TLS flag set.
* elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
element.
* include/link.h (struct link_map): Add l_flags field.
* elf/elf.h (DF_STATIC_TLS): New definition.

22 years agoUpdate.
Ulrich Drepper [Wed, 6 Feb 2002 00:28:46 +0000 (00:28 +0000)]
Update.

* dlfcn/Makefile: Add rules to build and run bug-dlopen1.
* dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.

22 years agoUpdate.
Ulrich Drepper [Wed, 6 Feb 2002 00:19:11 +0000 (00:19 +0000)]
Update.

* elf/rtld.c (process_dl_debug): Correct printing help message.
* elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
for %s.

22 years agoUpdate.
Ulrich Drepper [Tue, 5 Feb 2002 23:29:24 +0000 (23:29 +0000)]
Update.

* inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
definition and pass &errno in use of this variable.
Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].

2002-02-04  Andreas Schwab  <schwab@suse.de>

* locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
* locale/programs/charmap-dir.c: Wrap calls that output messages
with WITH_CUR_LOCALE.  Include "localedef.h" first.
* locale/programs/charmap.c: Likewise.
* locale/programs/ld-address.c: Likewise.
* locale/programs/ld-collate.c: Likewise.
* locale/programs/ld-ctype.c: Likewise.
* locale/programs/ld-identification.c: Likewise.
* locale/programs/ld-measurement.c: Likewise.
* locale/programs/ld-messages.c: Likewise.
* locale/programs/ld-monetary.c: Likewise.
* locale/programs/ld-name.c: Likewise.
* locale/programs/ld-numeric.c: Likewise.
* locale/programs/ld-paper.c: Likewise.
* locale/programs/ld-telephone.c: Likewise.
* locale/programs/ld-time.c: Likewise.
* locale/programs/linereader.c: Likewise.
* locale/programs/linereader.h: Likewise.
* locale/programs/localedef.c: Likewise.
* locale/programs/locfile.c: Likewise.
* locale/programs/repertoire.c: Likewise.

2002-02-05  Ulrich Drepper  <drepper@redhat.com>

22 years agoUpdate.
Ulrich Drepper [Tue, 5 Feb 2002 19:39:42 +0000 (19:39 +0000)]
Update.

* elf/rtld.c (_dl_start_final): Determine load address to locate
ehdr with GL(dl_rtld_map).l_map_start.

22 years agoUpdate.
Ulrich Drepper [Tue, 5 Feb 2002 19:20:07 +0000 (19:20 +0000)]
Update.

* po/ca.po: Update from translation team.

22 years agoUpdate.
Ulrich Drepper [Tue, 5 Feb 2002 08:38:38 +0000 (08:38 +0000)]
Update.

* elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
header entry.
* elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.

22 years agoUpdate.
Ulrich Drepper [Tue, 5 Feb 2002 08:25:04 +0000 (08:25 +0000)]
Update.

2002-02-05  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
* sysdeps/generic/ldsodefs.h (struct rtld_global): Add
_dl_tls_module_cnt.

22 years agoUpdate.
Ulrich Drepper [Tue, 5 Feb 2002 08:02:04 +0000 (08:02 +0000)]
Update.

* elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
* include/link.h (struct link_map): Add various members for TLS
information.
* sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
_rtld_tlsoffset, add _dl_initimage_list.
* sysdeps/i386/dl-lookupcfg.h: New file.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
TLS relocation.  When using TLS we now use RESOLVE_MAP.
(elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
is used.

* sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
unused.

22 years agoUpdate.
Ulrich Drepper [Tue, 5 Feb 2002 00:57:29 +0000 (00:57 +0000)]
Update.

* elf/rtld.c (_dl_start_final): Allocate TLS and initialize
thread-pointer as soon as possible.
* sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
elements in rtld_global.
* sysdeps/generic/tls.h: New file.
* elf/Makefile (distribute): Add tls.h.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
relocations.  Not complete yet.

* resolv/resolv.h: Allow user to define __need_res_state and only
define __res_start structure then.
* include/resolv.h: Only declare functions if _RESOLV_H_ is defined.

22 years agoUpdate.
Ulrich Drepper [Mon, 4 Feb 2002 08:38:52 +0000 (08:38 +0000)]
Update.

2002-02-04  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
dl_cpuclock_offset initialization to _dl_start_final.
(_dl_show_auxv): Avoid unnecessary sign extension.
* elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.

22 years agoUpdate.
Ulrich Drepper [Mon, 4 Feb 2002 06:24:37 +0000 (06:24 +0000)]
Update.

2002-02-03  Ulrich Drepper  <drepper@redhat.com>

* config.h.in: Add HAVE_TLS_SUPPORT.
* sysdeps/i386/elf/configure.in: New file.

22 years agoUpdate.
Ulrich Drepper [Sun, 3 Feb 2002 19:39:52 +0000 (19:39 +0000)]
Update.

2002-02-03  Andreas Schwab  <schwab@suse.de>

* sysdeps/posix/readv.c: Use ssize_t for bytes_read.
* sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.

2002-02-03  Thorsten Kukuk  <kukuk@suse.de>

* sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
alloca if the memory reqirements are too high.

2002-02-03  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-load.c (decompose_rpath): Avoid using strstr.
* elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
the former is available anyway and speed isn't important here.
* elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
* elf/dl-version.c (match_symbol): Likewise.
(_dl_check_map_versions): Likewise.
* elf/rtld.c (process_envvars): Likewise.
(print_statistics): Likewise.
* sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
* elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
bases.  Add assert to catch uses of unimplemented features.
(__strsep): Add assert to catch uses of unimplemented features.
* elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
and avoid inline optimization.
* elf/rtld.c (process_envvars): Likewise.
* elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
* elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
* elf/rtld.c (dl_main): Avoid strsep inline optimization.

* stdio-common/_itoa.h: Minor simplifications of the code.
* stdio-common/_itoa.c: Likewise.

* elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
instead of _dl_printf for debugging info output.

* sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.

22 years agoUpdate.
Ulrich Drepper [Sun, 3 Feb 2002 02:33:57 +0000 (02:33 +0000)]
Update.

2002-02-02  Ulrich Drepper  <drepper@redhat.com>

* manual/examples/mkfsock.c (make_named_socket): Make sure name is
always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.

22 years agoUpdate.
Ulrich Drepper [Sun, 3 Feb 2002 02:26:37 +0000 (02:26 +0000)]
Update.

2002-02-01  H.J. Lu  <hjl@gnu.org>

* sysdeps/mips/atomicity.h (exchange_and_add): Use branch
likely.
(atomic_add): Likewise.
(compare_and_swap): Return 0 only when failed to compare. Use
branch likely.

* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
branch likely.

2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>

* sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.

2002-02-02  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-minimal.c (__strsep): New minimal implementation.

22 years agoUpdate.
Ulrich Drepper [Sun, 3 Feb 2002 01:05:29 +0000 (01:05 +0000)]
Update.

2002-02-02  Paul Eggert  <eggert@twinsun.com>

* src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
(__mktime_internal): If no tm_isdst is requested, prefer solutions
with tm_isdst > 0 when the requested time falls within a
spring-forward gap [PR libc/2894].

22 years agoUpdate.
Ulrich Drepper [Sun, 3 Feb 2002 01:03:00 +0000 (01:03 +0000)]
Update.

2002-02-03  Andreas Schwab  <schwab@suse.de>

* stdio-common/tst-rndseek.c: Increase timeout.

22 years agoUpdate.
Ulrich Drepper [Sun, 3 Feb 2002 00:31:37 +0000 (00:31 +0000)]
Update.

Change ld.so to not use functions which are exported.  One cannot
interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
definitions.
* include/libc-symbols.h: Define INT and INTDEF.
* sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
_dl_signal_error_internal, _dl_map_object_internal,
_dl_map_object_deps_internal, _dl_lookup_symbol_internal,
_dl_lookup_versioned_symbol_internal,
_dl_relocate_object_internal, _dl_debug_state_internal,
_dl_start_profile_internal, and _dl_unload_cache_internal.
* include/dlfcn.h: Declare _dl_catch_error_internal.
* elf/rtld.c: Use INT for calls to any of the *_internal functions
above.  Add INTDEF to function definitions.
* elf/dl-debug.c: Likewise.
* elf/dl-deps.c: Likewise.
* elf/dl-dst.h: Likewise.
* elf/dl-error.c: Likewise.
* elf/dl-fini.c: Likewise.
* elf/dl-init.c: Likewise.
* elf/dl-load.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-misc.c: Likewise.
* elf/dl-open.c: Likewise.
* elf/dl-profile.c: Likewise.
* elf/dl-reloc.c: Likewise.
* elf/dl-runtime.c: Likewise.
* elf/dl-version.c: Likewise.
* elf/do-lookup.h: Likewise.
* sysdeps/generic/dl-cache.c: Likewise.
* sysdeps/generic/dl-sysdep.c: Likewise.
* sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
instead of _dl_init.
* 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/mips/mips64/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.
* sysdeps/x86_64/dl-machine.h: Likewise.
* sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.

* elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
and _dl_debug_initialize.

22 years agoUpdate.
Ulrich Drepper [Sat, 2 Feb 2002 20:17:54 +0000 (20:17 +0000)]
Update.

* elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
more information.
* elf/rtld.c (dl_main): Avoid strrchr.
* sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
result of readlink.  Search from the back for '/'.

22 years agoUpdate.
Ulrich Drepper [Sat, 2 Feb 2002 09:53:48 +0000 (09:53 +0000)]
Update.

* elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
strncpy if possible.

22 years agoUpdate.
Ulrich Drepper [Sat, 2 Feb 2002 09:49:35 +0000 (09:49 +0000)]
Update.

2002-02-02  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
strncmp.
* elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
* elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
strspn, and strcspn.
(process_envvars): Don't use strcspn.

* elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
(_dl_dst_substitute): Likewise.

22 years agoUpdate.
Ulrich Drepper [Sat, 2 Feb 2002 07:26:22 +0000 (07:26 +0000)]
Update.

* elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
code which is never used when relocating ld.so itself.

(_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.

22 years agoUpdate.
Ulrich Drepper [Sat, 2 Feb 2002 05:20:42 +0000 (05:20 +0000)]
Update.

2002-02-01  Ulrich Drepper  <drepper@redhat.com>

* elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
starting ld.so itself.  Move l_addr variable initialization closer
to use.

22 years agoUpdate.
Ulrich Drepper [Fri, 1 Feb 2002 23:24:05 +0000 (23:24 +0000)]
Update.

2002-02-01  Jakub Jelinek  <jakub@redhat.com>

* Versions.def (libc): Add GLIBC_PRIVATE.
(libdb, libnss_db, libdb1): Remove.
(libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
(libpthread): Add GLIBC_PRIVATE.
(libresolv): Likewise, remove GLIBC_2.1.
(ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
GLIBC_2.2.3, GLIBC_2.3.
* catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
* elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
_dl_sym, _dl_vsym): Likewise.
(__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
_dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
_dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
_dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
_dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
_dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
_dl_relocate_object, _dl_signal_error, _dl_start_profile,
_dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
Likewise.
(_dl_object_relocation_scope): Remove.
* hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
* iconv/Versions (__gconv_alias_db, __gconv_modules_db,
__gconv_cache): Move to GLIBC_PRIVATE.
* inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
__internal_setnetgrent): Likewise.
* io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
__libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
* locale/Versions (__collate_element_hash, __collate_element_strings,
__collate_symbol_classes, __collate_symbol_hash,
__collate_symbol_strings, _nl_current_LC_COLLATE,
_nl_current_LC_CTYPE): Likewise.
* misc/Versions (__libc_fsync, __libc_msync): Likewise.
* nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
(libnss_nis, libnss_nisplus): Likewise.
* nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
_nss_files_parse_spent): Move to GLIBC_PRIVATE.
(libnss_files): Move all symbols to GLIBC_PRIVATE.
* posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
__libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
__libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
* resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
__ns_get16, __ns_samename): Likewise.
(libnss_dns): Move all symbols to GLIBC_PRIVATE.
* setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
GLIBC_PRIVATE.
* socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
__libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
__libc_connect): Likewise.
* stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
Likewise.
* stdlib/Versions (__libc_system): Likewise.
* sunrpc/Versions (__rpc_thread_destroy): Likewise.
* sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
* sysdeps/ia64/fpu/Versions: Likewise.
* sysdeps/ia64/Versions: Likewise.
* sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
* sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
to GLIBC_PRIVATE.
* sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
* sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
__libc_sigaction): Likewise.
* termios/Versions (__libc_tcdrain): Likewise.

* misc/sys/cdefs (__attribute_noinline__): Define.
* elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
__attribute_noinline__.

* elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
* elf/dl-xstat64.c: New file.
* elf/dl-fxstat64.c: New file.
* sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
don't export __fxstat64 at multiple versions.
* sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
* sysdeps/unix/sysv/linux/xstat64.c: Similarly.

22 years agoUpdate.
Ulrich Drepper [Fri, 1 Feb 2002 21:08:09 +0000 (21:08 +0000)]
Update.

2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>

* locale/program/ld-collate.c (collate_finish): Assign a wide
char collation sequence value to multi character collating
elements, and avoid over writing by non-character elements.

22 years agoUpdate.
Ulrich Drepper [Fri, 1 Feb 2002 19:13:09 +0000 (19:13 +0000)]
Update.

2002-02-01  Ulrich Drepper  <drepper@redhat.com>

* elf/Makefile (distribute): Add dl-procinfo.c.
* sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
* sysdeps/unix/sysv/linux/arm/Dist: Likewise.

22 years agoUpdate.
Ulrich Drepper [Fri, 1 Feb 2002 19:06:42 +0000 (19:06 +0000)]
Update.

2002-02-01  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
definition.
* sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
_rtld_global struct.
* sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
* sysdeps/sparc/sparc64/hp-timing.c: Likewise.
* sysdeps/sparc/sparc64/hp-timing.h: Likewise.
* sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
* sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
_dl_fpu_control_set): Remove unused externs.
* sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
related variables in _rtld_global struct.
* sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
* sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
unused extern.

22 years agoUpdate.
Ulrich Drepper [Fri, 1 Feb 2002 18:27:43 +0000 (18:27 +0000)]
Update.

2002-02-01  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/dl-procinfo.c: New file.

22 years agoDummy dl-procinfo.c file for platforms which don't have one.
Ulrich Drepper [Fri, 1 Feb 2002 18:25:44 +0000 (18:25 +0000)]
Dummy dl-procinfo.c file for platforms which don't have one.

22 years ago* sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
Andreas Schwab [Fri, 1 Feb 2002 10:29:57 +0000 (10:29 +0000)]
* sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.

22 years agoDon't use multi-line string literals.
Andreas Schwab [Fri, 1 Feb 2002 10:28:20 +0000 (10:28 +0000)]
Don't use multi-line string literals.

22 years agoUpdate.
Ulrich Drepper [Fri, 1 Feb 2002 09:36:26 +0000 (09:36 +0000)]
Update.

2002-02-01  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (_dl_start): Mark as internal_function.
* sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
in register.
(elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
General pretty printing.

22 years agoUpdate.
Ulrich Drepper [Fri, 1 Feb 2002 07:49:47 +0000 (07:49 +0000)]
Update.

* elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
* elf/dl-reloc.c: Pretty printing.
* sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
procinfo-related variables in rtld_global struct.
* elf/dl-support.c: Likewise.
* elf/rtld.c: Likewise.
* sysdeps/i386/i686/Makefile: Likewise.
* sysdeps/i386/i686/hp-timing.c: Likewise.
* sysdeps/i386/i686/hp-timing.h: Likewise.
* sysdeps/ia64/Makefile: Likewise.
* sysdeps/ia64/hp-timing.c: Likewise.
* sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
* sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
* sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
* sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
* sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
* sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
* sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
* sysdeps/x86_64/Makefile: Likewise.

22 years agoUpdate.
Ulrich Drepper [Fri, 1 Feb 2002 01:33:04 +0000 (01:33 +0000)]
Update.

* sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
_dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
_dl_debug_fd to rtld_global.
* elf/Versions: Likewise.
* elf/dl-close.c: Likewise.
* elf/dl-iteratephdr.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-misc.c: Likewise.
* elf/dl-open.c: Likewise.
* elf/dl-support.c: Likewise.
* elf/do-lookup.h: Likewise.
* elf/rtld.c: Likewise.
* sysdeps/generic/dl-cache.c: Likewise.
* sysdeps/generic/dl-sysdep.c: Likewise.
* sysdeps/ia64/Versions: Likewise.
* sysdeps/unix/clock_gettime.c: Likewise.
* sysdeps/unix/clock_settime.c: Likewise.
* sysdeps/unix/sysv/linux/init-first.c: Likewise.
* sysdeps/sparc/Versions: Removed.
* sysdeps/i386/i686/Versions : Removed.
* sysdeps/x86_64/Versions: Removed.
* configure.in: Define HAVE_PROTECTED if .protected is available.
* config.h.in: Add entry for HAVE_PROTECTED.

2002-01-31  Jakub Jelinek  <jakub@redhat.com.

* sysdeps/alpha/dl-machine.h: Move global variables for SHARED
code in struct _rtld_global.  Export this struct, remove all
exports for the signal variables.
* sysdeps/arm/dl-machine: Likewise.
* sysdeps/generic/dl-origin: Likewise.
* sysdeps/generic/dl-sysdep: Likewise.
* sysdeps/generic/dl-cache: Likewise.
* sysdeps/hppa/dl-fptr: Likewise.
* sysdeps/hppa/dl-machine: Likewise.
* sysdeps/cris/dl-machine: Likewise.
* sysdeps/i386/dl-machine: Likewise.
* sysdeps/ia64/dl-machine: Likewise.
* sysdeps/m68k/dl-machine: Likewise.
* sysdeps/mach/hurd/dl-sysdep: Likewise.
* sysdeps/mips/mips64/dl-machine: Likewise.
* sysdeps/mips/dl-machine: Likewise.
* sysdeps/powerpc/elf/libc-start: Likewise.
* sysdeps/powerpc/dl-machine: Likewise.
* sysdeps/powerpc/dl-start: Likewise.
* sysdeps/sparc/sparc32/dl-machine: Likewise.
* sysdeps/sparc/sparc64/dl-machine: Likewise.
* sysdeps/sh/dl-machine: Likewise.
* sysdeps/s390/s390-32/dl-machine: Likewise.
* sysdeps/s390/s390-64/dl-machine: Likewise.
* sysdeps/unix/sysv/aix/libc-start: Likewise.
* sysdeps/unix/sysv/aix/start-libc: Likewise.
* sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
* sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
* sysdeps/x86_64/dl-machine: Likewise.

2002-01-31  Ulrich Drepper  <drepper@redhat.com>

22 years agoUpdate.
Ulrich Drepper [Thu, 31 Jan 2002 19:43:44 +0000 (19:43 +0000)]
Update.

2002-01-31  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/posix/readv.c: Don't use alloca if the memory requirements
are too high.

2002-01-31  Andreas Schwab  <schwab@suse.de>

* sysdeps/posix/readv.c: Check for ssize_t overflow.

2002-01-31  Andreas Schwab  <schwab@suse.de>

* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
reference to _dl_pagesize.

22 years agoUpdate.
Ulrich Drepper [Thu, 31 Jan 2002 03:41:25 +0000 (03:41 +0000)]
Update.

2002-01-30  Ulrich Drepper  <drepper@redhat.com>

* Versions.def [ld]: Add GLIBC_2.3.
* elf/dl-addr.c: Move global variables for SHARED code in struct
_rtld_global.  Export this struct, remove all exports for the
signal variables.
* elf/dl-close.c: Likewise.
* elf/dl-conflict.c: Likewise.
* elf/dl-debug.c: Likewise.
* elf/dl-deps.c: Likewise.
* elf/dl-dst.h: Likewise.
* elf/dl-error.c: Likewise.
* elf/dl-fini.c: Likewise.
* elf/dl-init.c: Likewise.
* elf/dl-iteratephdr.c: Likewise.
* elf/dl-libc.c: Likewise.
* elf/dl-load.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-minimal.c: Likewise.
* elf/dl-object.c: Likewise.
* elf/dl-open.c: Likewise.
* elf/dl-profile.c: Likewise.
* elf/dl-profstub.c: Likewise.
* elf/dl-reloc.c: Likewise.
* elf/dl-runtime.c: Likewise.
* elf/dl-support.c: Likewise.
* elf/dl-sym.c: Likewise.
* elf/dl-version.c: Likewise.
* elf/do-lookup.h: Likewise.
* elf/do-rel.h: Likewise.
* elf/dynamic-link.h: Likewise.
* elf/rtld.c: Likewise.
* sysdeps/generic/dl-cache.c: Likewise.
* sysdeps/generic/dl-sysdep.c: Likewise.
* sysdeps/generic/ldsodefs.h: Likewise.
* sysdeps/generic/libc-start.c: Likewise.
* sysdeps/i386/dl-machine.h: Likewise.
* sysdeps/ia64/dl-fptr.c: Likewise.
* sysdeps/ia64/dl-machine.h: Likewise.
* sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
* sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
* sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
* sysdeps/unix/sysv/linux/getclktck.c: Likewise.
* sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
* sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.

* malloc/thread-m.h: Spinlock definitions for x86/x86_64.

22 years agoUpdate.
Ulrich Drepper [Wed, 30 Jan 2002 00:38:09 +0000 (00:38 +0000)]
Update.

* sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
to avoid warning
(DL_STATIC_FUNCTION_ADDRESS): Likewise.

22 years agoUpdate.
Ulrich Drepper [Tue, 29 Jan 2002 23:20:28 +0000 (23:20 +0000)]
Update.

* elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
SHARED version.
* elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.

22 years agoUpdate.
Ulrich Drepper [Tue, 29 Jan 2002 20:56:09 +0000 (20:56 +0000)]
Update.

2002-01-29  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (_dl_start): Use __builtin_memset if available.

22 years agoUpdate.
Ulrich Drepper [Tue, 29 Jan 2002 19:07:57 +0000 (19:07 +0000)]
Update.

2002-01-29  Ben Collins  <bcollins@debian.org>

* string/bits/string2.h (__mempcpy): Protect size arg for
addition when using __builtin_memcpy.

22 years agoUpdate.
Ulrich Drepper [Tue, 29 Jan 2002 09:21:41 +0000 (09:21 +0000)]
Update.

* stdlib/Makefile (tests): Add tst-qsort.
* stdlib/tst-qsort.c: New file.  Written by Paul Eggert.