aboutsummaryrefslogtreecommitdiff
path: root/bfd/xcofflink.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/xcofflink.c')
-rw-r--r--bfd/xcofflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c
index 8870525..ca7d7fe 100644
--- a/bfd/xcofflink.c
+++ b/bfd/xcofflink.c
@@ -525,7 +525,7 @@ xcoff_get_archive_info (struct bfd_link_info *info, bfd *archive)
entryp = *slot;
if (!entryp)
{
- entryp = bfd_zalloc (archive, sizeof (entry));
+ entryp = bfd_zalloc (info->output_bfd, sizeof (entry));
if (!entryp)
return NULL;