1 #ifndef AESALON_MONITOR_ELF_HEADER_H
2 #define AESALON_MONITOR_ELF_HEADER_H
19 #if AESALON_PLATFORM == AESALON_PLATFORM_x86_64
20 typedef Elf64_Ehdr header_t
;
21 #elif AESALON_PLATFORM == AESALON_PLATFORM_x86
22 typedef Elf32_Ehdr header_t
;
26 endian_mode_e endian_mode
;
31 Word
get_section_header_offset() const { return data
.e_shoff
; }
32 std::size_t get_num_sections() const { return data
.e_shnum
; }
34 std::size_t get_string_table_index() const { return data
.e_shstrndx
; }
36 endian_mode_e
get_endian_mode() const { return endian_mode
; }
40 } // namespace Monitor
41 } // namespace Aesalon