* aoutx.h (some_aout_object_p): Don't set EXEC_P for files with

relocs.
This commit is contained in:
Alan Modra 2010-07-22 14:07:10 +00:00
parent ba25b92104
commit 4c1534c7a2
2 changed files with 8 additions and 1 deletions

View File

@ -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> 2010-07-20 Alan Modra <amodra@gmail.com>
* elf.c (assign_file_positions_for_load_sections): Check that * elf.c (assign_file_positions_for_load_sections): Check that

View File

@ -629,7 +629,9 @@ NAME (aout, some_aout_object_p) (bfd *abfd,
if (execp->a_entry != 0 if (execp->a_entry != 0
|| (execp->a_entry >= obj_textsec (abfd)->vma || (execp->a_entry >= obj_textsec (abfd)->vma
&& 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; abfd->flags |= EXEC_P;
#ifdef STAT_FOR_EXEC #ifdef STAT_FOR_EXEC
else else