]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(environ): Define as weak alias for __environ.
authorRoland McGrath <roland@gnu.org>
Thu, 26 Jan 1995 03:46:04 +0000 (03:46 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 26 Jan 1995 03:46:04 +0000 (03:46 +0000)
sysdeps/unix/bsd/Attic/osf1/alpha/start.S
sysdeps/unix/bsd/ultrix4/mips/start.S

index d88b47e8e761ac586d250a41d850f041e5a37049..8b7109a5121a0d4a4b9cf56b4e7bfdee2b522e7f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995 Free Software Foundation, Inc.
    Contributed by Brendan Kehoe (brendan@zen.org).
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -18,8 +18,10 @@ Cambridge, MA 02139, USA.  */
 
 #include <sysdep.h>
 
-#ifndef HAVE_GNU_LD
+#ifndef HAVE_WEAK_SYMBOLS
 #define __environ environ
+#else
+weak_alias (__environ, environ)
 #endif
 
 .comm __environ,       8
index 6146b57726cf17c5d555bb1e6f4f43bdf03eb2f0..ec0f9d833df20639f66fd054e68ef0cf5d7bea05 100644 (file)
@@ -18,8 +18,10 @@ Cambridge, MA 02139, USA.  */
 
 #include <sysdep.h>
 
-#ifndef HAVE_GNU_LD
+#ifndef HAVE_WEAK_SYMBOLS
 #define __environ environ
+#else
+weak_alias (__environ, environ)
 #endif
 
 .comm __environ,       4