about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-01-15 18:04:12 +0000
committerUlrich Drepper <drepper@redhat.com>2004-01-15 18:04:12 +0000
commit697afbe1c8ba2037d0f7929f888a6994e6c21583 (patch)
treed5ddbfacbf1b47ca96695b47124dc71a829ef50e
parentee778b56b7de06512c2539184f6a256b4efff848 (diff)
downloadglibc-697afbe1c8ba2037d0f7929f888a6994e6c21583.tar.gz
glibc-697afbe1c8ba2037d0f7929f888a6994e6c21583.tar.xz
glibc-697afbe1c8ba2037d0f7929f888a6994e6c21583.zip
Update.
	* elf/rtld.c: Initialize _dl_argv to allow aliasing.
-rw-r--r--ChangeLog2
-rw-r--r--elf/rtld.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ff184e3ef..9d2f1df44c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-01-15  Ulrich Drepper  <drepper@redhat.com>
 
+	* elf/rtld.c: Initialize _dl_argv to allow aliasing.
+
 	* resolv/resolv.h: Add RES_USEBSTRING.
 	* resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
 	RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
diff --git a/elf/rtld.c b/elf/rtld.c
index 62e0dd5dec..803d586dea 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -68,7 +68,7 @@ enum mode { normal, list, verify, trace };
 static void process_envvars (enum mode *modep);
 
 int _dl_argc attribute_relro attribute_hidden;
-char **_dl_argv attribute_relro;
+char **_dl_argv attribute_relro = NULL;
 INTDEF(_dl_argv)
 
 /* Nonzero if we were run directly.  */