aboutsummaryrefslogtreecommitdiff
path: root/elf
AgeCommit message (Collapse)Author
2000-07-13Update.Ulrich Drepper
* elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2. * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the report that we are out of memory. * elf/dl-deps.c (_dl_map_object_deps): Likewise. * elf/dl-libc.c (dlerror_run): Likewise. * elf/dl-open.c (_dl_open): Likewise. * elf/rtld.c (dl_main): Likewise. * elf/dl-error.c: Define _dl_out_of_memory. (_dl_signal_error): Return _dl_signal_error if we cannot duplicate the error string. * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory. * dlfcn/dlerror.c (free_key_mem): Also free error string. * iconv/loop.c: Fix comment.
2000-07-12Update.Ulrich Drepper
2000-07-12 Andreas Jaeger <aj@suse.de> * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to compiler. (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS. (CFLAGS-dl-cache.c): Likewise. (CFLAGS-ldconfig.c): Added, passes directory locations. * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to locate cache. * elf/ldconfig.c (LD_SO_CONF): Likewise. (main): Use configured LIBDIR and SLIBDIR. 2000-07-11 Jakub Jelinek <jakub@redhat.com> * math/bits/cmathcalls.h (cimag): Add __THROW. (creal, conj): Likewise. * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left by negative value.
2000-07-10Update.Ulrich Drepper
2000-07-09 Mark Kettenis <kettenis@gnu.org> * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds... * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here. 2000-07-10 Ulrich Drepper <drepper@redhat.com> * include/features.h: Include ISO C99 features if the compiler used is an ISO C99 compiler. Patch by Joseph S. Myers <jsm28@cam.ac.uk>. 2000-07-08 Mark Kettenis <kettenis@gnu.org> * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
2000-07-01Update.Ulrich Drepper
2000-07-01 Andreas Jaeger <aj@suse.de> * intl/Makefile (generated-dirs): New. * elf/Makefile (generated): trusted-dirs.h is always generated, move out of build-shared condition. (generated): Merge the two entries for build-shared. 2000-07-01 Ulrich Drepper <drepper@redhat.com> * debug/Makefile (distribute): Add xtrace.sh.
2000-06-30Update.Ulrich Drepper
* elf/Makefile (LDFLAGS-origtest): Actually add it.
2000-06-27* elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM (). Greg McGary
* include/libc-symbols.h (weak_extern): Add extra level of expansion. (symbol_version, default_symbol_version): Factor redundant definitions out of conditional. * linuxthreads/sysdeps/pthread/bits/libc-lock.h: Wrap BP_SYM () around weak extern declarations of pthread functions that have pointers in their return+arg signatures. 2000-06-27 Greg McGary <greg@mcgary.org> * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM (). * include/libc-symbols.h (weak_extern): Add extra level of expansion. (symbol_version, default_symbol_version): Factor redundant definitions out of conditional. * linuxthreads/sysdeps/pthread/bits/libc-lock.h: Wrap BP_SYM () around weak extern declarations of pthread functions that have pointers in their return+arg signatures.
2000-06-24Update.Ulrich Drepper
2000-06-24 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define. * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct): Define. * elf/elf.h (NT_PRFPXREG): Define.
2000-06-22Update.Andreas Jaeger
* elf/dl-reloc.c (_dl_relocate_object): Fix typos.
2000-06-21* sysdeps/pthread/timer_routines.c: Include <stdlib.h> for memset Andreas Jaeger
prototype. * join.c: Include <stdlib.h> for exit prototype. * elf/vismod2.c: Include <stdlib.h> for abort prototype. * rt/aio_suspend.c: Likewise. 2000-06-21 Andreas Jaeger <aj@suse.de> * sysdeps/pthread/timer_routines.c: Include <stdlib.h> for memset prototype. * join.c: Include <stdlib.h> for exit prototype.
2000-06-20Update.Ulrich Drepper
2000-06-19 Ulrich Drepper <drepper@redhat.com> * elf/sprof.c (print_version): Update year. * elf/sprof.c (load_shobj): Don't always add load address to dynamic table entry values. Use D_PTR. * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird binaries without PLT. Patches by James Mathiesen <james@curl.com>.
2000-06-14Update.Ulrich Drepper
* crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h, ufc.c, speeds.c, README.ufc-crypt, and Banner. * sysdeps/sparc/Subdirs: New file. * locale/Makefile (distribute): Add weightwc.h and programs/localedef.h. * time/Makefile (distribute): Add datemsk. * sysdeps/ia64/Dist: Add softpipe.h. * sysdeps/unix/sysv/aix/Dist: New file. * posix/setpgrp.c: Moved to... * sysdeps/generic/setpgrp.c: ...here. New file. * io/mknod.c: Moved to... * sysdeps/generic/mknod.c: ...here. New file. * sysdeps/unix/sysv/linux/ia64/Dist: New file. * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h. * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c. * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S. * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h. * posix/Makefile (routines): Add spawnattr_getsigmask, spawnattr_getschedpolicy, spawnattr_getschedparam, spawnattr_setsigmask, spawnattr_setschedpolicy, and spawnattr_setschedparam. * posix/Versions: Add posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and posix_spawnattr_setschedparam. * posix/spawnattr_setschedparam.c: Fix typo. * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask): Correct typo. * login/programs/utmpd.c: Removed. * login/programs/utmpd.h: Removed. * login/programs/utmpd-private.h: Removed. * Makefile (distribute): Add include/db_185.h and include/db.h. * iconvdata/Makefile (distribute): Add iso-ir-165.c and iso-ir-165.h. * elf/Makefile (distribute): Add missing files. * dlfcn/Makefile: Add back rules to include eval in libdl.so. * elf/eval.c: Moved to... * dlfcn/eval.c: ...here. New file. * Makefile (distribute): Also distribute ChangeLog.1?.
2000-06-13Update.Ulrich Drepper
* elf/elf.h (R_SH_NUM): Got accidently dropped.
2000-06-13Update.Ulrich Drepper
2000-06-12 Kazumoto Kojima <kkojima@rr.iij4u.or.jp> Yutaka Niibe <gniibe@chroot.org> * configure.in: Add machine sh3, sh4. * elf/elf.h: Add SH specific declarations of relocations. * shlib-versions: Add sh*-*-linux* cases.
2000-06-10Update.Ulrich Drepper
2000-06-10 Jakub Jelinek <jakub@redhat.com> * elf/link.h: Remove libc internal declarations. * include/link.h: Move them here.
2000-06-10Update.Ulrich Drepper
2000-06-09 Ulrich Drepper <drepper@redhat.com> Rewrite error message handling. * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to _dl_catch_error. * elf/dl-error (struct catch): Add objname member. (_dl_signal_error): Take new parameter with object name. When passing message on simply store object name and duplicate error message. (_dl_catch_error): Take new parameter. Store object name in the place pointed to. * include/dlfcn.h: Adjust _dl_catch_error prototype. * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype. * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error. * elf/dl-open.c (_dl_open): Likewise. * elf/rtld.c (dl_main): Likewise. * elf/dl-close.c: Mark error messages with N_(). * elf/dl-deps.c: Likewise. * elf/dl-error.c: Likewise. * elf/dl-load.c: Likewise. * elf/dl-open.c: Likewise. * elf/dl-reloc.c: Likewise. * elf/dl-support.c: Likewise. * elf/dl-sym.c: Likewise. * elf/dl-version.c: Likewise. * elf/dl-lookup.c: Add comments about problems with error message translations. * elf/dl-reloc.c: Likewise. * elf/dl-version.c: Likewise.
2000-06-09Update.Ulrich Drepper
2000-06-09 Jes Sorensen <jes@linuxcare.com> * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain the address of a symbol so function pointers are handled properly.
2000-06-08Update.Ulrich Drepper
* elf/Makefile (distribute): Add dl-dtprocnum.h.
2000-06-08Update.Ulrich Drepper
* include/elf.h: Include also <dl-dtprocnum.h>. * elf/dl-deps.c: Likewise. * elf/dl-lookup.c: Likewise. * elf/dl-runtime.c: Likewise. * elf/dl-version.c: Likewise. * elf/do-rel.h: Likewise. * elf/dynamic-link.h: Likewise. * elf/link.h: Likewise. * elf/rtld.c: Likewise. * sysdeps/generic/dl-dtprocnum.h: New file. * sysdeps/ia64/dl-dtprocnum.h: New file. * sysdeps/mips/dl-dtprocnum.h: New file. * sysdeps/sparc/dl-dtprocnum.h: New file.
2000-06-08Update.Ulrich Drepper
* elf/do-lookup.h: Add some __builtin_expect.
2000-06-08Update.Ulrich Drepper
* dlfcn/dlfcn.h: Pretty print dladdr declaraction. * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK. (_dl_dynamic_weak): New variable. * elf/dl-support.c: Likewise. * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak. * elf/do-lookup.h: If we find a weak definition treat it like a normal symbol unless _dl_dynamic_weak is nonzero. In the latter case treat it like before.
2000-06-08Update.Ulrich Drepper
* elf/dl-addr.c (_dl_addr): Fill in correct information if symbol is in main program. * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
2000-06-08Update.Ulrich Drepper
* elf/dl-addr.c (_dl_addr): Do exact testing of address range using l_map_start and l_map_end.
2000-06-08Update.Ulrich Drepper
* elf/dl-version.c: Add __builtin_expect in many places.
2000-06-07Update.Ulrich Drepper
2000-06-07 Andreas Jaeger <aj@suse.de> * elf/Makefile: Build ldconfig only when building shared libraries. 2000-06-07 Jakub Jelinek <jakub@redhat.com> * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if __USE_ISOC99. (fdimf, __fdim, fdim): Likewise.
2000-06-04Update.Ulrich Drepper
* elf/elf.h (SHT_SUNW_move): Define.
2000-06-03Add more Solaris compatiblity definitions.Ulrich Drepper
2000-06-02Update.Ulrich Drepper
2000-06-02 Ulrich Drepper <drepper@redhat.com> * elf/rtld.c (process_envvars): Test for = after variable name.
2000-06-02Update.Ulrich Drepper
* elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before shifting.
2000-05-30Update.Ulrich Drepper
* locale/Versions [libc] (GLIBC_2.2): Add localeconv. * locale/localeconv.c: Make function versioned (with same definition).
2000-05-30(modules-names): Strip before using it.Ulrich Drepper
2000-05-29* elf/readlib.c (interpreters): Use LD_SO since this is supported Andreas Jaeger
for all platforms.
2000-05-27Update.Andreas Jaeger
2000-05-27 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the normal version now. * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/mips/pread.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/arm/pread.c: Likewise. * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check endianness to decide how to pass arguments. * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise. * elf/vismain.c: Use test-skeleton interface. (TEST_FUNCTION): New macro. (do_test): Renamed from main.
2000-05-27Update.Ulrich Drepper
* elf/dl-load.c (_dl_map_object): Don't ignore RPATHs of loader == NULL.
2000-05-26Update.Andreas Jaeger
2000-05-26 Andreas Jaeger <aj@suse.de> * elf/ldconfig.h: Update parameter list for process_elf_file. * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file): Add parameter file_length and pass it ot process_elf*file. * sysdeps/generic/readelflib.c (check_ptr): New. (process_elf_file): Use check_ptr to check all accesses to the mmapped file. Add parameter file_length. * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify library names. * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion. Closes PR libc/1573, reported by Bradley White <bww@laurelnetworks.com>.
2000-05-25Update.Ulrich Drepper
* csu/Makefile (routines): Add check_fds. * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID binaries. Add various __builtin_expect. * sysdeps/generic/libc-start.c: Move check_fds and helper functions... * sysdeps/generic/check_fds.c: ...here. New file. * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID binaries if file /etc/suid-debug is available.
2000-05-24Update.Ulrich Drepper
* elf/dl-sym.c: Minor cleanups.
2000-05-23Update.Ulrich Drepper
2000-05-23 Ulrich Drepper <drepper@redhat.com> * elf/Makefile (tests): Add $(tests-vis-$(have-protected)). (tests-vis-yes): Add vismain. (modules-names): Add $(modules-vis-$(have-protected)). (modules-vis-yes): Add vismod1, vismod2, and vismod3. Add rules to generate and run vismain. * elf/vismain.c: New file. * elf/vismod1.c: New file. * elf/vismod2.c: New file. * elf/vismod3.c: New file.
2000-05-23(tests): Add $(tests-vis-$(have-protected)). (tests-vis-yes): Add vismain. ↵Ulrich Drepper
(modules-names): Add $(modules-vis-$(have-protected)). (modules-vis-yes): Add vismod1, vismod2, and vismod3. Add rules to generate and run vismain.
2000-05-22Update.Ulrich Drepper
2000-05-22 Jakub Jelinek <jakub@redhat.com> * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements, free it and set to (void *) -1.
2000-05-22Update.Ulrich Drepper
2000-05-21 H.J. Lu <hjl@gnu.org> * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter with noexec and noplt parameter. (do_lookup): Likewise. * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of do_lookup. Support STV_PROTECTED. (_dl_lookup_symbol_skip): Likewise. (_dl_lookup_versioned_symbol): Likewise. (_dl_lookup_versioned_symbol_skip): Likewise. * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY. * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
2000-05-22(do_lookup_versioned): Replace reloc_type parameter with noexec and noplt ↵Ulrich Drepper
parameter. (do_lookup): Likewise.
2000-05-17Update.Andreas Jaeger
2000-05-17 Jakub Jelinek <jakub@redhat.com> * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if not yet defined. (_dl_cache_check_flags): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next dl-cache.h. 2000-05-17 Andreas Jaeger <aj@suse.de> * manual/creature.texi (Feature Test Macros): Remove paragraph since the description is wrong. Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>. 2000-05-17 Andreas Jaeger <aj@suse.de> * time/test_time.args: Removed. * time/Makefile (test_time-ARGS): Added contents here instead. * posix/tstgetopt.args: Removed. * posix/Makefile (tstgetopt-ARGS): Added contents here instead. * Rules: Allow arguments for test files to be specified in Makefile with testname-ARGS; remove rules with .args in it. * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1, remove old bogus rule for opendir-tst1.args. * stdlib/test-canon.c: Rewrite to use test-skeleton.c. * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir into objdir. This allows a readonly sourcetree. Reported by lrgallardo@yahoo.com, closes PR libc/1421. 2000-05-16 Andreas Jaeger <aj@suse.de>, David Huggins-Daines <dhd@linuxcare.com> * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set cache_data in case of only new cache format correctly. * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct cache_file_new. * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align struct cache_file_new. * elf/cache.c (save_cache): Fix str_offset if only new cache is present. * elf/cache.c (save_cache): Align struct new_file_cache. (print_cache): Likewise.
2000-05-152000-05-13 Jakub Jelinek <jakub@redhat.com>Andreas Jaeger
* elf/soinit.c (__libc_global_ctors): Move __pthread_initialize_minimal call out of HAVE_DWARF2_* defines. * resolv/resolv.h (__res_state): Added __attribute__((const)). (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as variable, don't define it to __res_state call. 2000-05-13 Jakub Jelinek <jakub@redhat.com> * internals.h (__RES_PTHREAD_INTERNAL): Define. 2000-05-13 Jakub Jelinek <jakub@redhat.com> * internals.h (__RES_PTHREAD_INTERNAL): Define.
2000-05-10Update.Andreas Jaeger
* elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt argument. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle R_SPARC_UA64. * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file. 2000-05-10 Jakub Jelinek <jakub@redhat.com>
2000-05-10Update.Andreas Jaeger
at proper place. Compute the high nibble correctly.
2000-05-10Update.Andreas Jaeger
2000-05-10 Jakub Jelinek <jakub@redhat.com> * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message at proper place.
2000-05-10Update.Andreas Jaeger
* elf/ldconfig.c: Include elf.h.
2000-05-10Update.Andreas Jaeger
2000-05-09 Jakub Jelinek <jakub@redhat.com> * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero. (_dl_vsym): Likewise. Reported by Owen Taylor <otaylor@redhat.com>. * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini always.
2000-05-08Update.Ulrich Drepper
2000-05-08 Jakub Jelinek <jakub@redhat.com> * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that they are not dlclose'd from underneath us.
2000-05-082000-05-08 Jakub Jelinek <jakub@redhat.com>Andreas Jaeger
* elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in sizeof(struct link_map *) chunks, not in bytes.