[PATCH] D43264: [WebAssembly] Add explicit symbol table

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 12:54:44 PST 2018


sbc100 added a comment.

In https://reviews.llvm.org/D43264#1008019, @ruiu wrote:

> It sounds like InputGlobal is a symbol. Is this correct? (I know that you guys want to fix this later in a follow-up patch, but I cannot say LGTM to the code that I don't understand how it works...)


It represents a wasm global that could have an initial value.   Several symbols could point to a given global.  For example `__stack_pointer` and `__stack_pointer_alias` could both point to global 0, and in this case we would only want to write a single global to the final output and have both those symbols resolve to the same value when used in relocations.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43264





More information about the llvm-commits mailing list