aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/ldlang.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 26d47e7..ef7a274 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR 459
+ * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
+ option on linker script as the one for linker script.
+
2004-10-16 Daniel Jacobowitz <dan@debian.org>
* ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 4cc5927..3d1e5a41 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1809,6 +1809,9 @@ load_symbols (lang_input_statement_type *entry,
ldfile_assumed_script = TRUE;
parser_input = input_script;
+ /* We want to use the same -Bdynamic/-Bstatic as the one for
+ ENTRY. */
+ config.dynamic_link = entry->dynamic;
yyparse ();
ldfile_assumed_script = FALSE;