* ldlang.c (load_symbols): Correct last change.
This commit is contained in:
parent
0e144ba71e
commit
4610564552
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user