mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 05:38:47 +02:00
src: add Intel CET properties to large_pages.S
Add note indicating support of Intel CET for large_pages.S file based on annocheck guide: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html PR-URL: https://github.com/nodejs/node/pull/59363 Refs: https://github.com/nodejs/node/issues/59084 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
parent
db18bc865a
commit
bb6e8351c7
1 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
.text
|
||||
.align 0x2000
|
||||
.global __node_text_start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue