glibc/sysdeps/i386
Ulrich Drepper aed283dd45 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.
2002-02-13 08:03:56 +00:00
..
bits Prevent double inclusion. 2002-01-08 10:19:35 +00:00
elf Update. 2002-02-07 06:38:57 +00:00
fpu Rewritten to C versions using inline assembly. 2001-09-18 14:18:20 +00:00
i486 Update. 2001-09-25 03:04:41 +00:00
i586 Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
i686 Update. 2002-02-01 07:49:47 +00:00
i786 Also applying directories. 1999-01-24 10:39:22 +00:00
soft-fp Update. 2000-09-06 10:53:02 +00:00
sys Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
__longjmp.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
abort-instr.h update from main archive 961220 1996-12-21 04:13:58 +00:00
add_n.S Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
addmul_1.S Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
asm-syntax.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
backtrace.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
bp-asm.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
bsd-_setjmp.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
bsd-setjmp.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
bzero.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
Dist Update. 2000-06-09 06:45:09 +00:00
dl-lookupcfg.h Update. 2002-02-05 08:02:04 +00:00
dl-machine.h Update. 2002-02-11 06:00:19 +00:00
dl-tls.h Update. 2002-02-13 08:03:56 +00:00
ffs.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fpu_control.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
gccframe.h Update. 2001-11-16 01:27:24 +00:00
gmp-mparam.h Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
htonl.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
htons.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
i386-mcount.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
Implies Update. 1999-10-20 03:20:31 +00:00
init-first.c Update. 2001-08-11 20:40:40 +00:00
ldbl2mpn.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
lshift.S Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
machine-gmon.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
Makefile Update. 1999-09-17 16:59:43 +00:00
memchr.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
memcmp.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
memcopy.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
memset.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
memusage.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
mul_1.S Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
rawmemchr.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
rshift.S Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
setjmp.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
stackinfo.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
stpcpy.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
stpncpy.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strchr.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strchrnul.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strcspn.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strlen.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strpbrk.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strrchr.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strspn.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strtok_r.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strtok.S Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
sub_n.S Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
submul_1.S Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
sysdep.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
Versions Update. 1999-05-17 17:25:32 +00:00