scc
2026.07
SystemC components library
elf.h
1
#ifndef UTIL_ELF_IO_H_
2
#define UTIL_ELF_IO_H_
3
#include <cstdint>
4
#include <elfio/elf_types.hpp>
5
#include <functional>
6
#include <string>
7
8
namespace
util
{
9
uint64_t load_elf_file(std::string
const
& name, std::function<
bool
(uint64_t, uint64_t,
const
uint8_t*)>,
10
uint8_t expected_elf_class = ELFIO::ELFCLASS32, uint16_t expected_elf_machine = ELFIO::EM_RISCV);
11
std::unordered_map<std::string, uint64_t> read_elf_symbols(std::string
const
& name, uint8_t expected_elf_class = ELFIO::ELFCLASS32,
12
uint16_t expected_elf_machine = ELFIO::EM_RISCV);
13
}
// namespace util
14
#endif
util
SCC common utilities.
Definition
bit_field.h:30
src
common
util
elf.h
Generated by
1.15.0