Skip to content

Commit e3336dd

Browse files
committed
Enable stack protection for all ELFs, not only __linux__
1 parent ebe1db3 commit e3336dd

67 files changed

Lines changed: 67 additions & 67 deletions

Some content is hidden

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

amd64/bsd_asm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
#define _START_ENTRY .p2align 4,0x90
6464

65-
#if defined(__linux__) || defined(__FreeBSD__) || defined(__ELF__)
65+
#if defined(__ELF__)
6666
#define _ENTRY(x) .text; _START_ENTRY; \
6767
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
6868
#define END(x) .size x, . - x

amd64/e_remainder.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ ENTRY(remainder)
2525

2626

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

amd64/e_remainderf.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ ENTRY(remainderf)
2424

2525

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

amd64/e_remainderl.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ ENTRY(remainderl)
3030

3131

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

amd64/e_sqrt.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ END(sqrt)
3535

3636

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

amd64/e_sqrtf.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ END(sqrtf)
3434

3535

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

amd64/e_sqrtl.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ ENTRY(sqrtl)
4141
ret
4242

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

amd64/s_llrint.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ ENTRY(llrint)
77
END(llrint)
88

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

amd64/s_llrintf.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ ENTRY(llrintf)
77
END(llrintf)
88

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

amd64/s_llrintl.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ ENTRY(llrintl)
4040

4141

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

0 commit comments

Comments
 (0)