mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
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: https://github.com/nodejs/node/pull/28938 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
ea765eba20
commit
0d7acfac82
3 changed files with 22 additions and 1 deletions
14
node.gypi
14
node.gypi
|
@ -295,12 +295,24 @@
|
|||
'ldflags': [ '-Wl,-z,relro',
|
||||
'-Wl,-z,now' ]
|
||||
}],
|
||||
[ 'OS=="linux" and target_arch=="x64" and node_use_large_pages=="true"', {
|
||||
[ 'OS=="linux" and '
|
||||
'target_arch=="x64" and '
|
||||
'node_use_large_pages=="true" and '
|
||||
'node_use_large_pages_script_lld=="false"', {
|
||||
'ldflags': [
|
||||
'-Wl,-T',
|
||||
'<!(realpath src/large_pages/ld.implicit.script)',
|
||||
]
|
||||
}],
|
||||
[ 'OS=="linux" and '
|
||||
'target_arch=="x64" and '
|
||||
'node_use_large_pages=="true" and '
|
||||
'node_use_large_pages_script_lld=="true"', {
|
||||
'ldflags': [
|
||||
'-Wl,-T',
|
||||
'<!(realpath src/large_pages/ld.implicit.script.lld)',
|
||||
]
|
||||
}],
|
||||
[ 'node_use_openssl=="true"', {
|
||||
'defines': [ 'HAVE_OPENSSL=1' ],
|
||||
'conditions': [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue