search for: trampolinestorage

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

2018 Aug 29
2
JIT client - late cross references
...poline = <pointer to b()> declare b(...) define a(): { ... %ptr = load @b_trampoline call %ptr(%1, %2, %3) ... } Then, when you load module A SymbolResolver will ask for an address of b_trampoline, you can give back an address of a heap-allocated storage, i.e.: ... uint64_t *trampolineStorage = new uint64_t; ... SymbolResolver::findSymbol(const std::string &name) { if (name == "b_trampoline") { JITSymbolInfo((uint64_t) trampolineStorage, JITSymbolFlags::Exported) } ... } Later on, when everything is loaded and you are ready to execute JITed code you c...
2018 Aug 29
2
JIT client - late cross references
Hello Lang, thank you for your response! So the use case would be some kind of wrapping or just taking control. Taking that Module 'A' has function a() and Module 'B' has function b() and c() - also a() calls b(). The normal resolving process would resolve the function call correct. But for some reason (like having a wrapper) I would prefer to resolve calls to b() with a call to