summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/bfd/aout-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/aout-target.h')
-rw-r--r--gnu/usr.bin/binutils/bfd/aout-target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/bfd/aout-target.h b/gnu/usr.bin/binutils/bfd/aout-target.h
index 811f909e4ef..3100b24359c 100644
--- a/gnu/usr.bin/binutils/bfd/aout-target.h
+++ b/gnu/usr.bin/binutils/bfd/aout-target.h
@@ -212,7 +212,8 @@ MY_bfd_copy_private_section_data (ibfd, isec, obfd, osec)
bfd *obfd;
asection *osec;
{
- if (bfd_get_flavour (obfd) == bfd_target_aout_flavour)
+ if (bfd_get_flavour (ibfd) == bfd_target_aout_flavour
+ && bfd_get_flavour (obfd) == bfd_target_aout_flavour)
obj_aout_subformat (obfd) = obj_aout_subformat (ibfd);
return true;
}