summaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2009-10-20 00:49:31 +0000
committerAlan Modra <amodra@bigpond.net.au>2009-10-20 00:49:31 +0000
commite6f618dfdbac2d74bf661e6f7f439f4733ccf3eb (patch)
tree40011825cd597b52d7ff451d8dd500cb577f4107 /bfd/opncls.c
parentd59288c6c031e5ec57a6daa271a2b7132ace1ac1 (diff)
downloadbinutils-redhat-e6f618dfdbac2d74bf661e6f7f439f4733ccf3eb.tar.gz
PR binutils/10802
* opncls.c (_maybe_make_executable): Make DYNAMIC files executable.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 3337efe0e8..4afde88188 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;