Skip to content

Commit b4f3e39

Browse files
committed
THP ELF assembly: Add .note.GNU-stack section
This indicates to GNU binutils that it can unset the executable stack flag on the binary that it is building. Refs: #17933
1 parent 52ca115 commit b4f3e39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/large_pages/node_text_start.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
.align 0x2000
33
.global __node_text_start
44
.hidden __node_text_start
5+
#if defined(__ELF__)
6+
.section .note.GNU-stack,"",@progbits
7+
#endif
58
__node_text_start:

0 commit comments

Comments
 (0)