aboutsummaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r--bfd/aoutx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 0e5a4d8..da0fa74 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -3291,7 +3291,7 @@ NAME(aout,final_link) (abfd, info, callback)
drsize = 0;
for (sub = info->input_bfds; sub != (bfd *) NULL; sub = sub->link_next)
{
- if (bfd_get_flavour (abfd) == bfd_target_aout_flavour)
+ if (bfd_get_flavour (sub) == bfd_target_aout_flavour)
{
trsize += exec_hdr (sub)->a_trsize;
drsize += exec_hdr (sub)->a_drsize;