Skip to content

Commit

Permalink
THP ELF assembly: 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.

Refs: #17933
  • Loading branch information
jayaddison committed Mar 9, 2021
1 parent 52ca115 commit b4f3e39
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
Expand Up @@ -2,4 +2,7 @@
.align 0x2000
.global __node_text_start
.hidden __node_text_start
#if defined(__ELF__)
.section .note.GNU-stack,"",@progbits
#endif
__node_text_start:

0 comments on commit b4f3e39

Please sign in to comment.