aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/aoutx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 97d3f61..0e5a4d8 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -450,7 +450,8 @@ NAME(aout,some_aout_object_p) (abfd, execp, callback_to_real_object_p)
abfd->flags |= WP_TEXT;
adata (abfd).magic = n_magic;
}
- else if (N_MAGIC (*execp) == OMAGIC)
+ else if (N_MAGIC (*execp) == OMAGIC
+ || N_MAGIC (*execp) == BMAGIC)
adata (abfd).magic = o_magic;
else
{