+2009-10-14 Ryan Mansfield <rmansfield@qnx.com>
+
+ * ldlang.c (load_symbols): Set whole_archive from entry when
+ parsing a linker script.
+
2009-10-10 Alan Modra <amodra@bigpond.net.au>
* scripttempl/elf32cr16.sc: Revert 2009-09-28 changes.
{
bfd_error_type err;
bfd_boolean save_ldlang_sysrooted_script;
- bfd_boolean save_as_needed, save_add_needed;
+ bfd_boolean save_as_needed, save_add_needed, save_whole_archive;
err = bfd_get_error ();
as_needed = entry->as_needed;
save_add_needed = add_needed;
add_needed = entry->add_needed;
+ save_whole_archive = whole_archive;
+ whole_archive = entry->whole_archive;
ldfile_assumed_script = TRUE;
parser_input = input_script;
ldlang_sysrooted_script = save_ldlang_sysrooted_script;
as_needed = save_as_needed;
add_needed = save_add_needed;
+ whole_archive = save_whole_archive;
pop_stat_ptr ();
return TRUE;