Jakub Jelinek 44cfb8
--- ld/NEWS.jj	2007-05-11 11:24:08.000000000 -0400
Jakub Jelinek 44cfb8
+++ ld/NEWS	2007-06-12 05:04:49.000000000 -0400
Jakub Jelinek dc1803
@@ -1,7 +1,4 @@
Jakub Jelinek dc1803
 -*- text -*-
Jakub Jelinek dc1803
-* ELF: Support environment variables, LD_SYMBOLIC for -Bsymbolic and
Jakub Jelinek dc1803
-  LD_SYMBOLIC_FUNCTIONS for -Bsymbolic-functions.
Jakub Jelinek dc1803
-
Jakub Jelinek 44cfb8
 * -l:foo now searches the library path for a filename called foo,
Jakub Jelinek 44cfb8
   without converting it to libfoo.a or libfoo.so.
Jakub Jelinek 44cfb8
 
Jakub Jelinek 44cfb8
--- ld/ld.texinfo.jj	2007-05-11 11:24:08.000000000 -0400
Jakub Jelinek 44cfb8
+++ ld/ld.texinfo	2007-06-12 05:04:33.000000000 -0400
Jakub Jelinek 44cfb8
@@ -1147,21 +1147,14 @@ When creating a shared library, bind ref
Jakub Jelinek dc1803
 definition within the shared library, if any.  Normally, it is possible
Jakub Jelinek dc1803
 for a program linked against a shared library to override the definition
Jakub Jelinek dc1803
 within the shared library.  This option is only meaningful on ELF
Jakub Jelinek dc1803
-platforms which support shared libraries.  If @option{-Bsymbolic} is not
Jakub Jelinek dc1803
-used when linking a shared library, the linker will also turn on this
Jakub Jelinek dc1803
-option if the environment variable @code{LD_SYMBOLIC} is set.
Jakub Jelinek dc1803
+platforms which support shared libraries.
Jakub Jelinek dc1803
 
Jakub Jelinek dc1803
 @kindex -Bsymbolic-functions
Jakub Jelinek dc1803
 @item -Bsymbolic-functions
Jakub Jelinek dc1803
 When creating a shared library, bind references to global function
Jakub Jelinek dc1803
 symbols to the definition within the shared library, if any. 
Jakub Jelinek dc1803
 This option is only meaningful on ELF platforms which support shared
Jakub Jelinek dc1803
-libraries.  If @option{-Bsymbolic-functions} is not used when linking a
Jakub Jelinek dc1803
-shared library, the linker will also turn on this option if the
Jakub Jelinek dc1803
-environment variable @code{LD_SYMBOLIC_FUNCTIONS} is set.  When
Jakub Jelinek dc1803
-both environment variables @code{LD_SYMBOLIC} and
Jakub Jelinek dc1803
-@code{LD_SYMBOLIC_FUNCTIONS} are set, @code{LD_SYMBOLIC} will take
Jakub Jelinek dc1803
-precedent.
Jakub Jelinek dc1803
+libraries.
Jakub Jelinek dc1803
 
Jakub Jelinek dc1803
 @kindex --dynamic-list=@var{dynamic-list-file}
Jakub Jelinek dc1803
 @item --dynamic-list=@var{dynamic-list-file}
Jakub Jelinek 44cfb8
--- ld/ldmain.c.jj	2007-05-11 11:24:08.000000000 -0400
Jakub Jelinek 44cfb8
+++ ld/ldmain.c	2007-06-12 05:05:48.000000000 -0400
Jakub Jelinek 44cfb8
@@ -254,11 +254,6 @@ main (int argc, char **argv)
Jakub Jelinek 44cfb8
   command_line.warn_search_mismatch = TRUE;
Jakub Jelinek dc1803
   command_line.check_section_addresses = TRUE;
Jakub Jelinek 44cfb8
 
Jakub Jelinek dc1803
-  if (getenv ("LD_SYMBOLIC") != NULL)
Jakub Jelinek dc1803
-    command_line.symbolic = symbolic;
Jakub Jelinek dc1803
-  else if (getenv ("LD_SYMBOLIC_FUNCTIONS") != NULL)
Jakub Jelinek dc1803
-    command_line.symbolic = symbolic_functions;
Jakub Jelinek 44cfb8
-
Jakub Jelinek 44cfb8
   /* We initialize DEMANGLING based on the environment variable
Jakub Jelinek 44cfb8
      COLLECT_NO_DEMANGLE.  The gcc collect2 program will demangle the
Jakub Jelinek 44cfb8
      output of the linker, unless COLLECT_NO_DEMANGLE is set in the