|
|
2055b15 |
--- ../binutils-2.20.51.0.2.orig/ld/ldmain.c 2009-10-12 11:28:44.000000000 +0100
|
|
|
2055b15 |
+++ ld/ldmain.c 2009-10-12 11:38:36.000000000 +0100
|
|
|
11c397e |
@@ -256,14 +256,6 @@ main (int argc, char **argv)
|
|
|
11c397e |
command_line.warn_search_mismatch = TRUE;
|
|
|
11c397e |
command_line.check_section_addresses = -1;
|
|
|
fe03d62 |
|
|
|
11c397e |
- if (getenv ("LD_SYMBOLIC") != NULL)
|
|
|
11c397e |
- command_line.symbolic = symbolic;
|
|
|
11c397e |
- else if (getenv ("LD_SYMBOLIC_FUNCTIONS") != NULL)
|
|
|
11c397e |
- command_line.symbolic = symbolic_functions;
|
|
|
dc18033 |
-
|
|
|
11c397e |
- if (getenv ("LD_AS_NEEDED") != NULL)
|
|
|
11c397e |
- as_needed = TRUE;
|
|
|
11c397e |
-
|
|
|
11c397e |
/* We initialize DEMANGLING based on the environment variable
|
|
|
11c397e |
COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
|
|
|
11c397e |
output of the linker, unless COLLECT_NO_DEMANGLE is set in the
|
|
|
2055b15 |
--- ../binutils-2.20.51.0.2.orig/ld/ld.texinfo 2009-10-12 11:28:44.000000000 +0100
|
|
|
2055b15 |
+++ ld/ld.texinfo 2009-10-12 11:38:36.000000000 +0100
|
|
|
2055b15 |
@@ -1140,10 +1140,7 @@ for a library that satisfies a symbol re
|
|
|
11c397e |
which is undefined at the point that the library was linked, or, if
|
|
|
11c397e |
the library is not found in the DT_NEEDED lists of other libraries
|
|
|
11c397e |
linked up to that point, a reference from another dynamic library.
|
|
|
11c397e |
-@option{--no-as-needed} restores the default behaviour. If the
|
|
|
11c397e |
-environment variable @code{LD_AS_NEEDED} is set, the linker will
|
|
|
11c397e |
-behave as if the @option{--as-needed} option is passed to the linker as
|
|
|
11c397e |
-the first command line option.
|
|
|
11c397e |
+@option{--no-as-needed} restores the default behaviour.
|
|
|
44cfb8c |
|
|
|
11c397e |
@kindex --add-needed
|
|
|
11c397e |
@kindex --no-add-needed
|
|
|
2055b15 |
@@ -1207,21 +1204,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}
|
|
|
2055b15 |
--- ../binutils-2.20.51.0.2.orig/ld/NEWS 2009-10-12 11:28:44.000000000 +0100
|
|
|
2055b15 |
+++ ld/NEWS 2009-10-12 11:38:36.000000000 +0100
|
|
|
2055b15 |
@@ -64,11 +64,6 @@ Changes in 2.20:
|
|
|
11c397e |
For the switch --enable-runtime-pseudo-reloc it uses for 32-bit
|
|
|
11c397e |
runtime pseudo relocation version one, for 64-bit the version two.
|
|
|
44cfb8c |
|
|
|
11c397e |
-* ELF: Support environment variable LD_AS_NEEDED for --as-needed.
|
|
|
44cfb8c |
-
|
|
|
11c397e |
-* ELF: Support environment variables, LD_SYMBOLIC for -Bsymbolic and
|
|
|
11c397e |
- LD_SYMBOLIC_FUNCTIONS for -Bsymbolic-functions.
|
|
|
11c397e |
-
|
|
|
11c397e |
Changes in 2.19:
|
|
|
11c397e |
|
|
|
11c397e |
* Linker scripts support a new INSERT command that makes it easier to
|