* ldlang.c (load_symbols): Correct last change.

This commit is contained in:
Alan Modra 2010-12-13 01:06:35 +00:00
parent 0e144ba71e
commit 4610564552
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2010-12-13 Alan Modra <amodra@gmail.com>
* ldlang.c (load_symbols): Correct last change.
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (load_symbols): Optimize for add_archive_element.

View File

@ -2718,13 +2718,14 @@ load_symbols (lang_input_statement_type *entry,
}
subsbfd = member;
if (! ((*link_info.callbacks->add_archive_element)
(&link_info, member, "--whole-archive", &subsbfd)))
if (!(*link_info.callbacks
->add_archive_element) (&link_info, member,
"--whole-archive", &subsbfd))
abort ();
/* Potentially, the add_archive_element hook may have set a
substitute BFD for us. */
if (! bfd_link_add_symbols (member, &link_info))
if (!bfd_link_add_symbols (subsbfd, &link_info))
{
einfo (_("%F%B: could not read symbols: %E\n"), member);
loaded = FALSE;