diff options
author | Sam Clegg <sbc@chromium.org> | 2019-10-28 15:24:52 -0700 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2019-10-29 18:58:56 -0700 |
commit | baff8ec2e1d845d90580a0d85ad6ab43d929bcfe (patch) | |
tree | a1116c1637965e9f515b65a01a58755f7c24ed64 /llvm/tools/llvm-cov/CoverageReport.cpp | |
parent | 4d06ea83cc156ae8410316e56237eab5144b5fa5 (diff) | |
download | bcm5719-llvm-baff8ec2e1d845d90580a0d85ad6ab43d929bcfe.tar.gz bcm5719-llvm-baff8ec2e1d845d90580a0d85ad6ab43d929bcfe.zip |
[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: https://github.com/emscripten-core/emscripten/issues/9013
Differential Revision: https://reviews.llvm.org/D69600
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageReport.cpp')
0 files changed, 0 insertions, 0 deletions