From: H.J. Lu Date: Tue, 19 Oct 2004 15:44:58 +0000 (+0000) Subject: 2004-10-19 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=532345f2da56538e8288e3fdc343f452ea7754f8;p=binutils-gdb.git 2004-10-19 H.J. Lu PR 459 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic option on linker script as the one for linker script. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 26d47e70e6e..ef7a274eedd 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2004-10-19 H.J. Lu + + 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 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs) diff --git a/ld/ldlang.c b/ld/ldlang.c index 4cc5927609f..3d1e5a41f47 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;