summaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r--bfd/aoutx.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index c3366b68d1..c6327226f9 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -629,7 +629,9 @@ NAME (aout, some_aout_object_p) (bfd *abfd,
if (execp->a_entry != 0
|| (execp->a_entry >= obj_textsec (abfd)->vma
&& execp->a_entry < (obj_textsec (abfd)->vma
- + obj_textsec (abfd)->size)))
+ + obj_textsec (abfd)->size)
+ && execp->a_trsize == 0
+ && execp->a_drsize == 0))
abfd->flags |= EXEC_P;
#ifdef STAT_FOR_EXEC
else