Skip to content

Commit d10d814

Browse files
committed
Remove the ExecutableStack property. It's already on by default in LLD and can't be overridden.
1 parent 7ecac72 commit d10d814

File tree

6 files changed

+0
-13
lines changed

6 files changed

+0
-13
lines changed

doc/configuration/properties.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ historical reasons.
149149
* `SymbolVisibility` (`Default`, `Hidden`): Specifies the symbol visibility in
150150
C/C++ projects when `__attribute__((visibility(...)))` is not specified.
151151
`Default` (the default 😉) means public, while `Hidden` means private.
152-
* `ExecutableStack` (`true`, `false`): Enables/disables marking the stack as
153-
executable for the resulting binary. Executable stack memory is a significant
154-
security risk. Defaults to `false`.
155152
* `EagerBinding` (`true`, `false`): Enables/disables eager binding of symbols
156153
when performing dynamic linking at run time. Eager binding has security
157154
benefits, especially in combination with `RelocationHardening`. It is also

src/samples/zigexe/zigexe.zigproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project Sdk="Vezel.Zig.Sdk">
22
<PropertyGroup>
3-
<ExecutableStack>true</ExecutableStack>
43
<OutputType>Exe</OutputType>
54
</PropertyGroup>
65

src/sdk/ZigCompile.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ public string Configuration
5757
[Required]
5858
public bool EagerBinding { get; set; }
5959

60-
[Required]
61-
public bool ExecutableStack { get; set; }
62-
6360
[Required]
6461
public bool FastMath { get; set; }
6562

@@ -558,9 +555,6 @@ void TryAppendWarningSwitch(string name)
558555
if (RelocationHardening)
559556
builder.AppendSwitch(isZig ? "-z relro" : "-Wl,-z,relro");
560557

561-
if (!ExecutableStack)
562-
builder.AppendSwitch(isZig ? "-z noexecstack" : "-Wl,-z,noexecstack");
563-
564558
builder.AppendSwitch(isZig ? "-z origin" : "-Wl,-z,origin");
565559
builder.AppendSwitchIfNotNull(isZig ? "-rpath " : "-Wl,-rpath,", "$ORIGIN");
566560

src/sdk/build/Vezel.Zig.Sdk.Build.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
DocumentationAnalysis="$(DocumentationAnalysis)"
5555
EagerBinding="$(EagerBinding)"
5656
EnvironmentVariables="ZIG_GLOBAL_CACHE_DIR=$(CachePath)/global; ZIG_LOCAL_CACHE_DIR=$(CachePath)/local"
57-
ExecutableStack="$(ExecutableStack)"
5857
FastMath="$(FastMath)"
5958
IncludeDirectories="@(IncludeDirectory)"
6059
LanguageStandard="$(LanguageStandard)"

src/sdk/build/Vezel.Zig.Sdk.Defaults.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353

5454
<PropertyGroup>
5555
<EagerBinding Condition="'$(EagerBinding)' == ''">true</EagerBinding>
56-
<ExecutableStack Condition="'$(ExecutableStack)' == ''">false</ExecutableStack>
5756
<FastMath Condition="'$(FastMath)' == ''">false</FastMath>
5857
<!-- TODO: https://github.com/vezel-dev/zig-sdk/issues/33 -->
5958
<LinkTimeOptimization Condition="'$(LinkTimeOptimization)' == ''">false</LinkTimeOptimization>

src/sdk/build/Vezel.Zig.Sdk.Test.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
DocumentationAnalysis="$(DocumentationAnalysis)"
3131
EagerBinding="$(EagerBinding)"
3232
EnvironmentVariables="ZIG_GLOBAL_CACHE_DIR=$(CachePath)/global; ZIG_LOCAL_CACHE_DIR=$(CachePath)/local"
33-
ExecutableStack="$(ExecutableStack)"
3433
FastMath="$(FastMath)"
3534
IncludeDirectories="@(IncludeDirectory)"
3635
LanguageStandard="$(LanguageStandard)"

0 commit comments

Comments
 (0)