llvm-svn: 331006
This commit is contained in:
Sam Clegg 2018-04-27 00:17:24 +00:00
parent d5504a0a62
commit e0658119ba
4 changed files with 3 additions and 2 deletions

View File

@ -468,8 +468,9 @@ Error WasmObjectFile::parseLinkingSectionSymtab(const uint8_t *&Ptr,
case wasm::WASM_SYMBOL_TYPE_SECTION: {
if ((Info.Flags & wasm::WASM_SYMBOL_BINDING_MASK) !=
wasm::WASM_SYMBOL_BINDING_LOCAL)
return make_error<GenericBinaryError>("Section symbol must have local binding",
object_error::parse_failed);
return make_error<GenericBinaryError>(
"Section symbols must have local binding",
object_error::parse_failed);
Info.ElementIndex = readVaruint32(Ptr);
// Use somewhat unique section name as symbol name.
StringRef SectionName = Sections[Info.ElementIndex].Name;