Skip to content

Commit 2135774

Browse files
committed
Disable executable stack to prevent buffer overflow attacks
1 parent 5fb440a commit 2135774

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

projects/math/asm/clang/mul_assign_mat4_mat4.s

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
.file "mul_assign_mat4_mat4.s"
1111
.intel_syntax noprefix
12+
.section .note.GNU-stack,"",@progbits
1213
.text
1314
.Ltext0:
1415
.p2align 4

projects/math/asm/clang/mul_mat4_mat4.s

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
.file "mul_mat4_mat4.s"
1111
.intel_syntax noprefix
12+
.section .note.GNU-stack,"",@progbits
1213
.text
1314
.Ltext0:
1415
.p2align 4

projects/math/premake5.lua

+10
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ scoped.group('Engine', function()
5858

5959
warnings 'Extra'
6060

61+
scoped.usage("PUBLIC", function()
62+
scoped.filter({
63+
"toolset:clang",
64+
}, function()
65+
linkoptions {
66+
"-z noexecstack"
67+
}
68+
end)
69+
end)
70+
6171
scoped.usage("INTERFACE", function()
6272
externalincludedirs {
6373
'%{root}/projects/math/include',

0 commit comments

Comments
 (0)