From: Alan Modra Date: Thu, 22 Jul 2010 14:07:10 +0000 (+0000) Subject: * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c1534c7a2ada64894ab0ef684dfec3bc73beef7;p=binutils-gdb.git * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with relocs. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index aa36284e8e2..5e5efb00c2f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-07-22 Alan Modra + + * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with + relocs. + 2010-07-20 Alan Modra * elf.c (assign_file_positions_for_load_sections): Check that diff --git a/bfd/aoutx.h b/bfd/aoutx.h index c3366b68d14..c6327226f92 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