Nicholas Clifton eafd38
diff -rup ../binutils-2.19.51.0.10.orig/ld/ldmain.c ./ld/ldmain.c
Nicholas Clifton eafd38
--- ../binutils-2.19.51.0.10.orig/ld/ldmain.c	2009-06-22 15:56:54.000000000 +0100
Nicholas Clifton eafd38
+++ ./ld/ldmain.c	2009-06-22 16:05:54.000000000 +0100
Nicholas Clifton eafd38
@@ -256,14 +256,6 @@ main (int argc, char **argv)
Nicholas Clifton eafd38
   command_line.warn_search_mismatch = TRUE;
Nicholas Clifton eafd38
   command_line.check_section_addresses = -1;
Nicholas Clifton fe03d6
 
Nicholas Clifton eafd38
-  if (getenv ("LD_SYMBOLIC") != NULL)
Nicholas Clifton eafd38
-    command_line.symbolic = symbolic;
Nicholas Clifton eafd38
-  else if (getenv ("LD_SYMBOLIC_FUNCTIONS") != NULL)
Nicholas Clifton eafd38
-    command_line.symbolic = symbolic_functions;
Jakub Jelinek dc1803
-
Nicholas Clifton eafd38
-  if (getenv ("LD_AS_NEEDED") != NULL)
Nicholas Clifton eafd38
-    as_needed = TRUE;
Nicholas Clifton eafd38
-
Nicholas Clifton eafd38
   /* We initialize DEMANGLING based on the environment variable
Nicholas Clifton eafd38
      COLLECT_NO_DEMANGLE.  The gcc collect2 program will demangle the
Nicholas Clifton eafd38
      output of the linker, unless COLLECT_NO_DEMANGLE is set in the
Nicholas Clifton eafd38
diff -rup ../binutils-2.19.51.0.10.orig/ld/ld.texinfo ./ld/ld.texinfo
Nicholas Clifton eafd38
--- ../binutils-2.19.51.0.10.orig/ld/ld.texinfo	2009-06-22 15:56:53.000000000 +0100
Nicholas Clifton eafd38
+++ ./ld/ld.texinfo	2009-06-22 16:05:42.000000000 +0100
Nicholas Clifton eafd38
@@ -1118,10 +1118,7 @@ for a library that satisfies a symbol re
Nicholas Clifton eafd38
 which is undefined at the point that the library was linked, or, if
Nicholas Clifton eafd38
 the library is not found in the DT_NEEDED lists of other libraries
Nicholas Clifton eafd38
 linked up to that point, a reference from another dynamic library.
Nicholas Clifton eafd38
-@option{--no-as-needed} restores the default behaviour.  If the
Nicholas Clifton eafd38
-environment variable @code{LD_AS_NEEDED} is set, the linker will
Nicholas Clifton eafd38
-behave as if the @option{--as-needed} option is passed to the linker as
Nicholas Clifton eafd38
-the first command line option.
Nicholas Clifton eafd38
+@option{--no-as-needed} restores the default behaviour.
Jakub Jelinek 44cfb8
 
Nicholas Clifton eafd38
 @kindex --add-needed
Nicholas Clifton eafd38
 @kindex --no-add-needed
Nicholas Clifton eafd38
@@ -1185,21 +1182,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 eafd38
diff -rup ../binutils-2.19.51.0.10.orig/ld/NEWS ./ld/NEWS
Nicholas Clifton eafd38
--- ../binutils-2.19.51.0.10.orig/ld/NEWS	2009-06-22 15:56:54.000000000 +0100
Nicholas Clifton eafd38
+++ ./ld/NEWS	2009-06-22 16:04:15.000000000 +0100
Nicholas Clifton eafd38
@@ -55,11 +55,6 @@
Nicholas Clifton eafd38
   For the switch --enable-runtime-pseudo-reloc it uses for 32-bit
Nicholas Clifton eafd38
   runtime pseudo relocation version one, for 64-bit the version two.
Jakub Jelinek 44cfb8
 
Nicholas Clifton eafd38
-* ELF: Support environment variable LD_AS_NEEDED for --as-needed.
Jakub Jelinek 44cfb8
-
Nicholas Clifton eafd38
-* ELF: Support environment variables, LD_SYMBOLIC for -Bsymbolic and
Nicholas Clifton eafd38
-  LD_SYMBOLIC_FUNCTIONS for -Bsymbolic-functions.
Nicholas Clifton eafd38
-
Nicholas Clifton eafd38
 Changes in 2.19:
Nicholas Clifton eafd38
 
Nicholas Clifton eafd38
 * Linker scripts support a new INSERT command that makes it easier to