]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Oct 2004 15:44:58 +0000 (15:44 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Oct 2004 15:44:58 +0000 (15:44 +0000)
PR 459
* ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
option on linker script as the one for linker script.

ld/ChangeLog
ld/ldlang.c

index 26d47e70e6edb983ba3fad8ce34194bb48fbaeea..ef7a274eedd85c794263e70dbbbff48b91707aa3 100644 (file)
@@ -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)
index 4cc5927609f2adc3785a49a10af05c77ca44d96b..3d1e5a41f47b74a7e45d85a6ca98bc57ff8cdbbf 100644 (file)
@@ -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;