From: Alan Modra Date: Tue, 20 Oct 2009 08:40:36 +0000 (+0000) Subject: PR binutils/10802 X-Git-Tag: binutils-2_20_1~188 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=636e513ad8e5326e57f8ae14f8788592f955c7e8;p=thirdparty%2Fbinutils-gdb.git PR binutils/10802 * opncls.c (_maybe_make_executable): Make DYNAMIC files executable. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5459aa6bb28..49c69c24104 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-10-20 Alan Modra + + PR binutils/10802 + * opncls.c (_maybe_make_executable): Make DYNAMIC files executable. + 2009-10-19 Hans-Peter Nilsson * elf32-cris.c (cris_elf_relocate_section) : diff --git a/bfd/opncls.c b/bfd/opncls.c index 3337efe0e89..4afde881888 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -635,7 +635,7 @@ _maybe_make_executable (bfd * abfd) /* If the file was open for writing and is now executable, make it so. */ if (abfd->direction == write_direction - && abfd->flags & EXEC_P) + && (abfd->flags & (EXEC_P | DYNAMIC)) != 0) { struct stat buf;