diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/binary-reader-logging.cc | 2 | ||||
-rw-r--r-- | src/binary-reader-logging.h | 2 | ||||
-rw-r--r-- | src/binary-reader-nop.h | 2 | ||||
-rw-r--r-- | src/binary-reader-objdump.cc | 12 | ||||
-rw-r--r-- | src/binary-reader.cc | 12 | ||||
-rw-r--r-- | src/binary-reader.h | 2 | ||||
-rw-r--r-- | src/common.h | 2 |
7 files changed, 0 insertions, 34 deletions
diff --git a/src/binary-reader-logging.cc b/src/binary-reader-logging.cc index bd5faaa3..f7b4d7eb 100644 --- a/src/binary-reader-logging.cc +++ b/src/binary-reader-logging.cc @@ -697,8 +697,6 @@ DEFINE_INDEX_INDEX(OnInitExprGetGlobalExpr, "index", "global_index") DEFINE_BEGIN(BeginLinkingSection) DEFINE_INDEX(OnSymbolCount) -DEFINE_INDEX(OnStackGlobal) -DEFINE_INDEX(OnDataSize) DEFINE_INDEX(OnSegmentInfoCount) DEFINE_INDEX(OnInitFunctionCount) DEFINE_END(EndLinkingSection) diff --git a/src/binary-reader-logging.h b/src/binary-reader-logging.h index ad12c557..2ad7003f 100644 --- a/src/binary-reader-logging.h +++ b/src/binary-reader-logging.h @@ -256,7 +256,6 @@ class BinaryReaderLogging : public BinaryReaderDelegate { Result EndRelocSection() override; Result BeginLinkingSection(Offset size) override; - Result OnStackGlobal(Index stack_global) override; Result OnSymbolCount(Index count) override; Result OnSymbol(Index sybmol_index, SymbolType type, uint32_t flags) override; Result OnDataSymbol(Index index, @@ -273,7 +272,6 @@ class BinaryReaderLogging : public BinaryReaderDelegate { uint32_t flags, string_view name, Index global_index) override; - Result OnDataSize(uint32_t data_size) override; Result OnSegmentInfoCount(Index count) override; Result OnSegmentInfo(Index index, string_view name, diff --git a/src/binary-reader-nop.h b/src/binary-reader-nop.h index c5e68e0c..b03820e6 100644 --- a/src/binary-reader-nop.h +++ b/src/binary-reader-nop.h @@ -370,7 +370,6 @@ class BinaryReaderNop : public BinaryReaderDelegate { /* Linking section */ Result BeginLinkingSection(Offset size) override { return Result::Ok; } - Result OnStackGlobal(Index stack_global) override { return Result::Ok; } Result OnSymbolCount(Index count) override { return Result::Ok; } Result OnSymbol(Index sybmol_index, SymbolType type, @@ -397,7 +396,6 @@ class BinaryReaderNop : public BinaryReaderDelegate { Index global_index) override { return Result::Ok; } - Result OnDataSize(uint32_t data_size) override { return Result::Ok; } Result OnSegmentInfoCount(Index count) override { return Result::Ok; } Result OnSegmentInfo(Index index, string_view name, diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 4c89466f..f0de5e1e 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -694,7 +694,6 @@ class BinaryReaderObjdump : public BinaryReaderObjdumpBase { Index index, uint32_t addend) override; - Result OnStackGlobal(Index stack_global) override; Result OnSymbolCount(Index count) override; Result OnDataSymbol(Index index, uint32_t flags, @@ -710,7 +709,6 @@ class BinaryReaderObjdump : public BinaryReaderObjdumpBase { uint32_t flags, string_view name, Index global_index) override; - Result OnDataSize(uint32_t data_size) override; Result OnSegmentInfoCount(Index count) override; Result OnSegmentInfo(Index index, string_view name, @@ -1293,11 +1291,6 @@ Result BinaryReaderObjdump::OnReloc(RelocType type, return Result::Ok; } -Result BinaryReaderObjdump::OnStackGlobal(Index stack_global) { - PrintDetails(" - stack pointer global: %d\n", stack_global); - return Result::Ok; -} - Result BinaryReaderObjdump::OnSymbolCount(Index count) { PrintDetails(" - symbol table [count=%d]\n", count); return Result::Ok; @@ -1426,11 +1419,6 @@ Result BinaryReaderObjdump::OnExceptionType(Index index, TypeVector& sig) { return Result::Ok; } -Result BinaryReaderObjdump::OnDataSize(uint32_t data_size) { - PrintDetails(" - data size : %d\n", data_size); - return Result::Ok; -} - } // end anonymous namespace Result ReadBinaryObjdump(const uint8_t* data, diff --git a/src/binary-reader.cc b/src/binary-reader.cc index d9fb6ace..349822c7 100644 --- a/src/binary-reader.cc +++ b/src/binary-reader.cc @@ -1484,12 +1484,6 @@ Result BinaryReader::ReadLinkingSection(Offset section_size) { uint32_t count; switch (static_cast<LinkingEntryType>(linking_type)) { - case LinkingEntryType::StackPointer: { - uint32_t stack_ptr; - CHECK_RESULT(ReadU32Leb128(&stack_ptr, "stack pointer index")); - CALLBACK(OnStackGlobal, stack_ptr); - break; - } case LinkingEntryType::SymbolTable: CHECK_RESULT(ReadU32Leb128(&count, "sym count")); CALLBACK(OnSymbolCount, count); @@ -1531,12 +1525,6 @@ Result BinaryReader::ReadLinkingSection(Offset section_size) { } } break; - case LinkingEntryType::DataSize: { - uint32_t data_size; - CHECK_RESULT(ReadU32Leb128(&data_size, "data size")); - CALLBACK(OnDataSize, data_size); - break; - } case LinkingEntryType::SegmentInfo: CHECK_RESULT(ReadU32Leb128(&count, "info count")); CALLBACK(OnSegmentInfoCount, count); diff --git a/src/binary-reader.h b/src/binary-reader.h index b0b9b848..d9a9a86f 100644 --- a/src/binary-reader.h +++ b/src/binary-reader.h @@ -316,7 +316,6 @@ class BinaryReaderDelegate { /* Linking section */ virtual Result BeginLinkingSection(Offset size) = 0; - virtual Result OnStackGlobal(Index stack_global) = 0; virtual Result OnSymbolCount(Index count) = 0; virtual Result OnSymbol(Index index, SymbolType type, uint32_t flags) = 0; virtual Result OnDataSymbol(Index index, @@ -333,7 +332,6 @@ class BinaryReaderDelegate { uint32_t flags, string_view name, Index global_index) = 0; - virtual Result OnDataSize(uint32_t data_size) = 0; virtual Result OnSegmentInfoCount(Index count) = 0; virtual Result OnSegmentInfo(Index index, string_view name, diff --git a/src/common.h b/src/common.h index 67cc7320..8418fc77 100644 --- a/src/common.h +++ b/src/common.h @@ -241,8 +241,6 @@ struct Reloc { }; enum class LinkingEntryType { - StackPointer = 1, - DataSize = 3, SegmentInfo = 5, InitFunctions = 6, ComdatInfo = 7, |