aboutsummaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-20 15:51:28 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-20 15:51:28 +0000
commit6c8fa8e62cd3a5872fd98269ccd4d7da6e26a459 (patch)
tree9a7a000643d3ec91847747ead7250a372d6ab191 /bfd/aoutx.h
parentaa91350c626e1d890c18914161ad34805e198420 (diff)
downloadgdb-6c8fa8e62cd3a5872fd98269ccd4d7da6e26a459.zip
gdb-6c8fa8e62cd3a5872fd98269ccd4d7da6e26a459.tar.gz
gdb-6c8fa8e62cd3a5872fd98269ccd4d7da6e26a459.tar.bz2
* aoutx.h (NAME(aout,final_link)): Check flavour of sub, not abfd,
when computing reloc sizes. From Eric Youngdale <ericy@cais.cais.com>. * elfcode.h (elf_bfd_final_link): Don't try to compute maximum reloc count or size for a non-ELF file.
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;