Skip to content

Commit

Permalink
Add non-exec stack annotation only for ELF (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Feb 27, 2025
1 parent dec1d23 commit 03f7260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ittnotify/ittptmark32.S
Original file line number Diff line number Diff line change
Expand Up @@ -712,4 +712,6 @@ __itt_pt_write:
ret

// Ensure the stack is non-executable
#if defined(__ELF__)
.section .note.GNU-stack,"",@progbits
#endif
2 changes: 2 additions & 0 deletions src/ittnotify/ittptmark64.S
Original file line number Diff line number Diff line change
Expand Up @@ -715,4 +715,6 @@ __itt_pt_write:
ret

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

0 comments on commit 03f7260

Please sign in to comment.