glibc/elf
Roland McGrath 216455bc28 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
members to the end, so a libpthread compiled with !USE_TLS will still
	find other members properly.

	* sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
	operand for DEST memory.  Fix dummy input operand to use SRC.
	Reported by Davin McCall <davmac@ozonline.com.au>.

	* sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
	alignment when initializing the DTV entry.

	* elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
	when TLS has not been set up, try to set it up if we can.
	* elf/tst-tls4.c: Revert last change.
	* elf/tst-tls5.c: Likewise.
	* elf/tst-tls6.c: Likewise.
	* elf/tst-tls7.c: Likewise.
	* elf/tst-tls8.c: Likewise.
	* elf/tst-tls9.c: Likewise.

	* sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
	* sysdeps/generic/ldsodefs.h: Declare it.
	* elf/Versions (ld: GLIBC_PRIVATE): Add it.
	* sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
	function, broken out of __libc_setup_tls.
	(init_static_tls): Likewise.
	(__libc_setup_tls): Call them.
	(_dl_tls_setup): New function, uses new subroutines.

	* elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
	Clear the pointer when returning true.
	(libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
	first element of the slotinfo list too.

	* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
	[SHARED].

	* sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
	(_dl_determine_tlsoffset): Likewise.

	* elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
	startup_error_tsd, made global.
	(dl_main): Update initialization.
	* elf/dl-tsd.c: Likewise.
	* sysdeps/generic/ldsodefs.h: Declare it.
2002-12-04 12:30:40 +00:00
..
.cvsignore
cache.c * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c. 2002-09-20 22:07:20 +00:00
chroot_canon.c Realloc error handling memory leak fix. 2001-12-29 15:57:15 +00:00
circleload1.c Update. 2002-07-17 00:34:35 +00:00
circlemod1.c Update. 2002-07-17 00:34:35 +00:00
circlemod1a.c Update. 2002-06-30 07:17:02 +00:00
circlemod2.c Update. 2002-07-17 00:34:35 +00:00
circlemod2a.c Update. 2002-07-17 00:34:35 +00:00
circlemod3.c Update. 2002-07-17 00:34:35 +00:00
circlemod3a.c Update. 2002-06-30 07:17:02 +00:00
constload1.c
constload2.c Add prototype for init. 2001-01-21 17:15:50 +00:00
constload3.c Update. 2000-12-17 17:50:56 +00:00
dblload.c Update. 2001-09-06 01:03:05 +00:00
dblloadmod1.c * elf/dblloadmod1.c: Add prototype to avoid warning. 2001-12-21 10:16:16 +00:00
dblloadmod2.c * elf/dblloadmod1.c: Add prototype to avoid warning. 2001-12-21 10:16:16 +00:00
dblloadmod3.c * elf/dblloadmod1.c: Add prototype to avoid warning. 2001-12-21 10:16:16 +00:00
dblunload.c Update. 2001-09-06 01:03:05 +00:00
dep1.c Update. 2000-12-15 16:03:57 +00:00
dep2.c Update. 2000-12-15 16:03:57 +00:00
dep3.c Update. 2000-12-15 16:03:57 +00:00
dep4.c Update. 2000-12-15 16:03:57 +00:00
dl-addr.c * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start 2002-09-27 07:29:51 +00:00
dl-close.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
dl-conflict.c * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS. 2002-10-17 12:10:17 +00:00
dl-debug.c Update. 2002-03-01 09:44:29 +00:00
dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28. This cripples the scope lists necessary to search for symbols in dependencies which are not in the global scope. 2002-08-21 22:36:32 +00:00
dl-dst.h Update. 2002-04-08 18:50:41 +00:00
dl-error.c * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro. 2002-11-24 23:56:47 +00:00
dl-fini.c * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order. 2002-11-07 20:47:27 +00:00
dl-init.c (_dl_init): Fix test of the size of the preinit_array section. (call_init): Optimize access to DT_INIT_ARRAY entry a bit. 2002-09-20 23:56:18 +00:00
dl-iteratephdr.c 2002-08-26 Brian Youmans <3diff@gnu.org> 2002-08-26 22:40:48 +00:00
dl-libc.c Update. 2002-11-19 19:30:55 +00:00
dl-load.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
dl-lookup.c Update. 2002-09-27 03:17:20 +00:00
dl-minimal.c * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
dl-misc.c * elf/dl-misc.c: Include <sysdep.h>. 2002-10-24 19:14:59 +00:00
dl-object.c Update. 2002-02-03 19:39:52 +00:00
dl-open.c 2002-11-03 Roland McGrath <roland@redhat.com> 2002-11-05 03:01:37 +00:00
dl-profile.c Update. 2002-08-03 07:02:10 +00:00
dl-profstub.c * include/bits/dlfcn.h: New file. 2002-08-10 07:54:55 +00:00
dl-reloc.c 2002-11-03 Roland McGrath <roland@redhat.com> 2002-11-05 03:01:37 +00:00
dl-runtime.c * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for 2002-09-18 18:32:27 +00:00
dl-support.c * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]). 2002-10-18 01:13:06 +00:00
dl-sym.c Update. 2002-04-13 07:55:02 +00:00
dl-tsd.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
dl-version.c Update. 2002-03-01 09:44:29 +00:00
do-lookup.h Update. 2002-04-13 07:55:02 +00:00
do-rel.h Define macro DO_ELF_MACHINE_REL_RELATIVE for 'elf_machine_rel_relative'. (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro instead of 'elf_machine_rel_relative'. 2002-09-28 04:29:49 +00:00
dynamic-link.h (elf_get_dynamic_info): Also relocate DT_HASH entry if necessary. 2002-09-27 02:56:54 +00:00
elf.h (EM_ST19): Fix typo. 2002-11-25 01:47:15 +00:00
failobj.c Update. 2000-12-17 17:50:56 +00:00
filter.c
filtmod1.c Update. 2000-12-17 17:50:56 +00:00
filtmod2.c Update. 2000-12-17 17:50:56 +00:00
firstobj.c Add prototype. 2001-02-06 10:38:10 +00:00
gen-trusted-dirs.awk
genrtldtbl.awk
global.c (main): Use proper prototype. 2001-03-21 07:21:34 +00:00
globalmod1.c Update. 2001-04-06 15:23:41 +00:00
initfirst.c Update. 2001-02-02 06:54:15 +00:00
interp.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
lateglobal.c
ldconfig.c Update. 2002-01-17 07:38:47 +00:00
ldd.bash.in Update. 2002-01-17 07:38:47 +00:00
link.h Update. 2001-07-25 20:47:02 +00:00
loadfail.c Update. 2000-11-26 06:18:02 +00:00
loadtest.c Update. 2001-09-08 16:27:08 +00:00
ltglobmod1.c Update. 2000-12-17 17:50:56 +00:00
ltglobmod2.c Update. 2000-12-15 16:03:57 +00:00
Makefile 2002-11-23 Roland McGrath <roland@redhat.com> 2002-11-23 21:34:16 +00:00
multiload.c Update. 2000-11-26 06:18:02 +00:00
neededobj1.c Update. 2000-12-17 17:50:56 +00:00
neededobj2.c Update. 2000-12-17 17:50:56 +00:00
neededobj3.c Update. 2000-12-17 17:50:56 +00:00
neededobj4.c Update. 2000-12-17 17:50:56 +00:00
neededobj5.c Update. 2000-12-31 06:09:08 +00:00
neededobj6.c Update. 2000-12-31 06:09:08 +00:00
neededtest2.c
neededtest3.c
neededtest4.c Update. 2000-12-31 06:09:08 +00:00
neededtest.c
next.c Update. 2000-11-26 06:18:02 +00:00
nextmod1.c Update. 2000-12-17 17:50:56 +00:00
nextmod2.c Update. 2000-12-17 17:50:56 +00:00
nodelete.c Update. 2000-11-26 06:18:02 +00:00
nodelmod1.c
nodelmod2.c
nodelmod3.c Update. 2000-12-17 17:50:56 +00:00
nodelmod4.c
nodlopen2.c Update. 2002-02-10 22:40:17 +00:00
nodlopen.c
nodlopenmod2.c Update. 2002-03-03 19:43:30 +00:00
nodlopenmod.c
noload.c Update. 2000-11-26 06:18:02 +00:00
order.c Update. 2000-11-26 06:18:02 +00:00
origtest.c Update. 2000-11-26 06:18:02 +00:00
pathoptobj.c Update. 2000-12-17 17:50:56 +00:00
preloadtest.c Update. 2000-12-15 16:03:57 +00:00
readlib.c 2002-09-04 Bruno Haible <bruno@clisp.org> 2002-09-05 18:52:18 +00:00
reldep2.c Update. 2001-09-08 17:45:32 +00:00
reldep3.c
reldep4.c Avoid compile warning. 2001-09-22 15:44:07 +00:00
reldep4mod1.c Update. 2001-05-22 23:55:23 +00:00
reldep4mod2.c Update. 2001-06-22 13:50:51 +00:00
reldep4mod3.c Update. 2001-05-22 23:55:23 +00:00
reldep4mod4.c Update. 2001-06-22 13:50:51 +00:00
reldep5.c Update. 2001-09-22 15:44:35 +00:00
reldep6.c Update. 2001-10-01 00:14:14 +00:00
reldep6mod0.c Update. 2001-10-01 00:14:14 +00:00
reldep6mod1.c Update. 2001-10-01 00:14:14 +00:00
reldep6mod2.c Update. 2001-10-01 00:14:14 +00:00
reldep6mod3.c Update. 2001-10-01 00:14:14 +00:00
reldep6mod4.c Update. 2001-10-01 00:14:14 +00:00
reldep7.c Update. 2002-04-15 17:10:22 +00:00
reldep7mod1.c Update. 2002-04-15 17:10:22 +00:00
reldep7mod2.c Update. 2002-04-15 17:10:22 +00:00
reldep.c
reldepmod1.c Update. 2000-12-17 17:50:56 +00:00
reldepmod2.c Update. 2000-12-17 17:50:56 +00:00
reldepmod3.c Update. 2000-12-17 17:50:56 +00:00
reldepmod4.c Update. 2000-12-17 17:50:56 +00:00
reldepmod5.c * elf/dblloadmod1.c: Add prototype to avoid warning. 2001-12-21 10:16:16 +00:00
reldepmod6.c * elf/dblloadmod1.c: Add prototype to avoid warning. 2001-12-21 10:16:16 +00:00
resolvfail.c
restest1.c Update. 2000-11-26 06:18:02 +00:00
restest2.c Update. 2001-05-22 22:30:18 +00:00
rtld-Rules * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command. 2002-10-14 01:03:16 +00:00
rtld.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
sln.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sofini.c
soinit.c Update. 2001-11-16 01:27:24 +00:00
sprof.c Update. 2002-08-25 04:51:08 +00:00
testobj1_1.c Update. 2000-12-15 16:03:57 +00:00
testobj1.c Update. 2000-12-15 16:03:57 +00:00
testobj2.c Update. 2000-12-15 16:03:57 +00:00
testobj3.c Update. 2000-12-15 16:03:57 +00:00
testobj4.c Update. 2000-12-15 16:03:57 +00:00
testobj5.c Update. 2000-12-15 16:03:57 +00:00
testobj6.c Update. 2000-12-15 16:03:57 +00:00
testobj.h Update. 2000-12-15 16:03:57 +00:00
tls-macros.h Update. 2002-11-21 03:06:21 +00:00
tst-array1.c * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY] 2002-11-07 22:28:16 +00:00
tst-array1.exp * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY] 2002-11-07 22:28:16 +00:00
tst-array2.c * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY] 2002-11-07 22:28:16 +00:00
tst-array2.exp * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY] 2002-11-07 22:28:16 +00:00
tst-array2dep.c * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY] 2002-11-07 22:28:16 +00:00
tst-array3.c * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY] 2002-11-07 22:28:16 +00:00
tst-pathopt.c Update. 2000-10-30 00:13:29 +00:00
tst-pathopt.sh Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-tls1-static.c * elf/tst-tls1-static.c: New file. 2002-08-28 10:42:59 +00:00
tst-tls1.c Update. 2002-02-13 17:45:55 +00:00
tst-tls2-static.c * elf/tst-tls1-static.c: New file. 2002-08-28 10:42:59 +00:00
tst-tls2.c Update. 2002-02-13 17:45:55 +00:00
tst-tls3.c Update. 2002-02-13 17:45:55 +00:00
tst-tls4.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
tst-tls5.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
tst-tls6.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
tst-tls7.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
tst-tls8.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
tst-tls9-static.c 2002-10-21 Roland McGrath <roland@redhat.com> 2002-10-22 06:22:38 +00:00
tst-tls9.c * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
tst-tlsmod1.c Update. 2002-08-25 22:34:57 +00:00
tst-tlsmod2.c Update. 2002-08-25 22:34:57 +00:00
tst-tlsmod3.c Update. 2002-08-25 22:34:57 +00:00
tst-tlsmod4.c Update. 2002-08-25 22:34:57 +00:00
tst-tlsmod5.c 2002-10-21 Roland McGrath <roland@redhat.com> 2002-10-22 06:22:38 +00:00
tst-tlsmod6.c 2002-10-21 Roland McGrath <roland@redhat.com> 2002-10-22 06:22:38 +00:00
unload2.c
unload2dep.c Update. 2000-12-17 17:50:56 +00:00
unload2mod.c Update. 2000-12-17 17:50:56 +00:00
unload.c
unloadmod.c
Versions * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS] 2002-12-04 12:30:40 +00:00
vismain.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
vismod1.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
vismod2.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
vismod3.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
vismod.h Update. 2000-12-17 17:09:01 +00:00