[WebAssembly] Create section start symbols automatically for all sections
authorSam Clegg <sbc@chromium.org>
Thu, 10 May 2018 17:38:35 +0000 (17:38 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 10 May 2018 17:38:35 +0000 (17:38 +0000)
commitb210c64b281baad0ac705d62e6c298a1629449eb
tree3dee50a416b4658eeee8eee301002450e34b897b
parentbaf045fb284c8d1c263478b5bad99b737b905e4b
[WebAssembly] Create section start symbols automatically for all sections

These symbols only get included in the output symbols table if
they are used in a relocation.

This behaviour matches more closely the ELF object writer.

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

llvm-svn: 332005
llvm/lib/MC/MCContext.cpp
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/lib/MC/MCWasmStreamer.cpp
llvm/lib/MC/WasmObjectWriter.cpp