Skip to content

Commit

Permalink
Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Browse files Browse the repository at this point in the history
	* posix/environ.c: Add weak alias `_environ'.
  • Loading branch information
Roland McGrath committed Apr 13, 1995
1 parent 53afa8d commit 6432a77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* posix/environ.c: Add weak alias `_environ'.

Tue Apr 11 20:38:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
Expand Down
4 changes: 4 additions & 0 deletions posix/environ.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
/* This must be initialized; we cannot have a weak alias into bss. */
char **__environ = NULL;
weak_alias (__environ, environ)

/* The SVR4 ABI says `_environ' will be the name to use
in case the user overrides the weak alias `environ'. */
weak_alias (__environ, _environ)

0 comments on commit 6432a77

Please sign in to comment.