forked from OSchip/llvm-project
parent
d5504a0a62
commit
e0658119ba
|
@ -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;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue