From 78678039a4c4575cbb48c9577b4796cf2a05af62 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 10 Mar 2004 10:04:19 +0000 Subject: Update. 2004-03-10 Richard Henderson * sysdeps/generic/errno.c: Disable versioning for rtld. * sysdeps/generic/Makefile (elf/shared): Add unwind-pe. * sysdeps/generic/unwind-pe.c: New file. * sysdeps/generic/unwind-pe.h: Only prototypes for _LIBC without _LIBC_DEFINITIONS. * posix/regexec.c: Likewise. --- sysdeps/generic/errno.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sysdeps/generic/errno.c') diff --git a/sysdeps/generic/errno.c b/sysdeps/generic/errno.c index 1c0561c2d7..88e84d3204 100644 --- a/sysdeps/generic/errno.c +++ b/sysdeps/generic/errno.c @@ -32,9 +32,11 @@ extern __thread int __libc_errno __attribute__ ((alias ("errno"))) int errno __attribute__ ((section (".bss"))); strong_alias (errno, _errno) -/* We declare these with compat_symbol so that they are not - visible at link time. Programs must use the accessor functions. */ -# if defined HAVE_ELF && defined SHARED && defined DO_VERSIONING +/* We declare these with compat_symbol so that they are not visible at + link time. Programs must use the accessor functions. RTLD is special, + since it's not exported from there at any time. */ +# if defined HAVE_ELF && defined SHARED && defined DO_VERSIONING \ + && !defined IS_IN_rtld # include compat_symbol (libc, errno, errno, GLIBC_2_0); compat_symbol (libc, _errno, _errno, GLIBC_2_0); -- cgit 1.4.1