aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-10-19 15:44:58 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-10-19 15:44:58 +0000
commit532345f2da56538e8288e3fdc343f452ea7754f8 (patch)
treea3ff24b524d55873acf717a37e529bb859abe11e /ld
parent4b85d634bfaf635431d4d7690390b267d293964e (diff)
downloadgdb-532345f2da56538e8288e3fdc343f452ea7754f8.zip
gdb-532345f2da56538e8288e3fdc343f452ea7754f8.tar.gz
gdb-532345f2da56538e8288e3fdc343f452ea7754f8.tar.bz2
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.
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;