aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-03-162003-03-15 Roland McGrath <roland@redhat.com>Roland McGrath
* configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND, get errors into the log file. (libc_cv_broken_visibility_attribute): Likewise. (libc_cv_broken_alias_attribute): Likewise. (libc_cv_asm_weak_directive): Likewise. (libc_cv_need_minus_P): Likewise. (libc_cv_dot_text): Likewise. (libc_cv_asm_global_directive): Likewise. (libc_cv_asm_type_prefix): Likewise. * configure: Regenerated.
2003-03-16Update.Ulrich Drepper
2003-03-15 Ulrich Drepper <drepper@redhat.com> * allocatestack.c (allocate_stack): Store the exact stack size of user allocated stacks.
2003-03-16(allocate_stack): Store the exact stack size of user allocated stacks.Ulrich Drepper
2003-03-16* nscd/cache.c (cache_search): Give first arg type `request_type'.Roland McGrath
* nscd/nscd.h: Update decl. * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness. * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise. * elf/dl-close.c (_dl_close): Likewise. * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t * io/fts.c (fts_build): Likewise. * elf/cache.c (add_to_cache): Likewise. * locale/programs/locarchive.c (show_archive_content): Likewise. * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use. * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3 happy. (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
2003-03-15typoRoland McGrath
* Versions.def (libthread_db): Add GLIBC_2.3.3 set.
2003-03-15* thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER.Roland McGrath
(td_thr_tlsbase): Declare it. * td_thr_tlsbase.c: New file. * Makefile (libthread_db-routines): Add it. * Versions (libthread_db: GLIBC_2.3.3): New set, add td_thr_tlsbase. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use td_thr_tlsbase.
2003-03-152003-03-15 Roland McGrath <roland@redhat.com>Roland McGrath
* thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER. (td_thr_tlsbase): Declare it. * td_thr_tlsbase.c: New file. * Makefile (libthread_db-routines): Add it. * Versions (libthread_db: GLIBC_2.3.3): New set, add td_thr_tlsbase. * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use td_thr_tlsbase.
2003-03-15Update.Ulrich Drepper
2003-03-15 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux code for most parts.
2003-03-15Use the generic Linux code for most parts.Ulrich Drepper
2003-03-15* sysdeps/unix/sysv/linux/i386/system.c: Moved to ...Roland McGrath
* sysdeps/unix/sysv/linux/system.c: ... here. (FORK): Don't #define if already #define'd. * sysdeps/unix/sysv/linux/s390/system.c: File removed. * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]: (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
2003-03-15* dlfcn/tst-dlinfo.c: New file.Roland McGrath
* dlfcn/Makefile (tests): Add tst-dlinfo. ($(objpfx)tst-dlinfo): New target. * dlfcn/dlinfo.c: New file. * dlfcn/Makefile (libdl-routines): Add it. * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo. * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo. [__USE_GNU] (RTLD_DI_*): New enum constants. [__USE_GNU] (Dl_serpath, Dl_serinfo): New types. * elf/dl-load.c (cache_rpath): New inline function. (_dl_map_object): Use it. (_dl_rtld_di_serinfo): New function. * sysdeps/generic/ldsodefs.h: Declare it. * elf/Versions (ld: GLIBC_PRIVATE): Add it.
2003-03-15* sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.Roland McGrath
(LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG) (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>. (__libc_start_main): Just call the generic one for most of the work. * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a static function by that name instead of BP_SYM (__libc_start_main). [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument. [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN. [INIT_MAIN_ARGS]: Give INIT the same args as MAIN. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]: Use this macro for extra AT_* cases. * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV): New macro, guts from ... (__aux_init_cache): ... here, function removed. (DL_PLATFORM_INIT): Don't define this. * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss. * sysdeps/powerpc/powerpc64/memset.S: Likewise. * Versions.def (libthread_db): Add GLICB_2.3.3 set.
2003-03-152003-03-15 Roland McGrath <roland@redhat.com>Roland McGrath
* sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a static function by that name instead of BP_SYM (__libc_start_main). [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument. [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN. [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
2003-03-15More random patches.Ulrich Drepper
2003-03-15* dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.Roland McGrath
2003-03-152003-03-14 Roland McGrath <roland@redhat.com>Roland McGrath
* dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
2003-03-15* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.hJakub Jelinek
(SINGLE_THREAD): Use `header' prefix instead of `header.data'. * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise. * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P): Use `header.' prefix. * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
2003-03-15(SINGLE_THREAD): Use `header' prefix instead of `header.data'.Jakub Jelinek
2003-03-15Use 64-bit loading.Ulrich Drepper
2003-03-15Update.Ulrich Drepper
2003-03-15 Ulrich Drepper <drepper@redhat.com> * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use __builtin_frame_address, use stack pointer. * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME instead of __builtin_frame_pointer.
2003-03-15Update.Ulrich Drepper
* tst-basic1.c (do_test): Add cast to avoid warning. * tst-basic2.c (do_test): Likewise.
2003-03-14Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct amount of stack correction.
2003-03-14Use correct amount of stack correction.Ulrich Drepper
2003-03-14* sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.Roland McGrath
* sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
2003-03-142003-03-14 Jakub Jelinek <jakub@redhat.com>Roland McGrath
* sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file. * sysdeps/unix/sysv/linux/sparc/Makefile ($(objpfx)specs): Use full path for crt[in].o.
2003-03-14Update.Ulrich Drepper
2003-03-14 Ulrich Drepper <drepper@redhat.com> * tst-fork4.c: Use test-skeleton.c. * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined. * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
2003-03-14(start_thread): Use CALL_THREAD_FCT if defined.Ulrich Drepper
2003-03-14* init.c: Fix typo "#eli" for "#else".Roland McGrath
2003-03-14* allocatestack.c (__stack_user): Use hidden_data_def.Roland McGrath
* pthread_create.c (__pthread_keys): Likewise. * init.c [__powerpc__] (__NR_set_tid_address): Define it. * tst-fork4.c: New file. * Makefile (tests): Add it.
2003-03-14* descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], soRoland McGrath
we always define the padding space. [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC stopped supporting its own extensions fully. [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper struct also called `header', so `header.multiple_threads' is the field name to use on all machines. * allocatestack.c (allocate_stack): Use `header.' prefix. * sysdeps/pthread/createthread.c (create_thread): Likewise. * pthread_create.c (__pthread_create_2_1): Likewise. * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise. (THREAD_SELF): Likewise. * sysdeps/x86_64/tls.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P): Likewise. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (SINGLE_THREAD_P): Likewise. * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18] value directly.
2003-03-142003-03-14 Roland McGrath <roland@redhat.com>Roland McGrath
* descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so we always define the padding space. [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC stopped supporting its own extensions fully. [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper struct also called `header', so `header.multiple_threads' is the field name to use on all machines. * allocatestack.c (allocate_stack): Use `header.' prefix. * sysdeps/pthread/createthread.c (create_thread): Likewise. * pthread_create.c (__pthread_create_2_1): Likewise. * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise. (THREAD_SELF): Likewise. * sysdeps/x86_64/tls.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P): Likewise. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (SINGLE_THREAD_P): Likewise.
2003-03-14Update.Ulrich Drepper
2003-03-14 Ulrich Drepper <drepper@redhat.com> * localedata/mn_MN: New file. Contributed by Sanlig Badral <badral@chinggis.com>.
2003-03-14Mongolian language locale for Mongolia.Ulrich Drepper
2003-03-14* sysdeps/mips/fpu/bits/mathdef.h: New. (__NO_LONG_DOUBLE_MATH): Define for o32.Alexandre Oliva
* sysdeps/mips/fpu/bits/mathdef.h: New. (__NO_LONG_DOUBLE_MATH): Define for o32.
2003-03-14* sysdeps/mips/sys/asm.h: Formatting changes. (PTR, PTRSIZE, PTRLOG): Adjust ↵Alexandre Oliva
for all 3 ABIs. (CPADD): Define for all of them. (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64, SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP, NARGSAVE): Define per ABI spec. (END): Don't redefine. (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA, LONG_SRAV): Remove duplicate definitions. (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI, PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL, PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32. (PTR_LA): Define for all 3 ABIs. * sysdeps/mips/sys/asm.h: Formatting changes. (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs. (CPADD): Define for all of them. (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64, SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP, NARGSAVE): Define per ABI spec. (END): Don't redefine. (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA, LONG_SRAV): Remove duplicate definitions. (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI, PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL, PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32. (PTR_LA): Define for all 3 ABIs.
2003-03-14Update.Ulrich Drepper
2003-03-14 Ulrich Drepper <drepper@redhat.com> * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile. (THREAD_GETMEM_NC): Likewise.
2003-03-14(THREAD_GETMEM): Makr asms volatile. (THREAD_GETMEM_NC): Likewise.Ulrich Drepper
2003-03-14* sysdeps/mips/dl-machine.h: Include sys/asm.h. (elf_machine_matches_host): ↵Alexandre Oliva
Prevent linking of o32 and n32 together. (elf_machine_dynamic): Document assumption on $gp. (STRINGXP, STRINGXV, STRINGV_): New macros. (elf_machine_load_address): Use them to stringize PTR_LA and PTR_SUBU. (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in... (_dl_runtime_resolve): Adjust it for all 3 ABIs. (__dl_runtime_resolve): Cast the symtab initializer to the right type. (RTLD_START): Use it. Adjust it for all 3 ABIs. (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP. Handle 64-bit R_MIPS_REL composite relocation and accept R_MIPS_64 relocations to shift addend size to 64 bits. Document assumption regarding local GOT entries. Document backward-compatibility departing from the ABI behavior in applying relocations that reference section symbols, no longer used. Support relocations to mis-aligned offsets. * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete. * sysdeps/mips/dl-machine.h: Include sys/asm.h. (elf_machine_matches_host): Prevent linking of o32 and n32 together. (elf_machine_dynamic): Document assumption on $gp. (STRINGXP, STRINGXV, STRINGV_): New macros. (elf_machine_load_address): Use them to stringize PTR_LA and PTR_SUBU. (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in... (_dl_runtime_resolve): Adjust it for all 3 ABIs. (__dl_runtime_resolve): Cast the symtab initializer to the right type. (RTLD_START): Use it. Adjust it for all 3 ABIs. (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP. Handle 64-bit R_MIPS_REL composite relocation and accept R_MIPS_64 relocations to shift addend size to 64 bits. Document assumption regarding local GOT entries. Document backward-compatibility departing from the ABI behavior in applying relocations that reference section symbols, no longer used. Support relocations to mis-aligned offsets. * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
2003-03-14* sysdeps/unix/sysv/linux/mips/readelflib.c: New file.Alexandre Oliva
* sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
2003-03-14* sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (_KERNEL_NSIG_BPW): Define ↵Alexandre Oliva
in terms of _MIPS_SZLONG. * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and restore_rt functions. Use them. * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG. * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and restore_rt functions. Use them.
2003-03-14* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't .set mips2 ↵Alexandre Oliva
on new abis. 2003-03-14 Alexandre Oliva <aoliva@redhat.com> * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't .set mips2 on new abis.
2003-03-14Update.Ulrich Drepper
2003-03-13 Ulrich Drepper <drepper@redhat.com> * posix/getconf.c: Recognize POSIX2_SYMLINKS. * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS. * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS. * sysdeps/posix/pathconf.c: Likewise. * sysdeps/unix/sysv/linux/fpathconf.c: Likewise. * sysdeps/unix/sysv/linux/pathconf.c: Likewise. * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks. * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic words.
2003-03-14(allocate_stack): If MULTI_PAGE_ALIASING is defined and the size of the ↵Ulrich Drepper
stack which must be allocated is a multiple, allocate one more page.
2003-03-14* include/gmp.h: Include/gmp-mparam.h. * stdlib/strtod.c: Include ↵Alexandre Oliva
gmp-mparam.h before gmp.h and gmp-impl.h. * include/gmp.h: Include/gmp-mparam.h. * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and gmp-impl.h. 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
2003-03-14* elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if ↵Alexandre Oliva
ELF_MACHINE_NO_RELA is set. * elf/rtld.c (dl_main): No prelink support for REL-only. * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if ELF_MACHINE_NO_RELA is set. * elf/rtld.c (dl_main): No prelink support for REL-only.
2003-03-14* sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32, FLAG_MIPS64_LIBN64): ↵Alexandre Oliva
Define. * elf/cache.c (print_entry): Handle mips64 n32 and n64. * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32, FLAG_MIPS64_LIBN64): Define. * elf/cache.c (print_entry): Handle mips64 n32 and n64. 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
2003-03-14* sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis. * ↵Alexandre Oliva
sysdeps/mips/memset.S: Likewise. * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11 depending on the ABI. * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis. * sysdeps/mips/memset.S: Likewise. * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11 depending on the ABI. 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
2003-03-14* sysdeps/mips/atomicity.h (exchange_and_add, atomic_add): Don't .set mips2 ↵Alexandre Oliva
on new abi. (compare_and_swap): Likewise. Support 64-bit longs on n64. * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add): Don't .set mips2 on new abi. (compare_and_swap): Likewise. Support 64-bit longs on n64. 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
2003-03-14* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Don't .set mips2 on new ↵Alexandre Oliva
abi. * sysdeps/mips/pt-machine.h (__compare_and_swap): Likewise. Handle 64-bit longs on n64. 2003-03-14 Alexandre Oliva <aoliva@redhat.com> * sysdeps/mips/pspinlock.c (__pthread_spin_lock): Don't .set mips2 on new abi. * sysdeps/mips/pt-machine.h (__compare_and_swap): Likewise. Handle 64-bit longs on n64.
2003-03-14* stdlib/fpioconst.h: Include gmp.h with angle brackets.Alexandre Oliva
2003-03-14 Alexandre Oliva <aoliva@redhat.com> * stdlib/fpioconst.h: Include gmp.h with angle brackets.