Closed
Description
Doing exactly as documented in https://nodejs.org/api/single-executable-applications.html
On macOS arm64
$ cat hello.js
console.log(`Hello, ${process.argv[2]}!`);
$ ./hello -v
v19.7.0
$ npx postject hello NODE_JS_CODE hello.js \
--sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \
--macho-segment-name NODE_JS
$ ./hello
[1] 20992 killed ./hello
$ ./hello world
[1] 21015 killed ./hello world
On Linux x64
$ cat hello.js
console.log(`Hello, ${process.argv[2]}!`);
$ ./hello -v
v19.7.0
$ npx postject hello NODE_JS_CODE hello.js \
--sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2
Can't find string offset for section name '.note.100'
Can't find string offset for section name '.note.100'
Can't find string offset for section name '.note.100'
Can't find string offset for section name '.note.100'
Can't find string offset for section name '.note.100'
Can't find string offset for section name '.note'
Can't find string offset for section name '.note.100'
Can't find string offset for section name '.note.100'
Can't find string offset for section name '.note.100'
$ ./hello
[1] 2517236 segmentation fault (core dumped) ./hello
$ ./hello world
[1] 2517265 segmentation fault (core dumped) ./hello world
Metadata
Metadata
Assignees
Labels
No labels