Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/binary-reader-objdump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2161,7 +2161,7 @@ Result BinaryReaderObjdump::OnDylinkNeeded(std::string_view so_name) {
}

Result BinaryReaderObjdump::OnRelocCount(Index count, Index section_index) {
BinaryReaderObjdumpBase::OnRelocCount(count, section_index);
CHECK_RESULT(BinaryReaderObjdumpBase::OnRelocCount(count, section_index));
PrintDetails(" - relocations for section: %d (" PRIstringview ") [%d]\n",
section_index,
WABT_PRINTF_STRING_VIEW_ARG(GetSectionName(section_index)),
Expand Down
6 changes: 4 additions & 2 deletions test/binary/bad-relocs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ magic
version
section("reloc.BAD") {
reloc_section[99]
reloc_count[0]
reloc_count[1]
reloc_type[0] ;; R_WASM_FUNCTION_INDEX_LEB
offset[0]
index[0]
}
(;; STDERR ;;;
invalid relocation section index: 99
Expand All @@ -20,7 +23,6 @@ Section Details:

Custom:
- name: "reloc.BAD"
- relocations for section: 99 () [0]

Code Disassembly:

Expand Down
Loading