about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-07-08 02:23:37 +0000
committerUlrich Drepper <drepper@redhat.com>2003-07-08 02:23:37 +0000
commit5fee5ad11c5307141f76aa7ea28ec1e1b6418fea (patch)
tree064e87e62f48bb358e930ab03a86bab6f4417891
parent6fe93e82bbdde6be1979122c6f643563d6470cab (diff)
downloadglibc-5fee5ad11c5307141f76aa7ea28ec1e1b6418fea.tar.gz
glibc-5fee5ad11c5307141f76aa7ea28ec1e1b6418fea.tar.xz
glibc-5fee5ad11c5307141f76aa7ea28ec1e1b6418fea.zip
(_dl_sysdep_start): Adjust for compilation with HAVE_AUX_SECURE defined.
-rw-r--r--sysdeps/generic/dl-sysdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c
index df5d3431df..532da96d3a 100644
--- a/sysdeps/generic/dl-sysdep.c
+++ b/sysdeps/generic/dl-sysdep.c
@@ -80,6 +80,7 @@ _dl_sysdep_start (void **start_argptr,
   ElfW(Addr) user_entry;
   ElfW(auxv_t) *av;
 #ifdef HAVE_AUX_SECURE
+# define set_seen(tag) (tag)	/* Evaluate for the side effects.  */
 # define set_seen_secure() ((void) 0)
 #else
   uid_t uid = 0;
@@ -123,6 +124,7 @@ _dl_sysdep_start (void **start_argptr,
 	_dl_base_addr = av->a_un.a_val;
 	break;
 #endif
+#ifndef HAVE_AUX_SECURE
       case AT_UID:
       case AT_EUID:
 	uid ^= av->a_un.a_val;
@@ -131,8 +133,11 @@ _dl_sysdep_start (void **start_argptr,
       case AT_EGID:
 	gid ^= av->a_un.a_val;
 	break;
+#endif
       case AT_SECURE:
+#ifndef HAVE_AUX_SECURE
 	seen = -1;
+#endif
 	INTUSE(__libc_enable_secure) = av->a_un.a_val;
 	break;
       case AT_PLATFORM: