summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WasmObjectWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WasmObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp
index 88bd046ec6e..05fc3362745 100644
--- a/llvm/lib/MC/WasmObjectWriter.cpp
+++ b/llvm/lib/MC/WasmObjectWriter.cpp
@@ -1220,7 +1220,7 @@ void WasmObjectWriter::writeObject(MCAssembler &Asm,
wasm::WasmSymbolInfo Info;
Info.Name = SectionSym->getName();
Info.Kind = wasm::WASM_SYMBOL_TYPE_SECTION;
- Info.Flags = 0;
+ Info.Flags = wasm::WASM_SYMBOL_BINDING_LOCAL;
Info.ElementIndex = ElementIndex;
SymbolIndices[SectionSym] = SymbolInfos.size();
SymbolInfos.emplace_back(Info);
OpenPOWER on IntegriCloud