We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c53fbb7 commit 16494b3Copy full SHA for 16494b3
src/binary/elf.hpp
@@ -15,6 +15,10 @@
15
16
CPPTRACE_BEGIN_NAMESPACE
17
namespace detail {
18
+ using Elf_Addr = std::uintptr_t;
19
+ using Elf_Off = std::uintptr_t;
20
+ using Elf_Xword = std::size_t;
21
+
22
// TODO: make methods const and a bunch of members mutable
23
class elf {
24
std::unique_ptr<base_file> file;
@@ -36,10 +40,10 @@ namespace detail {
36
40
struct section_info {
37
41
uint32_t sh_name;
38
42
uint32_t sh_type;
39
- uint64_t sh_addr;
- uint64_t sh_offset;
- uint64_t sh_size;
- uint64_t sh_entsize;
43
+ Elf_Addr sh_addr;
44
+ Elf_Off sh_offset;
45
+ Elf_Xword sh_size;
46
+ Elf_Xword sh_entsize;
47
uint32_t sh_link;
48
};
49
bool tried_to_load_sections = false;
0 commit comments