build: enable linux large pages LLVM lld linkage support · nodejs/node@f42eb01 · GitHub
Skip to content

Commit f42eb01

Browse files
devnexentargos
authored andcommitted
build: enable linux large pages LLVM lld linkage support
The custom linker script is compatible with GNU ld only. As such, providin a new expliciting option to redirect to a different one. lld seems unable to migrate this large section w/o segfaulting so providing only the base address anchor for now. PR-URL: #28938 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 1e3e6da commit f42eb01

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

configure.py

Lines changed: 6 additions & 0 deletions

node.gypi

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,24 @@
295295
'ldflags': [ '-Wl,-z,relro',
296296
'-Wl,-z,now' ]
297297
}],
298-
[ 'OS=="linux" and target_arch=="x64" and node_use_large_pages=="true"', {
298+
[ 'OS=="linux" and '
299+
'target_arch=="x64" and '
300+
'node_use_large_pages=="true" and '
301+
'node_use_large_pages_script_lld=="false"', {
299302
'ldflags': [
300303
'-Wl,-T',
301304
'<!(realpath src/large_pages/ld.implicit.script)',
302305
]
303306
}],
307+
[ 'OS=="linux" and '
308+
'target_arch=="x64" and '
309+
'node_use_large_pages=="true" and '
310+
'node_use_large_pages_script_lld=="true"', {
311+
'ldflags': [
312+
'-Wl,-T',
313+
'<!(realpath src/large_pages/ld.implicit.script.lld)',
314+
]
315+
}],
304316
[ 'node_use_openssl=="true"', {
305317
'defines': [ 'HAVE_OPENSSL=1' ],
306318
'conditions': [
Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)