nodejs / postject

Easily inject arbitrary read-only resources into executable formats (Mach-O, PE, ELF) and use it at runtime.
Other
187 stars 14 forks source link

SEA issue at step running postject to inject the blob #94

Closed leiyu2345 closed 9 months ago

leiyu2345 commented 9 months ago

OS: MacOS Sonoma 14.2.1 Processor: Intel

Completely follow the document https://nodejs.org/api/single-executable-applications.html Step 6. Inject the blob into the copied binary by running postject Command: npx postject hello NODE_SEA_BLOB sea-prep.blob \ --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \ --macho-segment-name NODE_SEA

Error: Start injection of NODE_SEA_BLOB in hello... Error: Multiple occurences of sentinel "NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2" found in the binary

Anyone can help with this issue? Thanks!

tony-go commented 9 months ago

Hi @leiyu2345

We already track this bug here: https://github.com/nodejs/postject/issues/92