Displaying 2 results from an estimated 2 matches for "writeuleb128".
2018 Jun 15
2
[WebAssembly] lld dynamic loader
...to make dlopen/dlclose et dlsym mechanism works
:) :
Index: wasm/Writer.cpp
===================================================================
--- wasm/Writer.cpp (revision 330555)
+++ wasm/Writer.cpp (working copy)
@@ -257,7 +257,7 @@
raw_ostream &OS = Section->getStream();
writeUleb128(OS, 1, "table count");
- WasmLimits Limits = {WASM_LIMITS_FLAG_HAS_MAX, TableSize, TableSize};
+ WasmLimits Limits = {0, TableSize, TableSize};
writeTableType(OS, WasmTable{WASM_TYPE_ANYFUNC, Limits});
}
May be to have a code more readable WASM_LIMITS_FLAG_HAS_NO_MAX (=0) can
be...
2018 Jun 01
2
[WebAssembly] lld dynamic loader
Hello,
The table generated by lld (Wasm target) have a max size.
So this make impossible to add some others functions in the table .
As for the moment only one Table is available in WAsm this is the only way
to add function in a dynamic way.
Having a none static size of the table is useful for a kind dynamic
loader/inker at run-time: by adding some exported functions coming from
another