]> granicus.if.org Git - llvm/commit
[WebAssembly] MC: Don't allow zero sized data segments
authorSam Clegg <sbc@chromium.org>
Fri, 27 Oct 2017 00:08:55 +0000 (00:08 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 27 Oct 2017 00:08:55 +0000 (00:08 +0000)
commit8200df755e860641a067728c2ee353faed34a709
tree1b20e1e2217f947a92ec1a13125be676a6e323b3
parent7be6b37802fc2a7292f54519442c40b09b0ea81d
[WebAssembly] MC: Don't allow zero sized data segments

This ensures that each segment has a unique address.
Without this, consecutive zero sized symbols would
end up with the same address and the linker cannot
map symbols to unique data segments.

Differential Revision: https://reviews.llvm.org/D39107

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316717 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/WasmObjectWriter.cpp
test/MC/WebAssembly/bss.ll