Jan Kratochvil faf2fe
It reverts the H.J. Lu's binutils custom patch.
Jan Kratochvil faf2fe
Nicholas Clifton fe03d6
--- ../binutils-2.19.50.0.1.orig/ld/NEWS	2008-11-21 16:45:00.000000000 +0000
Nicholas Clifton fe03d6
+++ ld/NEWS	2008-11-21 17:03:12.000000000 +0000
Nicholas Clifton fe03d6
@@ -1,8 +1,5 @@
Jakub Jelinek dc1803
 -*- text -*-
Nicholas Clifton fe03d6
 
Jakub Jelinek dc1803
-* ELF: Support environment variables, LD_SYMBOLIC for -Bsymbolic and
Jakub Jelinek dc1803
-  LD_SYMBOLIC_FUNCTIONS for -Bsymbolic-functions.
Jakub Jelinek dc1803
-
Nicholas Clifton fe03d6
 Changes in 2.19:
Jakub Jelinek 44cfb8
 
Nicholas Clifton fe03d6
 * Linker scripts support a new INSERT command that makes it easier to
Jan Kratochvil faf2fe
--- ld/ld.texinfo	2008-07-10 17:33:23.000000000 +0200
Jan Kratochvil faf2fe
+++ ld/ld.texinfo	2008-07-30 21:24:05.000000000 +0200
Jan Kratochvil faf2fe
@@ -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 900278
 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}
Nicholas Clifton fe03d6
--- ../binutils-2.19.50.0.1.orig/ld/ldmain.c	2008-11-21 16:45:00.000000000 +0000
Nicholas Clifton fe03d6
+++ ld/ldmain.c	2008-11-21 17:02:48.000000000 +0000
Nicholas Clifton fe03d6
@@ -256,11 +256,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