[llvm] [WebAssembly] Define `__funcref_call_table` in generated asm and objects (PR #180900)

Demetrius Kanios via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 14:58:14 PDT 2026


QuantumSegfault wrote:

> Why don't you like the "__funcref_call_table is always undefined until link time" approach?
> 
> It seems to fit much better with the direction we are going with all these other internal symbols.

It ends up being a more complex change in multiple spots across `lld` to define a simple symbol that isn't dependent on link-time knowledge. You could ask why `__cpp_exception` tag isn't defined by the linker. Difference here is there's no good place (library) to slot it in otherwise.



https://github.com/llvm/llvm-project/pull/180900


More information about the llvm-commits mailing list