search for: __wasm_call_ctors

Displaying 2 results from an estimated 2 matches for "__wasm_call_ctors".

2020 Aug 10
2
(wasm-ld) Any fundamental problems with linking a shared wasm library statically?
...hink relocation functions are basically just a list of statements (in a C-like language) `memory_base + <offset> = <address of symbol> + <constant>`. The RHS can also be `<table base> + constant`. So I think it could be run at link time. Alternatively, I think we could run $__wasm_call_ctors as first thing in a linker-generated main function after updating memory_base and table_base of the imported module and it'd apply the relocations. Would this make sense? I'm new at wasm and not too experienced in linking (just a happy user of ld.lld and gold) so it's possible that I...
2019 Oct 15
4
Wasm, start function, and default globals
Apologies if there is a better forum for these questions. Please redirect me if so. I’ve been using the clang/wasm-ld tools to experiment with some basic examples, and there’s a couple things I’m wrestling with. 1) How to denote a function as the “start” function (https://webassembly.github.io/spec/core/binary/modules.html#start-section) 2) How to avoid the defaulted __heap_base global. I’ve