diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-07-22 14:07:09 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-07-22 14:07:09 +0000 |
commit | e685eada7f4090a5ebc255028fce4b9f5a4f57e9 (patch) | |
tree | 661c323c8b7b4979eea1a250c8efc774d35f8b56 /bfd/aoutx.h | |
parent | 85b54ee6f5ae09c53020d787102a89fc34b3e2eb (diff) | |
download | binutils-redhat-e685eada7f4090a5ebc255028fce4b9f5a4f57e9.tar.gz |
* aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
relocs.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 4 |
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 |