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