镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/large_pages/node_text_start.S
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
// Add .note.gnu.property note for x86_64 to enable Intel CET
// Based on: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html
// Refs: https://github.com/nodejs/node/issues/59084
#if defined(__x86_64__) || defined(_M_X64)
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
#endif
Comment thread
addaleax marked this conversation as resolved.
Outdated
.text
.align 0x2000
.global __node_text_start
Expand Down