Ulrich Drepper [Sun, 24 Feb 2002 04:57:56 +0000 (04:57 +0000)]
Update.
* attr.c (pthread_getattr_np): Don't take thread descriptor size
into account if USE_TLS.
* manager.c (pthread_handle_create): Free TLS data structures if call
failed. Pass correct stack to clone if USE_TLS.
* sysdeps/i386/pt-machine.h: Handle multiple inclusion.
* sysdeps/i386/i686/pt-machine.h: Likewise.
* sysdeps/i386/tls.h: Unconditionally include <pt-machine.h>.
Ulrich Drepper [Sat, 23 Feb 2002 19:38:02 +0000 (19:38 +0000)]
Update.
* locale/iso-639.def: Add language codes for Walloon.
Ulrich Drepper [Sat, 23 Feb 2002 19:05:32 +0000 (19:05 +0000)]
Update.
* elf/dl-fini.c (_dl_fini): Print some final statistics on the
total number of relocations performed.
Ulrich Drepper [Sat, 23 Feb 2002 09:20:59 +0000 (09:20 +0000)]
Update.
* elf/sprof.c (load_profdata): If do_test provide information as
to why loading failed.
* elf/dl-profile.c (_dl_start_profile): Initialize all of
hist_hdr.dimen.
Ulrich Drepper [Sat, 23 Feb 2002 08:47:54 +0000 (08:47 +0000)]
Update.
2002-02-23 Ulrich Drepper <drepper@redhat.com>
* csu/set-init.c: Moved to...
* sysdeps/mach/hurd/set-init.c: ...here. New file.
* csu/Makefile: Don't compile set-init.
* sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
* sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
to __libc_init.
* sysdeps/mach/hurd/mips/init-first.c: Likewise.
* sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
* sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
__libc_init.
* misc/init-misc.c: Always export __init_misc. Don't define hooks for
__libc_subinit.
Ulrich Drepper [Sat, 23 Feb 2002 07:59:56 +0000 (07:59 +0000)]
Update.
2002-02-22 Ulrich Drepper <drepper@redhat.com>
* elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
* elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
* sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
(_dl_deallocate_tls): New function.
* sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
_dl_deallocate_tls.
Ulrich Drepper [Fri, 22 Feb 2002 05:11:26 +0000 (05:11 +0000)]
Update.
2002-02-21 Jakub Jelinek <jakub@redhat.com>
* libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
* stdio-common/tst-fseek.c (main): Add test for this.
Ulrich Drepper [Tue, 19 Feb 2002 17:43:23 +0000 (17:43 +0000)]
Update.
2002-02-19 Ulrich Drepper <drepper@redhat.com.>
* stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
Ulrich Drepper [Tue, 19 Feb 2002 07:23:04 +0000 (07:23 +0000)]
Update
2002-02-19 Jakub Jelinek <jakub@redhat.com>
* libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
pointer before dereferencing.
Ulrich Drepper [Tue, 19 Feb 2002 07:13:04 +0000 (07:13 +0000)]
Update.
2002-02-17 Andreas Schwab <schwab@suse.de>
* signals.c (sigwait): Check for old sighandler being SIG_ERR,
not NULL.
Ulrich Drepper [Tue, 19 Feb 2002 07:12:09 +0000 (07:12 +0000)]
(sigwait): Check for old sighandler being SIG_ERR, not NULL.
Roland McGrath [Tue, 19 Feb 2002 00:22:30 +0000 (00:22 +0000)]
* sysdeps/mach/hurd/times.c: Fix typo in last change.
* sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
Use task_policy in place of task_priority.
* sysdeps/generic/bits/mman.h
(MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
* sysdeps/mach/msync.c: New file.
* sysdeps/mach/powerpc/syscall.S: New file.
* mach/msg.c [MACH_MSG_OVERWRITE]
(__mach_msg_trap, __mach_msg_overwrite): New functions.
* mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
* sysdeps/mach/configure.in: Check for clock.defs to put into
mach_interface_list.
* sysdeps/mach/configure: Regenerated.
* mach/Makefile (mach-machine): New variable, set from $(base-machine).
($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
(mach-shortcuts): Add device_read_overwrite_request,
device_read_overwrite, vm_read_overwrite, thread_switch.
* configure.in (base_machine): Set to $machine by default.
* configure: Regenerated.
Roland McGrath [Mon, 18 Feb 2002 20:57:51 +0000 (20:57 +0000)]
* sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
* sysdeps/mach/configure: Regenerated.
* mach/mach_init.c [NDR_DEF_HEADER]: #include it.
* hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
* hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
* mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
* sysdeps/mach/hurd/times.c
[NO_CREATION_TIME] (startup_time): New static variable.
[NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
(__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
creation_time from task_basic_info.
(__times): Use __gettimeofday instead of __host_get_time.
* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
Use untyped Mach IPC message format.
* hurd/catch-exc.c: Include <assert.h>, missing from last change.
Roland McGrath [Mon, 18 Feb 2002 01:50:52 +0000 (01:50 +0000)]
* hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
_S_catch_exception_raise_state_identity,
_hurdsig_fault_catch_exception_raise_state,
_hurdsig_fault_catch_exception_raise_state_identity.
* mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
* sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
__host_info with HOST_VM_INFO flavor instead of __vm_statistics.
* sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
`base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
* sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
(fmh, unfmh): Define these functions only #if FMH. Otherwise define
them as no-op macros.
[FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
(__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
* sysdeps/powerpc/dl-machine.h
(ELF_MACHINE_USER_ADDRESS_MASK): New macro.
Roland McGrath [Sun, 17 Feb 2002 22:56:17 +0000 (22:56 +0000)]
typo
* sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
Roland McGrath [Sun, 17 Feb 2002 22:54:39 +0000 (22:54 +0000)]
* hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
Use untyped Mach IPC message format.
* sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]: Handle
Handle untyped Mach IPC message formats.
* hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
Expect different argument conventions when this is defined.
[EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
[EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
* hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
[NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
for OSF Mach variant.
(faulted): Use mig_reply_error_t for REPLY.
(_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
in __thread_set_exception_ports call.
(_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
__mach_port_set_attributes in place of __mach_port_set_qlimit.
* sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
on Darwin, which includes bogons.
Roland McGrath [Sun, 17 Feb 2002 19:32:29 +0000 (19:32 +0000)]
* sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
variable LOADBASE so it's not declared when it's not used.
Roland McGrath [Sun, 17 Feb 2002 07:57:32 +0000 (07:57 +0000)]
* sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
to use BI.creation_time.
* mach/Machrules (MIG): Add -x c to CPP value passed down.
Roland McGrath [Sun, 17 Feb 2002 07:30:04 +0000 (07:30 +0000)]
* config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
* sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
* mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
host_page_size instead of vm_statistics.
Roland McGrath [Sun, 17 Feb 2002 07:22:56 +0000 (07:22 +0000)]
* sysdeps/mach/Makefile (mach-before-compile): Don't include
mach_interface.h here, since not all variants use that name.
Roland McGrath [Sun, 17 Feb 2002 07:19:11 +0000 (07:19 +0000)]
* sysdeps/mach/configure.in: Add some checks for Mach headers
to ensure a sane installation.
(mach_interface_list): Define this variable by checking for .defs
files found in various variants.
* configure.in (mach_interface_list): AC_SUBST this.
* config.make.in (mach-interface-list): New substituted variable.
* mach/Makefile (user-interfaces): Define this using the value
of $(mach-interface-list) instead of mach, mach4.
Updated other references to mach_interface to use it as well.
* sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
* mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
mig_reply_error_t for OSF Mach variant.
* mach/Makefile (routines): Remove bootprivport.
* mach/bootprivport.c: File removed. It has never been used.
* mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
Grok the OSF flavor of message format.
(mach_msg_destroy_port): For MAKE_SEND and
MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
no-senders notification.
2002-02-06 Roland McGrath <roland@frob.com>
* hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
to here if 2.0 compatibility enabled ...
(libc: GLIBC_2.1.3): ... from here.
Roland McGrath [Sun, 17 Feb 2002 07:13:23 +0000 (07:13 +0000)]
2002-02-16 Roland McGrath <roland@frob.com>
* mach/Makefile (routines): Remove bootprivport.
* mach/bootprivport.c: File removed. It has never been used.
Ulrich Drepper [Sat, 16 Feb 2002 00:21:33 +0000 (00:21 +0000)]
Update.
2002-02-15 Ulrich Drepper <drepper@redhat.com>
* elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
generation counter.
* elf/dl-close.c (_dl_close): Likewise.
Ulrich Drepper [Thu, 14 Feb 2002 10:34:55 +0000 (10:34 +0000)]
Update.
* elf/Makefile: Add rules to build and run tst-tls8.
* elf/tst-tls8.c: New file.
* elf/tst-tlsmod4.c: New file.
Ulrich Drepper [Thu, 14 Feb 2002 09:25:02 +0000 (09:25 +0000)]
Update.
2002-02-14 Ulrich Drepper <drepper@redhat.com>
* stdlib/test-a64l.c (tests): Add more test cases.
* sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
Reported by Walter Harms <WHarms@bfs.de>.
2002-02-11 Jes Sorensen <jes@trained-monkey.org>
* sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
definitions for struct sigcontext.
Suggested by David Mosberger-Tang.
Ulrich Drepper [Thu, 14 Feb 2002 07:57:19 +0000 (07:57 +0000)]
Update.
* elf/dl-close.c (remove_slotinfo): New function. Handles everything
for removing reference of module in slotinfo list.
(_dl_close): Use remove_slotinfo.
* sysdeps/generic/dl-tls.c: General pretty printing.
(oom): Define only if SHARED.
(_dl_next_tls_modid): Correct starting point for the case we assume
there is a gap. Add missing instruction grouping (doh!). Correct
tests for reaching maximum index.
* elf/Makefile: Add rules to build and run tst-tls7.
* elf/tst-tls7.c: New file.
* elf/tst-tlsmod3.c: New file.
* elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
USE_TLS.
* elf/tst-tlsmod2.c: Likewise.
Ulrich Drepper [Thu, 14 Feb 2002 03:54:02 +0000 (03:54 +0000)]
Update.
* elf/dl-close.c (_dl_close): When closing an object using TLS
either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
true. Increment dl_tls_generation only if we closed any TLS-using
object.
* elf/tst-tls6.c: New file.
* elf/Makefile: Add rules to build and run tst-tls6.
Ulrich Drepper [Thu, 14 Feb 2002 01:02:42 +0000 (01:02 +0000)]
Update.
* po/da.po: Update from translation team.
* locale/categories.def: Fix typo [PR libc/2948].
* po/Makefile (BROKEN_LINGUAS): Works with current gettext
[PR libc/2949].
* locale/iso-4217.def: Update from official version [PR libc/2950].
* glibcbug.in: Honor TMPDIR [PR libc/2951].
* locale/programs/ld-collate.c (collate_finish): Bail out with a
message if input is too confusion instead of using assert.
(collate_read): Don't crash on unknown symbol [PR libc/2952].
Patches by Alastair McKinstry <alastair@pdd.3com.com>.
Ulrich Drepper [Wed, 13 Feb 2002 22:50:48 +0000 (22:50 +0000)]
Update.
2002-02-13 Ulrich Drepper <drepper@redhat.com>
* locales/pl_PL: Update int_curr_symbol.
Ulrich Drepper [Wed, 13 Feb 2002 17:45:55 +0000 (17:45 +0000)]
Update.
* elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
* elf/tst-tls2.c: Likewise.
* elf/tst-tls3.c: Likewise.
2002-02-13 Jakub Jelinek <jakub@redhat.com>
* elf/dl-close.c (free_slotinfo): Only define if TLS supported.
2002-02-13 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Wed, 13 Feb 2002 09:44:17 +0000 (09:44 +0000)]
Update.
* elf/dl-open.c (dl_open_worker): Only bump the generation counter
if this is really necessary.
Ulrich Drepper [Wed, 13 Feb 2002 09:38:39 +0000 (09:38 +0000)]
Update.
2002-02-13 Ulrich Drepper <drepper@redhat.com>
* elf/dl-close.c (_dl_close): Implement freeing entries in the
slotinfo array.
(free_mem): Free memory for the slotinfo array if possible.
Ulrich Drepper [Wed, 13 Feb 2002 09:04:53 +0000 (09:04 +0000)]
Update.
2002-02-12 Andreas Schwab <schwab@suse.de>
* csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
Ulrich Drepper [Wed, 13 Feb 2002 08:03:56 +0000 (08:03 +0000)]
Update.
2002-02-12 Ulrich Drepper <drepper@redhat.com>
* sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
TLS_DTV_UNALLOCATE.
(oom): New function.
(_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
(_dl_determine_tlsoffset): Likewise.
(_dl_allocate_tls): Likewise.
(__TLS_GET_ADDR): Define if not already defined.
(_dl_tls_symaddr): New function.
(allocate_and_init): New function.
(__tls_get_addr): Actually implement handling of generation counter
and deferred allocation.
* sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
_dl_tls_generation.
Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
Declare _dl_tls_symaddr.
* sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
SHARED.
* include/link.h (struct link_map): Remove l_tls_nextimage and
l_tls_previmage.
* elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
(_dl_vsym): Likewise.
* elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
layout.
(dl_main): Allow PT_TLS be present for empty segment. Remove
nextimage list handling. Instead add all modules using TLS to
dl_tls_dtv_slotinfo_list.
* elf/dl-open.c (dl_open_worker): After successfully loading all
objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
* elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
empty segment don't do anything. Remove handling of initimage list.
* elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
(GLIBC_PRIVATE): Add _dl_tls_symaddr.
* elf/dl-minimal.c: Define __libc_memalign.
* elf/dl-support.c: Remove _dl_initimage_list. Add
_dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
_dl_tls_generation.
* include/stdlib.h: Declare __libc_memalign.
* elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
* elf/tst-tls4.c: New file.
* elf/tst-tls5.c: New file.
* elf/tst-tlsmod2.c: New file.
* elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
* elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
* elf/tst-tls1.c: Use test-skeleton.c.
* elf/tst-tls2.c: Likewise.
* elf/tst-tls3.c: Likewise.
* elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
* sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
Ulrich Drepper [Tue, 12 Feb 2002 19:17:09 +0000 (19:17 +0000)]
(RESOLVE_MAP): Return NULL not 0.
Andreas Jaeger [Mon, 11 Feb 2002 10:23:44 +0000 (10:23 +0000)]
Update.
2002-02-08 Daniel Jacobowitz <drow@mvista.com>
* sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC
behavior.
Andreas Jaeger [Mon, 11 Feb 2002 10:23:36 +0000 (10:23 +0000)]
Update MCOUNT for current GCC behavior.
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.
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.
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.
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.
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.
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.
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.
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>
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.
Ulrich Drepper [Sun, 10 Feb 2002 18:32:43 +0000 (18:32 +0000)]
Update.
* po/sv.po: Update from translation team.
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.
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.
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.
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.
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.
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.
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.
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.
Ulrich Drepper [Sat, 9 Feb 2002 01:29:45 +0000 (01:29 +0000)]
(banner): If TLS support available say so.
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.
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.
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.
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.
Ulrich Drepper [Fri, 8 Feb 2002 07:50:07 +0000 (07:50 +0000)]
Update.
* sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
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.
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.
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.
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.
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.
Ulrich Drepper [Thu, 7 Feb 2002 17:29:14 +0000 (17:29 +0000)]
Don't read TLS header if TLS is not needed.
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.
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
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.
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.
Ulrich Drepper [Thu, 7 Feb 2002 06:06:02 +0000 (06:06 +0000)]
Don't define anything if !USE_TLS.
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.
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.
Roland McGrath [Thu, 7 Feb 2002 04:37:38 +0000 (04:37 +0000)]
* scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
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.
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.
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.
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.
Roland McGrath [Thu, 7 Feb 2002 03:50:24 +0000 (03:50 +0000)]
whitespace
Ulrich Drepper [Thu, 7 Feb 2002 03:50:23 +0000 (03:50 +0000)]
[ld]: Add __tls_get_addr to GLIBC_2.3.
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.
Ulrich Drepper [Thu, 7 Feb 2002 03:49:37 +0000 (03:49 +0000)]
(dl-routines): Add dl-tls. (distribute): Add dl-tls.h.
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.
Ulrich Drepper [Thu, 7 Feb 2002 03:48:00 +0000 (03:48 +0000)]
[ld]: Add GLIBC_2.3.
Ulrich Drepper [Thu, 7 Feb 2002 03:47:17 +0000 (03:47 +0000)]
Additional version definitions for i386/ELF.
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.
Andreas Jaeger [Wed, 6 Feb 2002 22:48:35 +0000 (22:48 +0000)]
Make sure the right <ldsodefs.h> is included.
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.
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.
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.
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.
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.
Andreas Jaeger [Wed, 6 Feb 2002 12:54:16 +0000 (12:54 +0000)]
Undefine SPECIAL to avoid duplicate definition.
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.
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.
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.
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.
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.
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>