aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-12-13 01:06:35 +0000
committerAlan Modra <amodra@gmail.com>2010-12-13 01:06:35 +0000
commit4610564552cf56d57952b34289f0e253a85e38fc (patch)
treea416aa08cc9996b29a88fb2636f803bc4ee9bdd9 /ld/ldlang.c
parent0e144ba71eacb7e00bff43fc66b707bd7f029c44 (diff)
downloadgdb-4610564552cf56d57952b34289f0e253a85e38fc.zip
gdb-4610564552cf56d57952b34289f0e253a85e38fc.tar.gz
gdb-4610564552cf56d57952b34289f0e253a85e38fc.tar.bz2
* ldlang.c (load_symbols): Correct last change.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 03a11bd..6dc0229 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -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;