Skip to content

Commit b08aa96

Browse files
committed
fix: patches for arm64
Ref: nodejs/node#51256
1 parent 1461d59 commit b08aa96

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

patches/node.v16.20.2.cpp.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ index de409a31f3..d26e4366ad 100644
307307

308308
'conditions': [
309309
+ ['target_arch=="arm64"', {
310-
+ 'cflags': ['-msign-return-address=all'], # Pointer authentication.
310+
+ 'cflags': ['-mbranch-protection=standard'], # Pointer authentication.
311311
+ }],
312312
['OS=="aix"', {
313313
'ldflags': [

patches/node.v18.18.2.cpp.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ index 6b554d75d8..fce4eb4bd5 100644
328328

329329
'conditions': [
330330
+ ['target_arch=="arm64"', {
331-
+ 'cflags': ['-msign-return-address=all'], # Pointer authentication.
331+
+ 'cflags': ['-mbranch-protection=standard'], # Pointer authentication.
332332
+ }],
333333
['OS in "aix os400"', {
334334
'ldflags': [

patches/node.v19.8.1.cpp.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ index 2e41a7bb22..6131b75467 100644
328328

329329
'conditions': [
330330
+ ['target_arch=="arm64"', {
331-
+ 'cflags': ['-msign-return-address=all'], # Pointer authentication.
331+
+ 'cflags': ['-mbranch-protection=standard'], # Pointer authentication.
332332
+ }],
333333
['OS in "aix os400"', {
334334
'ldflags': [

0 commit comments

Comments
 (0)