Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebAssembly][lld] Fix for static linking of PIC code
When statically linking PIC code we create an internalized __memory_base so that memory-base-relative relocation work correctly. The value of this global should be zero, and not the globalBase since the globalBase offset is already taken into account by getVirtualAddress. Fixes: emscripten-core/emscripten#9013 Differential Revision: https://reviews.llvm.org/D69600
- Loading branch information