From 1d3e470455d8089c37aa3f98a25875d69c11318f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 26 Jan 1995 03:46:04 +0000 Subject: [PATCH] (environ): Define as weak alias for __environ. --- sysdeps/unix/bsd/Attic/osf1/alpha/start.S | 6 ++++-- sysdeps/unix/bsd/ultrix4/mips/start.S | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/start.S b/sysdeps/unix/bsd/Attic/osf1/alpha/start.S index d88b47e8e7..8b7109a512 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/start.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/start.S @@ -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 -#ifndef HAVE_GNU_LD +#ifndef HAVE_WEAK_SYMBOLS #define __environ environ +#else +weak_alias (__environ, environ) #endif .comm __environ, 8 diff --git a/sysdeps/unix/bsd/ultrix4/mips/start.S b/sysdeps/unix/bsd/ultrix4/mips/start.S index 6146b57726..ec0f9d833d 100644 --- a/sysdeps/unix/bsd/ultrix4/mips/start.S +++ b/sysdeps/unix/bsd/ultrix4/mips/start.S @@ -18,8 +18,10 @@ Cambridge, MA 02139, USA. */ #include -#ifndef HAVE_GNU_LD +#ifndef HAVE_WEAK_SYMBOLS #define __environ environ +#else +weak_alias (__environ, environ) #endif .comm __environ, 4