summaryrefslogtreecommitdiff
path: root/src/binary-reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r--src/binary-reader.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc
index e8096efd..5c958f7e 100644
--- a/src/binary-reader.cc
+++ b/src/binary-reader.cc
@@ -1455,6 +1455,8 @@ Result BinaryReader::ReadRelocSection(Offset section_size) {
case RelocType::MemoryAddressLEB:
case RelocType::MemoryAddressSLEB:
case RelocType::MemoryAddressI32:
+ case RelocType::FunctionOffsetI32:
+ case RelocType::SectionOffsetI32:
CHECK_RESULT(ReadS32Leb128(&addend, "addend"));
break;
default:
@@ -1522,6 +1524,12 @@ Result BinaryReader::ReadLinkingSection(Offset section_size) {
CALLBACK(OnDataSymbol, i, flags, name, segment, offset, size);
break;
}
+ case SymbolType::Section: {
+ uint32_t index = 0;
+ CHECK_RESULT(ReadU32Leb128(&index, "index"));
+ CALLBACK(OnSectionSymbol, i, flags, index);
+ break;
+ }
}
}
break;