glibc/sysdeps/x86_64
Ulrich Drepper c9ff0187a6 Introduce TLS descriptors for i386 and x86_64.
* include/inline-hashtab.h: New file, copied from 2005's
	libiberty, with fix for memory leak imported afterwards by
	Glauber de Oliveira Costa.
	* elf/tlsdeschtab.h: New file.
	* elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
	(_dl_allocate_static_tls): ... here.  Rearrange failure path.
	(CHECK_STATIC_TLS): Move to...
	* elf/dynamic-link.h: ... this file.
	(TRY_STATIC_TLS): New macro.
	* elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
	* elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
	R_386_TLS_DESC): Define.
	(R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
	binutils.
	(R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
	R_X86_64_TLSDESC): Define.
	(R_386_NUM, R_X86_64_NUM): Adjust.
	* sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
	systep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
	(gen-as-const-headers): Add tlsdesc.sym to csu subdir.
	* sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
	release tlsdesc_table.
	* sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
	(elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
	(elf_machine_rel): Handle R_386_TLS_DESC.
	(elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	(elf_machine_lazy_rela): Likewise.
	* sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
	* sysdeps/i386/dl-tlsdesc.S: New file.
	* sysdeps/i386/dl-tlsdesc.h: New file.
	* sysdeps/i386/tlsdesc.c: New file.
	* sysdeps/i386/tlsdesc.sym: New file.
	* sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
	tlsdesc_table.
	* sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
	systep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
	(gen-as-const-headers): Add tlsdesc.sym to csu subdir.
	* sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
	release tlsdesc_table.
	* sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
	(elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
	(elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
	(elf_machine_rel): Handle R_X86_64_TLSDESC.
	(elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
	(__tls_get_addr): Do not declare for non-shared compiles.
	* sysdeps/x86_64/dl-tlsdesc.S: New file.
	* sysdeps/x86_64/dl-tlsdesc.h: New file.
	* sysdeps/x86_64/tlsdesc.c: New file.
	* sysdeps/x86_64/tlsdesc.sym: New file.
	* sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
	tlsdesc_table for both 32- and 64-bit structs.
2008-05-13 05:41:30 +00:00
..
bits Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
elf (__tzfile_read): Take extra memory requested by caller into account when copying TZ string. 2007-10-16 22:37:35 +00:00
fpu * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+. 2007-09-15 02:38:04 +00:00
__longjmp.S
_mcount.S
abort-instr.h
backtrace.c
bp-asm.h
bsd-_setjmp.S
bsd-setjmp.S
bzero.S Make an empty file. 2007-10-16 05:59:15 +00:00
cacheinfo.c * sysdeps/x86_64/rtld-memset.c: New file. 2008-03-07 17:55:11 +00:00
dl-lookupcfg.h Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
dl-machine.h Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
dl-tls.h Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
dl-tlsdesc.h Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
dl-tlsdesc.S Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
dl-trampoline.S * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure 2007-10-31 19:25:15 +00:00
ffs.c
ffsll.c
fpu_control.h
hp-timing.c
hp-timing.h
htonl.S
Implies
jmpbuf-offsets.h
jmpbuf-unwind.h
ldbl2mpn.c
machine-gmon.h
Makefile Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
memcpy_chk.S
memcpy.S * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed 2007-09-22 05:54:03 +00:00
mempcpy_chk.S
mempcpy.S
memset_chk.S
memset.S * sysdeps/x86_64/rtld-memset.c: New file. 2008-03-07 17:55:11 +00:00
memusage.h
rtld-memset.c * sysdeps/x86_64/rtld-memset.c: New file. 2008-03-07 17:55:11 +00:00
sched_cpucount.c
setjmp.S
stackinfo.h
stpcpy_chk.S
stpcpy.S
strcat.S
strchr.S
strcmp.S
strcpy_chk.S
strcpy.S
strcspn.S
strlen.S
strpbrk.S
strspn.S
strtok_r.S
strtok.S
sysdep.h
tlsdesc.c Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
tlsdesc.sym Introduce TLS descriptors for i386 and x86_64. 2008-05-13 05:41:30 +00:00
tst-stack-align.h
Versions