aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index b54ee51..4d6fe66 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -7168,7 +7168,7 @@ warning: enabling an executable stack because of -z execstack command line optio
break;
}
}
- else if (bed->default_execstack)
+ else if (bed->default_execstack && info->default_execstack)
{
exec = PF_X;
emptyobj = inputobj;