aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-07-22 14:07:10 +0000
committerAlan Modra <amodra@gmail.com>2010-07-22 14:07:10 +0000
commit4c1534c7a2ada64894ab0ef684dfec3bc73beef7 (patch)
tree5090afe636edd7f14347c8e365734176d96a48d1 /bfd
parentba25b9210452e9239b3137e9ac8db21955ec8b47 (diff)
downloadgdb-4c1534c7a2ada64894ab0ef684dfec3bc73beef7.zip
gdb-4c1534c7a2ada64894ab0ef684dfec3bc73beef7.tar.gz
gdb-4c1534c7a2ada64894ab0ef684dfec3bc73beef7.tar.bz2
* aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
relocs.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/aoutx.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index aa36284..5e5efb0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-22 Alan Modra <amodra@gmail.com>
+
+ * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
+ relocs.
+
2010-07-20 Alan Modra <amodra@gmail.com>
* elf.c (assign_file_positions_for_load_sections): Check that
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index c3366b6..c632722 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