aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
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/ldlang.c
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/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 3 insertions, 0 deletions
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;