Skip to content

Commit

Permalink
Remove abort() call for unrecognized types.
Browse files Browse the repository at this point in the history
Instead print a helpful message with the type and this also allows rp
to returned the intended message (and not crash).
  • Loading branch information
jasperla committed Nov 13, 2023
1 parent 0d703c1 commit 5a401ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp/elf_struct.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static std::string type_to_str(const uint32_t p_type) {
}
}

std::abort();
fmt::print("Unknown ELF type 0x{:x}\n", p_type);
return "unknown type";
}

Expand Down

0 comments on commit 5a401ca

Please sign in to comment.