This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: PR 459: Shared library member is rejected for non-static link
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Mon, 18 Oct 2004 17:44:50 -0700
- Subject: Re: PATCH: PR 459: Shared library member is rejected for non-static link
- References: <20041018210903.GA23033@lucon.org>
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;