Skip to content

Commit 8d24a24

Browse files
committed
Merge pull request #34 from nalimilan/noexecstack
Use --noexecstack for assembly code
2 parents 9ca11f2 + 0affa5b commit 8d24a24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+298
-0
lines changed

amd64/e_remainder.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ ENTRY(remainder)
2424
ret
2525

2626

27+
/* Enable stack protection */
28+
#if defined(__linux__) && defined(__ELF__)
29+
.section .note.GNU-stack,"",%progbits
30+
#endif

amd64/e_remainderf.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ ENTRY(remainderf)
2323
ret
2424

2525

26+
/* Enable stack protection */
27+
#if defined(__linux__) && defined(__ELF__)
28+
.section .note.GNU-stack,"",%progbits
29+
#endif

amd64/e_remainderl.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ ENTRY(remainderl)
2929
ret
3030

3131

32+
/* Enable stack protection */
33+
#if defined(__linux__) && defined(__ELF__)
34+
.section .note.GNU-stack,"",%progbits
35+
#endif

amd64/e_sqrt.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ END(sqrt)
3434

3535

3636

37+
/* Enable stack protection */
38+
#if defined(__linux__) && defined(__ELF__)
39+
.section .note.GNU-stack,"",%progbits
40+
#endif

amd64/e_sqrtf.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ ENTRY(sqrtf)
3333
END(sqrtf)
3434

3535

36+
/* Enable stack protection */
37+
#if defined(__linux__) && defined(__ELF__)
38+
.section .note.GNU-stack,"",%progbits
39+
#endif

amd64/e_sqrtl.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ ENTRY(sqrtl)
4040
#endif
4141
ret
4242

43+
/* Enable stack protection */
44+
#if defined(__linux__) && defined(__ELF__)
45+
.section .note.GNU-stack,"",%progbits
46+
#endif

amd64/s_llrint.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ ENTRY(llrint)
66
ret
77
END(llrint)
88

9+
/* Enable stack protection */
10+
#if defined(__linux__) && defined(__ELF__)
11+
.section .note.GNU-stack,"",%progbits
12+
#endif

amd64/s_llrintf.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ ENTRY(llrintf)
66
ret
77
END(llrintf)
88

9+
/* Enable stack protection */
10+
#if defined(__linux__) && defined(__ELF__)
11+
.section .note.GNU-stack,"",%progbits
12+
#endif

amd64/s_llrintl.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ ENTRY(llrintl)
3939
ret
4040

4141

42+
/* Enable stack protection */
43+
#if defined(__linux__) && defined(__ELF__)
44+
.section .note.GNU-stack,"",%progbits
45+
#endif

amd64/s_logbl.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ ENTRY(logbl)
2323
ret
2424

2525

26+
/* Enable stack protection */
27+
#if defined(__linux__) && defined(__ELF__)
28+
.section .note.GNU-stack,"",%progbits
29+
#endif

0 commit comments

Comments
 (0)