You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Theodosius/include/comp/reloc.hpp

22 lines
536 B

#pragma once
#include <cstddef>
#include <cstdint>
namespace theo::comp {
class reloc_t {
public:
explicit reloc_t(std::uint16_t offset,
std::size_t hash,
const std::string&& sym_name)
: m_offset(offset), m_hash(hash), m_sym_name(sym_name) {}
std::size_t hash() { return m_hash; }
std::string name() { return m_sym_name; }
std::uint16_t offset() { return m_offset; }
private:
std::string m_sym_name;
std::size_t m_hash;
std::uint16_t m_offset;
};
} // namespace theo::comp