src: 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.

PR-URL: https://github.com/nodejs/node/pull/37688
Refs: https://github.com/nodejs/node/issues/17933
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
James Addison authored and Michaël Zasso committed 2021-05-01 12:25:22 +02:00
1 parent 6d7c7bc8d9
commit eb0faa12df
1 file changed
+3
+3
View File
@@ -1,3 +1,6 @@
#if defined(__ELF__)
.section .note.GNU-stack,"",@progbits
#endif
.text
.align 0x2000
.global __node_text_start