Files
ircolib/main.cpp
T
2026-05-11 14:17:07 +02:00

15 lines
460 B
C++

#include <print>
#include <elfio/elfio.hpp>
int main() {
ELFIO::elfio reader;
if(!reader.load("tests/elf/application.elf"))
return 1;
for(ELFIO::Elf_Half i = 1; i < reader.sections.size(); i++) {
const auto& section = reader.sections[i];
std::println(R"(Section n.{} "{}": 0x{:08X} -> 0x{:08X})", i, section->get_name(), section->get_address(), section->get_address() + section->get_size() - 1);
}
return 0;
}