Skip to content

Commit

Permalink
src: add .note.GNU-stack section
Browse files Browse the repository at this point in the history
This indicates to GNU binutils that it can unset the executable stack
flag on the binary that it is building.

PR-URL: #37688
Refs: #17933
Reviewed-By: Daniel Bevenius <[email protected]>
  • Loading branch information
jayaddison authored and ruyadorno committed Mar 18, 2021
1 parent 01dcf4d commit 836cb67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/large_pages/node_text_start.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#if defined(__ELF__)
.section .note.GNU-stack,"",@progbits
#endif
.text
.align 0x2000
.global __node_text_start
Expand Down

0 comments on commit 836cb67

Please sign in to comment.