aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2021-07-07 23:31:48 -0700
committerThomas Lively <tlively@google.com>2021-07-07 23:31:48 -0700
commit0fd5e7b2d8ca4ed46d76187feb4b903ed0a3ea75 (patch)
tree7bfc152893794e33afbd7c5c1b564e91668010fc /llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
parentf8c5a4c67075877e1b6976bb7372aa96f02c11bc (diff)
downloadllvm-0fd5e7b2d8ca4ed46d76187feb4b903ed0a3ea75.zip
llvm-0fd5e7b2d8ca4ed46d76187feb4b903ed0a3ea75.tar.gz
llvm-0fd5e7b2d8ca4ed46d76187feb4b903ed0a3ea75.tar.bz2
[WebAssembly][lld] Fix segfault on .bss sections in mapfile
When memory is declared in the Wasm module, we rely on the implicit zero initialization behavior and do not explicitly output .bss sections. The means that they do not have associated `outputSec` entries, which was causing segfaults in the mapfile support. Fix the issue by guarding against null `outputSec` and falling back to using a zero offset. Differential Revision: https://reviews.llvm.org/D102951
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp')
0 files changed, 0 insertions, 0 deletions