711d8b
diff -rcp ../binutils-2.20.51.0.7.original/ld/ldmain.c ./ld/ldmain.c
711d8b
*** ../binutils-2.20.51.0.7.original/ld/ldmain.c	2010-04-08 15:03:56.000000000 +0100
711d8b
--- ./ld/ldmain.c	2010-04-08 15:05:09.000000000 +0100
711d8b
*************** main (int argc, char **argv)
711d8b
*** 258,271 ****
711d8b
    command_line.check_section_addresses = -1;
711d8b
    command_line.disable_target_specific_optimizations = -1;
711d8b
  
711d8b
-   if (getenv ("LD_SYMBOLIC") != NULL)
711d8b
-     command_line.symbolic = symbolic;
711d8b
-   else if (getenv ("LD_SYMBOLIC_FUNCTIONS") != NULL)
711d8b
-     command_line.symbolic = symbolic_functions;
711d8b
- 
711d8b
-   if (getenv ("LD_AS_NEEDED") != NULL)
711d8b
-     add_DT_NEEDED_for_regular = TRUE;
711d8b
- 
711d8b
    /* We initialize DEMANGLING based on the environment variable
711d8b
       COLLECT_NO_DEMANGLE.  The gcc collect2 program will demangle the
711d8b
       output of the linker, unless COLLECT_NO_DEMANGLE is set in the
711d8b
--- 258,263 ----
711d8b
diff -rcp ../binutils-2.20.51.0.7.original/ld/ld.texinfo ./ld/ld.texinfo
711d8b
*** ../binutils-2.20.51.0.7.original/ld/ld.texinfo	2010-04-08 15:03:55.000000000 +0100
711d8b
--- ./ld/ld.texinfo	2010-04-08 15:05:55.000000000 +0100
711d8b
*************** their names to the @option{--as-needed} 
711d8b
*** 1152,1161 ****
711d8b
  options.  They have been replaced by @option{--copy-dt-needed-entries}
711d8b
  and @option{--no-copy-dt-needed-entries}.
711d8b
  
711d8b
- If the environment variable @code{LD_AS_NEEDED} is set, the linker
711d8b
- will behave as if the @option{--as-needed} option is passed to the
711d8b
- linker as the first command line option.
711d8b
- 
711d8b
  @kindex -assert @var{keyword}
711d8b
  @item -assert @var{keyword}
711d8b
  This option is ignored for SunOS compatibility.
711d8b
--- 1152,1157 ----
711d8b
*************** When creating a shared library, bind ref
711d8b
*** 1206,1226 ****
711d8b
  definition within the shared library, if any.  Normally, it is possible
711d8b
  for a program linked against a shared library to override the definition
711d8b
  within the shared library.  This option is only meaningful on ELF
711d8b
! platforms which support shared libraries.  If @option{-Bsymbolic} is not
711d8b
! used when linking a shared library, the linker will also turn on this
711d8b
! option if the environment variable @code{LD_SYMBOLIC} is set.
711d8b
  
711d8b
  @kindex -Bsymbolic-functions
711d8b
  @item -Bsymbolic-functions
711d8b
  When creating a shared library, bind references to global function
711d8b
  symbols to the definition within the shared library, if any.
711d8b
  This option is only meaningful on ELF platforms which support shared
711d8b
! libraries.  If @option{-Bsymbolic-functions} is not used when linking a
711d8b
! shared library, the linker will also turn on this option if the
711d8b
! environment variable @code{LD_SYMBOLIC_FUNCTIONS} is set.  When
711d8b
! both environment variables @code{LD_SYMBOLIC} and
711d8b
! @code{LD_SYMBOLIC_FUNCTIONS} are set, @code{LD_SYMBOLIC} will take
711d8b
! precedent.
711d8b
  
711d8b
  @kindex --dynamic-list=@var{dynamic-list-file}
711d8b
  @item --dynamic-list=@var{dynamic-list-file}
711d8b
--- 1202,1215 ----
711d8b
  definition within the shared library, if any.  Normally, it is possible
711d8b
  for a program linked against a shared library to override the definition
711d8b
  within the shared library.  This option is only meaningful on ELF
711d8b
! platforms which support shared libraries.
711d8b
  
711d8b
  @kindex -Bsymbolic-functions
711d8b
  @item -Bsymbolic-functions
711d8b
  When creating a shared library, bind references to global function
711d8b
  symbols to the definition within the shared library, if any.
711d8b
  This option is only meaningful on ELF platforms which support shared
711d8b
! libraries.
711d8b
  
711d8b
  @kindex --dynamic-list=@var{dynamic-list-file}
711d8b
  @item --dynamic-list=@var{dynamic-list-file}
711d8b
diff -rcp ../binutils-2.20.51.0.7.original/ld/NEWS ./ld/NEWS
711d8b
*** ../binutils-2.20.51.0.7.original/ld/NEWS	2010-04-08 15:03:56.000000000 +0100
711d8b
--- ./ld/NEWS	2010-04-08 15:04:14.000000000 +0100
711d8b
*************** Changes in 2.20:
711d8b
*** 73,83 ****
711d8b
    For the switch --enable-runtime-pseudo-reloc it uses for 32-bit
711d8b
    runtime pseudo relocation version one, for 64-bit the version two.
711d8b
  
711d8b
- * ELF: Support environment variable LD_AS_NEEDED for --as-needed.
711d8b
- 
711d8b
- * ELF: Support environment variables, LD_SYMBOLIC for -Bsymbolic and
711d8b
-   LD_SYMBOLIC_FUNCTIONS for -Bsymbolic-functions.
711d8b
- 
711d8b
  Changes in 2.19:
711d8b
  
711d8b
  * Linker scripts support a new INSERT command that makes it easier to
711d8b
--- 73,78 ----