Skip to content

Commit 03f7260

Browse files
authored
Add non-exec stack annotation only for ELF (#171)
1 parent dec1d23 commit 03f7260

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ittnotify/ittptmark32.S

+2
Original file line numberDiff line numberDiff line change
@@ -712,4 +712,6 @@ __itt_pt_write:
712712
ret
713713

714714
// Ensure the stack is non-executable
715+
#if defined(__ELF__)
715716
.section .note.GNU-stack,"",@progbits
717+
#endif

src/ittnotify/ittptmark64.S

+2
Original file line numberDiff line numberDiff line change
@@ -715,4 +715,6 @@ __itt_pt_write:
715715
ret
716716

717717
// Ensure the stack is non-executable
718+
#if defined(__ELF__)
718719
.section .note.GNU-stack,"",@progbits
720+
#endif

0 commit comments

Comments
 (0)