[llvm] [WebAssembly] Define `__funcref_call_table` in generated asm and objects (PR #180900)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 08:57:06 PST 2026
sbc100 wrote:
> @sbc100 Do you recall a particular reason that we have the linker synthesize the indirect call table rather than just making it weak? If so does that logic apply here too? Or why we synthesize it rather than linking in an object file that defines it to every program? (I guess for the last case, that's much less convenient than synthesizing it).
I think it just made sense at the time (and still does). Since both the the linear memory and the indirection function table are synthesized by the linker, its makes sense that that symbols that point to them also be created by the linker.
In particular, no external object could define them because only the linker knows how big they need to be.
https://github.com/llvm/llvm-project/pull/180900
More information about the llvm-commits
mailing list