Support for /proc/self/exe
#22474
Replies: 2 comments 16 replies
-
|
For the file_packager we use an assembly file to kind of do what emscripten/tools/file_packager.py Lines 285 to 295 in a19f7df Does does |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing an alternative file package system. For ELF and Linux, one can just append a ZIP file to the ELF binary and then open a file descriptor of the process's file on the file system and then unzip library can parse it.
@sbc100 can I do the same in Emscripten? Could I append a ZIP file to the contents of the
.wasmfile (to allow for easy post-hoc adding some ZIPped data by end-user without the wasm toolchain)? Will it then be parsed okay in the browser or break? Otherwise will#embedwork? Does it have any file size limitations? Another thing for embedding a blob in Linux land is usingld -r -b some_file -o some_file.oand then linking it in. I wonder ifwasm-ldsupports this? Is special file/proc/self/exeorargv[0]supported in terms of opening it for reading?Beta Was this translation helpful? Give feedback.
All reactions