faf2fe1
It reverts the H.J. Lu's binutils custom patch.
faf2fe1
faf2fe1
--- ld/NEWS	2008-07-10 17:33:23.000000000 +0200
faf2fe1
+++ ld/NEWS	2008-07-30 21:24:25.000000000 +0200
dc18033
@@ -1,7 +1,4 @@
dc18033
 -*- text -*-
dc18033
-* ELF: Support environment variables, LD_SYMBOLIC for -Bsymbolic and
dc18033
-  LD_SYMBOLIC_FUNCTIONS for -Bsymbolic-functions.
dc18033
-
faf2fe1
 * Linker script input section filespecs may now specify a file within an
faf2fe1
  archive by writing "archive:file".
44cfb8c
 
faf2fe1
--- ld/ld.texinfo	2008-07-10 17:33:23.000000000 +0200
faf2fe1
+++ ld/ld.texinfo	2008-07-30 21:24:05.000000000 +0200
faf2fe1
@@ -1147,21 +1147,14 @@ When creating a shared library, bind ref
dc18033
 definition within the shared library, if any.  Normally, it is possible
dc18033
 for a program linked against a shared library to override the definition
dc18033
 within the shared library.  This option is only meaningful on ELF
dc18033
-platforms which support shared libraries.  If @option{-Bsymbolic} is not
dc18033
-used when linking a shared library, the linker will also turn on this
dc18033
-option if the environment variable @code{LD_SYMBOLIC} is set.
dc18033
+platforms which support shared libraries.
dc18033
 
dc18033
 @kindex -Bsymbolic-functions
dc18033
 @item -Bsymbolic-functions
dc18033
 When creating a shared library, bind references to global function
900278a
 symbols to the definition within the shared library, if any.
dc18033
 This option is only meaningful on ELF platforms which support shared
dc18033
-libraries.  If @option{-Bsymbolic-functions} is not used when linking a
dc18033
-shared library, the linker will also turn on this option if the
dc18033
-environment variable @code{LD_SYMBOLIC_FUNCTIONS} is set.  When
dc18033
-both environment variables @code{LD_SYMBOLIC} and
dc18033
-@code{LD_SYMBOLIC_FUNCTIONS} are set, @code{LD_SYMBOLIC} will take
dc18033
-precedent.
dc18033
+libraries.
dc18033
 
dc18033
 @kindex --dynamic-list=@var{dynamic-list-file}
dc18033
 @item --dynamic-list=@var{dynamic-list-file}
faf2fe1
--- ld/ldmain.c	2008-07-10 17:33:23.000000000 +0200
faf2fe1
+++ ld/ldmain.c	2008-07-30 21:24:05.000000000 +0200
faf2fe1
@@ -258,11 +258,6 @@ main (int argc, char **argv)
44cfb8c
   command_line.warn_search_mismatch = TRUE;
dc18033
   command_line.check_section_addresses = TRUE;
44cfb8c
 
dc18033
-  if (getenv ("LD_SYMBOLIC") != NULL)
dc18033
-    command_line.symbolic = symbolic;
dc18033
-  else if (getenv ("LD_SYMBOLIC_FUNCTIONS") != NULL)
dc18033
-    command_line.symbolic = symbolic_functions;
44cfb8c
-
44cfb8c
   /* We initialize DEMANGLING based on the environment variable
44cfb8c
      COLLECT_NO_DEMANGLE.  The gcc collect2 program will demangle the
44cfb8c
      output of the linker, unless COLLECT_NO_DEMANGLE is set in the