[lld][WebAssemlby] Fix for string merging of -dwarf-5 sections
authorSam Clegg <sbc@chromium.org>
Tue, 1 Jun 2021 19:48:21 +0000 (12:48 -0700)
committerSam Clegg <sbc@chromium.org>
Tue, 1 Jun 2021 21:33:56 +0000 (14:33 -0700)
commitc1a59fa550818c6d3c229b43918b5045d7df83e6
treeb8ec55f01ab93bf25543d58a8dbd08960130becf
parent8ae7fe24c1837590fc623133f9dbc9ff683f9e85
[lld][WebAssemlby] Fix for string merging of -dwarf-5 sections

We were mistakenly treating `.debug_str_offsets` as a string mergable
section when it is not (it contains integers not strings).  This is an
indication that we really should find a way to store flags for custom
sections.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=48828
Fixes: https://bugs.chromium.org/p/chromium/issues/detail?id=1172217

Differential Revision: https://reviews.llvm.org/D103486
lld/test/wasm/merge-string-debug.s
lld/wasm/InputFiles.cpp