search for: b_trampolin

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

Did you mean: b_trampoline
2018 Aug 29
2
JIT client - late cross references
...Module A has function a() Module B has function b() a() calls b() You are loading only module A, but it fails because it cannot resolve function b(), right? If so, then you can try this approach: Create a global variable in the module A of type "pointer to b()" named, e.g., b_trampoline. Replace call instruction with the load+call instructions, as described in pseudocode: Before: declare b(...) define a(): { ... call b(%1, %2, %3) ... } After: @b_trampoline = <pointer to b()> declare b(...) define a(): { ... %ptr = load @b_trampoline call %ptr(%1...
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