Comments (2)
Apparently, LIEF doesn't compile under wasi-sdk
because LIEF uses things like std::mutex
which aren't defined in the wasi-sdk
. So I think we should still use Emscripten.
I can think of 2 solutions with Emscripten:
- send a PR to remove uses of
__dirname
and__filename
that affects our codepath - hand code the JS wrapper ourselves
from postject.
Substituting __dirname
and __filename
with ''
works, so that means that it's essentially dead code. These only exist to support locateFile()
, which isnβt needed for SINGLE_FILE
. Let's go with option 1 - send a PR to remove uses of __dirname
and __filename
from the SINGLE_FILE
code path.
For now, however, we can use sed
to replace the symbols with ''
until the upstream PR gets merged and released.
from postject.
Related Issues (20)
- Document the postject API HOT 1
- Investigate alpine build failures HOT 2
- OOM abort error HOT 1
- Refactor CLI
- Test Coverage for Real World Apps
- RuntimeError: Aborted when injecting into debug build of Node.js on Linux, Windows and macOS
- Replace `commander` with `parseArgs` HOT 8
- Add a fuse to speed up resource access HOT 4
- What to use for CI HOT 7
- Internally use `objcopy --add-section` on macOS and Linux HOT 10
- Unable to make build on macOS 13 due to deprecated functions HOT 3
- Calling `postject_find_resource()` segfaults on `rhel8-ppc64le` HOT 6
- Print a message when the build is successful HOT 1
- Weired output message `The signature seems corrupted!` on Windows HOT 7
- SEA created following Node.js documentation doesn't work HOT 9
- Can't read and write to target executable HOT 8
- single executable applications with warning HOT 4
- Investigate why running the wasm blob in Postject is slow
- upx compatibility(Cannot pack after postject-ed) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postject.