diff options
author | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2020-03-26 06:14:59 +0300 |
---|---|---|
committer | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2020-03-30 08:55:20 +0300 |
commit | 67d5c907d2dcf338306eaa74b910096b2a686fc4 (patch) | |
tree | f57a9bc5448235fdc979842e52a7eace8b087f38 /node.gyp | |
parent | c2637847b36db987123e6c10d46b4abb2a078667 (diff) |
src: unify Linux and FreeBSD large pages implem
dl_iterate_phdr(3) is also available for FreeBSD. This change adds the
same trimming code for the start and end of the .text section as on
Linux, making it work on FreeBSD, and removing the need for the
additional FreeBSD-specific check.
Manually tested on
* https://www.osboxes.org/freebsd/#freebsd-12-1-vbox
* https://www.osboxes.org/freebsd/#freebsd-11-vbox
* test-digitalocean-freebsd11-x64-2
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: https://github.com/nodejs/node/pull/32534
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -323,7 +323,7 @@ 'target_name': 'node_text_start', 'type': 'none', 'conditions': [ - [ 'OS=="linux" and ' + [ 'OS in "linux freebsd" and ' 'target_arch=="x64"', { 'type': 'static_library', 'sources': [ @@ -512,7 +512,7 @@ 'src/node_snapshot_stub.cc' ], }], - [ 'OS=="linux" and ' + [ 'OS in "linux freebsd" and ' 'target_arch=="x64"', { 'dependencies': [ 'node_text_start' ], 'ldflags+': [ |