diff options
| author | Thomas Lively <tlively@google.com> | 2021-07-07 23:31:48 -0700 |
|---|---|---|
| committer | Thomas Lively <tlively@google.com> | 2021-07-07 23:31:48 -0700 |
| commit | 0fd5e7b2d8ca4ed46d76187feb4b903ed0a3ea75 (patch) | |
| tree | 7bfc152893794e33afbd7c5c1b564e91668010fc /llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp | |
| parent | f8c5a4c67075877e1b6976bb7372aa96f02c11bc (diff) | |
| download | llvm-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
