diff options
author | Alan Modra <amodra@gmail.com> | 2009-10-20 00:49:31 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-10-20 00:49:31 +0000 |
commit | dbde1c12721304ec89ee0326187ecedebd9da4ed (patch) | |
tree | bf3396f5ba63faaba85ba9d46a3165d58a0bb749 /bfd | |
parent | b1bc9ed8b0ee662bb0e029e903e86e593c95673d (diff) | |
download | gdb-dbde1c12721304ec89ee0326187ecedebd9da4ed.zip gdb-dbde1c12721304ec89ee0326187ecedebd9da4ed.tar.gz gdb-dbde1c12721304ec89ee0326187ecedebd9da4ed.tar.bz2 |
PR binutils/10802
* opncls.c (_maybe_make_executable): Make DYNAMIC files executable.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/opncls.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index bc8fc7c..f3aedb6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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>: diff --git a/bfd/opncls.c b/bfd/opncls.c index 3337efe..4afde88 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; |