summaryrefslogtreecommitdiffstats
path: root/src/ld.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2006-06-11 00:20:43 +0000
committerUlrich Drepper <[email protected]>2006-06-11 00:20:43 +0000
commit2d88028a7b30d9e9be8e5af089cd6dcc22f80ce1 (patch)
tree5a10d1118c2d8d0d696c6b83c796c77ed7c30414 /src/ld.c
parent697f4db2f34c054a2f93b45dbdbbaec82e34a409 (diff)
Implement -z execstack/noexecstack options.
Diffstat (limited to 'src/ld.c')
-rw-r--r--src/ld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ld.c b/src/ld.c
index 53386569..79efb3ac 100644
--- a/src/ld.c
+++ b/src/ld.c
@@ -931,6 +931,10 @@ parse_z_option (const char *arg)
ld_state.as_needed = false;
else if (strcmp (arg, "systemlibrary") == 0)
ld_state.is_system_library = true;
+ else if (strcmp (arg, "execstack") == 0)
+ ld_state.execstack = execstack_true;
+ else if (strcmp (arg, "noexecstack") == 0)
+ ld_state.execstack = execstack_false_force;
else if (strcmp (arg, "allextract") != 0
&& strcmp (arg, "defaultextract") != 0
&& strcmp (arg, "weakextract") != 0