PR binutils/10802
authorAlan Modra <amodra@gmail.com>
Tue, 20 Oct 2009 00:49:31 +0000 (00:49 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 20 Oct 2009 00:49:31 +0000 (00:49 +0000)
* opncls.c (_maybe_make_executable): Make DYNAMIC files executable.

bfd/ChangeLog
bfd/opncls.c

index bc8fc7c94f9ede06ffd7c8e97b7a675debef918d..f3aedb63fdc00886406aae5120c6204cf3825964 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-20  Alan Modra  <amodra@bigpond.net.au>
+
+       PR binutils/10802
+       * opncls.c (_maybe_make_executable): Make DYNAMIC files executable.
+
 2009-10-19  Hans-Peter Nilsson  <hp@axis.com>
 
        * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>:
index 3337efe0e89099bf5ab8669b0a7e6af2fbe6c444..4afde881888c054fe6fdd4895417b5df3a522854 100644 (file)
@@ -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;