This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR 459: Shared library member is rejected for non-static link


On Mon, Oct 18, 2004 at 02:09:03PM -0700, H. J. Lu wrote:
> We should save/restore config.dynamic_link for linker script.
> 
> 
> H.J.
> -----
> 2004-10-18  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.

We don't need to save/restore config.dynamic_link here since the
command line entries have been set by config.dynamic_link. When we
get here, we are always processing linker script.


H.J.
----
2004-10-18  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.

--- ld/ldlang.c.dynamic	2004-10-18 09:29:05.000000000 -0700
+++ ld/ldlang.c	2004-10-18 17:41:40.842744666 -0700
@@ -1809,6 +1809,9 @@ load_symbols (lang_input_statement_type 
 
       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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]