glibc/include
Roland McGrath ce460d04a5 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
changed from [USE_TLS && HAVE___THREAD].

	* sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
	Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
	* sysdeps/x86_64/dl-machine.h
	(elf_machine_type_class, elf_machine_rela): Likewise.
	* sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
	Likewise.

	* include/link.h (struct link_map): Remove member l_tls_tp_initialized.
	* elf/rtld.c (_dl_start_final, dl_main): Don't use it.
	(_dl_start): Conditionalize PT_TLS check on [USE___THREAD].

	* sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
	instead of ___tls_get_addr.
	(___tls_get_addr_internal): Add attribute_hidden to decl.

	* sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
	_dl_error_catch_tsd.
	* elf/rtld.c (startup_error_tsd): New function.
	(dl_main): Point _dl_error_catch_tsd at that.
	* elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
	use new function pointer instead.
	* elf/dl-tsd.c: New file.
	* elf/Makefile (routines): Add it.

2002-10-07  Roland McGrath  <roland@redhat.com>

	* elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
	writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
	take _dl_load_lock around calling __writev.

	* sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
	(INLINE_SYSCALL): Use that.

	* sysdeps/generic/dl-sysdep.h: New file.
	* sysdeps/mach/hurd/dl-sysdep.h: New file.
	* sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
	* include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
	[RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
	access it directly.
	* elf/dl-minimal.c (__errno_location): Removed.
	* sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
	Use GOTOFF access for errno.
	* sysdeps/unix/sysv/linux/i386/sysdep.h
	[RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.

	* sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
	Use PC-relative access for errno.
	* sysdeps/unix/sysv/linux/x86_64/sysdep.h
	[RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.

	* include/tls.h: New file.
	(USE___THREAD): New macro.
	Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
	libc or libpthread.
	* sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
	changed from [USE_TLS && HAVE___THREAD].
	* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
	* sysdeps/unix/i386/sysdep.S: Likewise.
	* sysdeps/unix/x86_64/sysdep.S: Likewise.
	* include/errno.h: Likewise.
	* include/netdb.h: Likewise.
	* include/resolv.h: Likewise.

	* sysdeps/generic/errno.c: New file.
	* csu/Makefile (aux): New variable, list errno.
	* sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
	* sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
	* sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
	* sysdeps/unix/alpha/sysdep.S: Likewise.
	* sysdeps/generic/start.c: Likewise.
	* sysdeps/unix/start.c: Likewise.
	* sysdeps/unix/arm/start.c: Likewise.
	* sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
	* sysdeps/unix/sparc/start.c: Likewise.
	* sysdeps/unix/sysv/irix4/start.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.

	* manual/search.texi (Tree Search Function, Hash Search Function):
	Mention search.h clearly.

2002-10-05  Roland McGrath  <roland@redhat.com>

	* elf/dl-fxstat64.c: File removed.
	* elf/dl-xstat64.c: File removed.
	* elf/Makefile (rtld-routines): Remove them.
	* sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
	Instead, use strong_alias instead of versioned_symbol in the
	!SHLIB_COMPAT case.
	* sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
	* sysdeps/unix/sysv/linux/lxstat64.c: Likewise.

	* include/shlib-compat.h
	(SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
	[! NOT_IN_libc] (IS_IN_libc): Define it.
	* cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
	* elf/Makefile (CPPFLAGS-.os): Likewise.

	* sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
	Return the status instead of calling exit.

	* Makeconfig (CFLAGS): Prepend -std=gnu99.
	* Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
	Remove superfluous rm command, whose @ plus make bugs hid
	all these commands from the make output.

	* include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
	* Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
	Use that file's contents instead of literal echo's for the prologue.
	* include/features.h: Include <gnu/stubs.h> unconditionally.
	* include/gnu/stubs.h: New file.

2002-09-30  Roland McGrath  <roland@redhat.com>

	* elf/rtld-Rules: New file.
	* elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
	$(objpfx)rtld-libc.a): New targets.
	(generated): Add them.
	(reloc-link): Remove -o $@ from the variable.
	($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
	(distribute): Add rtld-Rules.
	(CPPFLAGS-.os): Define this instead of CFLAGS-.os.
	* Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
	(common-mostlyclean, common-clean): Clean up rtld-* files.
	* sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
2002-10-11 10:52:20 +00:00
..
arpa * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__]. 2002-08-03 12:09:37 +00:00
bits * include/bits/dlfcn.h: New file. 2002-08-10 07:54:55 +00:00
gnu * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
net * include/sys/wait.h (__waitpid): Add libc_hidden_proto. 2002-08-13 01:08:15 +00:00
netinet * include/bits/dlfcn.h: New file. 2002-08-10 07:54:55 +00:00
protocols (abmon): Remove spaces. 1998-11-12 18:03:43 +00:00
rpc * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des. 2002-09-17 10:58:17 +00:00
rpcsvc * include/rpcsvc/nis.h: New. Bounce to nis/rpcsvc. * include/rpcsvc/nis_tags.h: Likewise. * include/rpcsvc/nislib.h: Likewise. 1998-02-04 10:32:05 +00:00
sys Update. 2002-10-09 09:42:48 +00:00
aio.h Update. 1999-11-23 17:22:17 +00:00
aliases.h Declare __getaliasent_r as hidden. 2002-03-18 23:38:37 +00:00
alloca.h Update. 2002-10-09 09:42:48 +00:00
argp.h Update. 2000-12-28 15:08:51 +00:00
argz.h 2002-08-03 Roland McGrath <roland@redhat.com> 2002-08-04 01:28:06 +00:00
assert.h * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def. 2002-08-30 01:31:18 +00:00
byteswap.h Update. 1998-04-10 10:52:25 +00:00
complex.h Update. 1998-08-03 16:47:01 +00:00
ctype.h * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower): 2002-09-02 07:09:08 +00:00
des.h Update. 1998-03-24 10:39:42 +00:00
dirent.h Update. 2001-08-20 07:17:10 +00:00
dlfcn.h Update. 2002-08-04 09:27:27 +00:00
elf.h Update. 2000-06-08 04:48:56 +00:00
endian.h Update. 2001-03-30 05:34:59 +00:00
envz.h 2002-08-03 Roland McGrath <roland@redhat.com> 2002-08-04 01:28:06 +00:00
err.h * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog. 2002-08-03 12:59:33 +00:00
errno.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
error.h Update. 1997-06-21 02:59:26 +00:00
execinfo.h Update. 1999-11-23 17:22:17 +00:00
fcntl.h Update. 2002-08-03 07:02:10 +00:00
features.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
fenv.h Update. 2002-09-10 01:40:26 +00:00
fnmatch.h * include/sys/resource.h: Use libc_hidden_proto for getpriority, 2002-08-04 03:50:21 +00:00
fpu_control.h Update. 1999-11-23 17:22:17 +00:00
ftw.h Update. 1997-06-21 02:59:26 +00:00
gconv.h Update. 1997-11-18 02:50:07 +00:00
getopt.h * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass 2002-09-01 12:39:40 +00:00
glob.h * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr, 2002-08-04 03:30:56 +00:00
gmp.h Update. 2000-12-05 17:34:28 +00:00
gnu-versions.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
grp.h * include/sys/wait.h (__waitpid): Add libc_hidden_proto. 2002-08-13 01:08:15 +00:00
iconv.h Update. 1999-08-21 00:38:15 +00:00
langinfo.h * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts. 2002-08-27 23:36:31 +00:00
libc-internal.h Update. 2002-08-03 07:02:10 +00:00
libc-symbols.h 2002-10-01 Roland McGrath <roland@frob.com> 2002-10-01 08:45:44 +00:00
libgen.h Update. 1997-06-21 02:59:26 +00:00
libintl.h (__ngettext, __dngettext, __dcngettext): New declarations. (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add attribute declarations. 2002-05-01 16:41:24 +00:00
libio.h Update. 2002-08-04 20:54:20 +00:00
limits.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
link.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
locale.h 2002-08-27 Roland McGrath <roland@redhat.com> 2002-08-28 06:59:14 +00:00
malloc.h Update. 2002-03-13 02:17:12 +00:00
math.h Update. 2002-09-10 01:40:26 +00:00
mcheck.h * include/sys/resource.h: Use libc_hidden_proto for getpriority, 2002-08-04 03:50:21 +00:00
memory.h Update. 1997-06-21 02:59:26 +00:00
mntent.h Update. 2002-04-09 20:36:24 +00:00
monetary.h Update. 1997-06-21 02:59:26 +00:00
netdb.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
netgroup.h Update. 1997-06-21 02:59:26 +00:00
nl_types.h Update. 1997-12-22 20:53:38 +00:00
nss.h Update. 1997-06-21 02:59:26 +00:00
nsswitch.h Update. 1997-06-21 02:59:26 +00:00
obstack.h Update. 2002-08-04 09:27:27 +00:00
poll.h Update. 2000-08-21 16:02:48 +00:00
printf.h Update. 2002-08-03 07:02:10 +00:00
pthread.h * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop 2002-08-05 06:38:00 +00:00
pwd.h * include/bits/dlfcn.h: New file. 2002-08-10 07:54:55 +00:00
regex.h Update. 1998-12-08 13:12:47 +00:00
resolv.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
sched.h Update. 2002-08-15 13:04:07 +00:00
search.h * include/sys/resource.h: Use libc_hidden_proto for getpriority, 2002-08-04 03:50:21 +00:00
set-hooks.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
setjmp.h (__libc_longjmp): Add declaration. 2002-08-21 08:08:03 +00:00
sgtty.h Update. 1997-06-21 02:59:26 +00:00
shadow.h * include/bits/dlfcn.h: New file. 2002-08-10 07:54:55 +00:00
shlib-compat.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
signal.h Update. 2002-10-09 09:42:48 +00:00
spawn.h Update. 2000-10-01 19:15:29 +00:00
stab.h Update. 1997-06-21 02:59:26 +00:00
stdio_ext.h Update. 2002-04-09 20:36:24 +00:00
stdio.h * include/wchar.h (putwc): Use libc_hidden_proto. 2002-08-10 09:24:53 +00:00
stdlib.h * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts. 2002-08-27 23:36:31 +00:00
string.h * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts. 2002-08-27 23:36:31 +00:00
strings.h Update. 1997-06-21 02:59:26 +00:00
stub-tag.h Update. 1997-10-15 05:34:02 +00:00
stubs-prologue.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
syscall.h Update. 1997-06-21 02:59:26 +00:00
sysexits.h Update. 1997-06-21 02:59:26 +00:00
syslog.h Update. 1997-06-21 02:59:26 +00:00
tar.h Update. 1997-06-21 02:59:26 +00:00
termios.h * include/unistd.h (seteuid, setegid): Add libc_hidden_proto. 2002-08-13 00:24:58 +00:00
tgmath.h Update. 1998-09-06 23:45:24 +00:00
time.h * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts. 2002-08-27 23:36:31 +00:00
tls.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
ttyent.h * include/search.h: Use libc_hidden_proto for hsearch_r, lfind. 2002-08-04 01:29:29 +00:00
ucontext.h Update. 1999-10-12 18:17:41 +00:00
ulimit.h Update. 1999-11-23 17:22:17 +00:00
unistd.h Update. 2002-09-17 18:45:41 +00:00
utime.h * include/stdlib.h: Use libc_hidden_proto for qsort. 2002-08-03 22:26:33 +00:00
utmp.h Update. 1999-11-23 17:22:17 +00:00
values.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
wchar.h Update. 2002-08-29 06:50:10 +00:00
wctype.h * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts. 2002-08-27 23:36:31 +00:00
wordexp.h * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr, 2002-08-04 03:30:56 +00:00
xlocale.h Update. 1997-06-21 02:59:26 +00:00