aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-07-31Update.Ulrich Drepper
2003-07-31 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Define HAVE_CMOV. Patch by Nicholas Miell <nmiell@attbi.com>.
2003-07-31Update.Ulrich Drepper
2003-07-30 Jakub Jelinek <jakub@redhat.com> * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value, call dl_signal_error directly. If already relocated, call GL(dl_init_static_tls) directly, otherwise queue it for later. (CHECK_STATIC_TLS): Undo 2003-07-24 change. * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls). * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls for all static TLS initializations delayed in _dl_allocate_static_tls. * elf/dl-support.c (_dl_init_static_tls): New variable. * include/link.h (struct link_map): Add l_need_tls_init. * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls. (_dl_nothread_init_static_tls): New prototype. (_dl_allocate_static_tls): Adjust prototype. * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive. elf_machine_rela_relative): Adjust. (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
2003-07-31(_dl_allocate_static_tls): Don't return any value, call dl_signal_error ↵Ulrich Drepper
directly. If already relocated, call GL(dl_init_static_tls) directly, otherwise queue it for later. (CHECK_STATIC_TLS): Undo 2003-07-24 change.
2003-07-31* elf/dynamic-link.h (elf_machine_rel, elf_machine_rela, ↵Alexandre Oliva
elf_machine_rel_relative, elf_machine_rela_relative): Don't assume reloc_addr is aligned. * sysdeps/alpha/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative, elf_machine_rela_relative): Adjust. * sysdeps/cris/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/hppa/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative, elf_machine_rela_relative): Adjust. * sysdeps/ia64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/m68k/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/mips/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela_relative, elf_machine_rela): Adjust. * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): * sysdeps/sh/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/x86_64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. 2003-07-31 Alexandre Oliva <aoliva@redhat.com> * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative, elf_machine_rela_relative): Don't assume reloc_addr is aligned. * sysdeps/alpha/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative, elf_machine_rela_relative): Adjust. * sysdeps/cris/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/hppa/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela, elf_machine_rel_relative, elf_machine_rela_relative): Adjust. * sysdeps/ia64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/m68k/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/mips/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela_relative, elf_machine_rela): Adjust. * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): * sysdeps/sh/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust. * sysdeps/x86_64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative): Adjust.
2003-07-30revert bogus commitRoland McGrath
2003-07-30Update.Ulrich Drepper
2003-07-29 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore alignment of TCB used before the last change so that it matches ld's output for IE code.
2003-07-30(_dl_determine_tlsoffset): Restore alignment of TCB used before the last ↵Ulrich Drepper
change so that it matches ld's output for IE code.
2003-07-29* include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,Roland McGrath
__ctype_tolower_loc): Avoid "dereferencing type-punned pointer will break strict-aliasing rules" warnings.
2003-07-29* elf/dl-support.c: Likewise.Roland McGrath
2003-07-29* elf/Makefile: Revert accidental changes in last commit.Roland McGrath
2003-07-29* rt/tst-timer2.c: New file.Roland McGrath
* rt/Makefile (tests): Add it.
2003-07-29* elf/dl-support.c (_dl_hwcap): Add nocommon attribute.Roland McGrath
2003-07-29* elf/Makefile (tests) [$(build-shared) = yes]:Roland McGrath
Depend on $(test-modules). * dlfcn/Makefile: Likewise.
2003-07-28* sysdeps/generic/bits/types.h (__STD_TYPE): New macro.Roland McGrath
Use that instead of `typedef' when using __*_TYPE macros in rhs.
2003-07-28* elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.Roland McGrath
* elf/tst-tlsmod14a.c: Likewise. * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h> before <linux/sysctl.h>.
2003-07-282003-07-28 Roland McGrath <roland@redhat.com>Roland McGrath
* sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h> before <linux/sysctl.h>.
2003-07-282003-07-14 Guido Guenther <agx@sigxcpu.org>Andreas Jaeger
* sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Add IS_IN_librt, use L() for local labels. 2003-07-14 Guido Guenther <agx@sigxcpu.org> * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Add IS_IN_librt, use L() for local labels.
2003-07-27Update.Ulrich Drepper
* sysdeps/unix/sysv/syscalls.list: time syscall never fails. * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails. * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
2003-07-27Update.Ulrich Drepper
2003-07-27 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/syscalls.list: umask syscall never fails.
2003-07-27umask syscall never fails.Ulrich Drepper
2003-07-27* sysdeps/unix/sysv/linux/init-first.c: Mark init as used.Andreas Jaeger
2003-07-27Include error.h for error prototype.Andreas Jaeger
2003-07-27 Andreas Jaeger <aj@suse.de> * collate-test.c: Include error.h for error prototype. * xfrm-test.c: Likewise.
2003-07-25Update.Ulrich Drepper
2003-07-25 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version. Include bits/a.out.h. * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add bits/a.out.h. * sysdeps/unix/sysv/linux/bits/a.out.h: New file. * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file. * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file. * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file. * sysdeps/unix/sysv/linux/alpha/a.out.h: New file. * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file. * sysdeps/unix/sysv/linux/sparc/a.out.h: New file. * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
2003-07-25Update.Ulrich Drepper
2003-07-24 Jakub Jelinek <jakub@redhat.com> * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE if aiocbp != NULL and has already completed. Return -1/EINVAL if aiocbp->aio_fildes does not match fildes.
2003-07-25Update.Ulrich Drepper
* timezone/zic.c (rpytime): Replace cheap overflow check with a functioning one.
2003-07-24Update.Ulrich Drepper
2003-07-24 Ulrich Drepper <drepper@redhat.com> * include/link.h (struct link_map): Add l_tls_firstbyte_offset field. * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset): Fix calculation of offsets to take misalignment of first byte in file into account. * elf/dl-load.c (_dl_map_object_from_fd): Initialize l_tls_firstbyte_offset field. * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise. * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int. Take l_tls_firstbyte_offset information into account. (CHECK_STATIS_TLS): _dl_allocate_static_tls can fail now. * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype. * elf/Makefile: Add rules to build and run tst-tls14. * elf/tst-tls14.c: New file. * elf/tst-tlsmod14a.c: New file. * elf/tst-tlsmod14b.c: New file.
2003-07-23Update.Ulrich Drepper
2003-07-23 Jakub Jelinek <jakub@redhat.com> * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define. (lio_listio): Use it. * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of after few defines to avoid duplication.
2003-07-22Update.Ulrich Drepper
* include/stdio.h (__libc_fatal): Add libc_hidden_proto. * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose): Likewise. * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose): Add libc_hidden_def. * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise. * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise. * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise. * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE, __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE. * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE. * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last change. * sysdeps/generic/unwind.inc: Removed.
2003-07-22Update.Ulrich Drepper
2003-07-22 Jakub Jelinek <jakub@redhat.com> * include/resolv.h (__resp): Declare. Define to __libc_resp if in libc.so. (_res): If USE___THREAD, define to (*__resp). * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol even if USE___THREAD. (__resp): New __thread variable. (__libc_resp): New alias. * resolv/Versions (libc): Export _res@GLIBC_2.0 even if USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE. * sysdeps/generic/res-state.c (__res_state): Return __resp if USE___THREAD.
2003-07-22Update.Ulrich Drepper
2003-07-22 H.J. Lu <hongjiu.lu@intel.com> * elf/dl-support.c (_dl_hwcap): New variable. (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries. * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h> and <dl-procinfo.h>. (__feclearexcept): Clear MXCSR if needed. * sysdeps/i386/fpu/fsetexcptflg.c: Likewise. * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document that newer hardware needs more than these macros. * sysdeps/i386/setfpucw.c: New file. 2003-07-22 Jakub Jelinek <jakub@redhat.com> * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig. * elf/ldconfig.c: Include dl-procinfo.c. (PROCINFO_CLASS): Define. * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define. * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file. * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file. * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS): Define if not yet defined. Use it instead of EXTERN. Undefine at the end of the file. * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c (PROCINFO_CLASS): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c (PROCINFO_CLASS): Likewise. 2003-07-22 H.J. Lu <hongjiu.lu@intel.com> * elf/ldconfig.c (main): Issue a fatal error if relative path is used to build cache. 2003-07-22 Ulrich Drepper <drepper@redhat.com> * elf/readlib.c (process_file): Avoid possible overflow in assignment.
2003-07-22(process_file): Avoid possible overflow in assignment.Ulrich Drepper
2003-07-22* manual/charset.texi (Converting a Character): Fix example code so aRoland McGrath
valid pointer is returned.
2003-07-222003-07-21 Art Haas <ahaas@airmail.net>Roland McGrath
* manual/charset.texi (Converting a Character): Fix example code so a valid pointer is returned.
2003-07-22(process_file): Check that file is a shared object.Andreas Jaeger
2003-07-22Update.Andreas Jaeger
* elf/readlib.c (process_file): Check that file is a shared object.
2003-07-22Update.Andreas Jaeger
* elf/sofini.c (__FRAME_END__): Use attribute used so that gcc will not optimize it away. (__DTOR_END__): Likewise. (__CTOR_END__): Likewise.
2003-07-22Update.Andreas Jaeger
2003-07-22 Andreas Jaeger <aj@suse.de> * include/libc-symbols.h (_elf_set_element): Use attribute used so that gcc will not optimize it away. (link_warning): Likewise.
2003-07-22Update.Ulrich Drepper
2003-07-22 Ulrich Drepper <drepper@redhat.com> * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling. * wcsmbs/Makefile (tests): Add tst-wcpncpy. * wcsmbs/tst-wcpncpy.c: New file.
2003-07-22(_elf_set_element): Use attribute used so that gcc will not optimize it ↵Andreas Jaeger
away. (link_warning): Likewise.
2003-07-22(tests): Add tst-wcpncpy.Ulrich Drepper
2003-07-22Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
2003-07-22Update.Ulrich Drepper
* sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of stmxcsr and ldmxcsr.
2003-07-22Update.Ulrich Drepper
* sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask. * sysdeps/i386/fpu/feenablxcpt.c: Likewise. * sysdeps/i386/fpu/feholdexcpt.c: Likewise. * sysdeps/i386/fpu/fesetround.c: Likewise. * sysdeps/i386/fpu/ftestexcept.c: Likewise.
2003-07-21Update.Ulrich Drepper
2003-07-21 Ulrich Drepper <drepper@redhat.com> * Makerules (build-module-helper): Add -z defs unless explicitly said not to do it. * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs which has undefined symbols. * elf/Makefile: Likewise.
2003-07-21Update.Ulrich Drepper
2003-07-21 HJ Lu <hongjiu.lu@intel.com> * elf/ldconfig.c (search_dir): Treat symlink as regular file if it won't point to itself.
2003-07-20Update.Ulrich Drepper
2003-07-20 Ulrich Drepper <drepper@redhat.com> * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
2003-07-20Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
2003-07-20lseek and llseek are no cancellation points.Ulrich Drepper
2003-07-20* iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called Andreas Jaeger
STANDARD_TO_LOOP_ERR_HANDLER. * iconvdata/euc-jp-ms.c (BODY): Likewise. 2003-07-20 Andreas Jaeger <aj@suse.de> * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called STANDARD_TO_LOOP_ERR_HANDLER. * iconvdata/euc-jp-ms.c (BODY): Likewise.
2003-07-20Update.Ulrich Drepper
2003-07-20 Ulrich Drepper <drepper@redhat.com> * Makefile (libpthread-routines): Add pthread_attr_getaffinity and pthread_attr_setaffinity. * Versions [libpthread] (GLIBC_2.3.3): Likewise. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file. * pthread_attr_destroy.c: Free cpuset element if allocated. * pthread_create.c: Pass iattr as additional parameter to create_thread. * sysdeps/pthread/createthread.c: If attribute is provided and a new thread is created with affinity set or scheduling parameters, start thread with CLONE_STOPPED. * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and pthread_attr_setaffinity. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add cpuset element.