We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0af9ab2 commit 0875d4bCopy full SHA for 0875d4b
include/elf.h
@@ -9,9 +9,9 @@ struct elfhdr {
9
ushort type;
10
ushort machine;
11
uint version;
12
- uint entry;
13
- uint phoff;
14
- uint shoff;
+ uintp entry;
+ uintp phoff;
+ uintp shoff;
15
uint flags;
16
ushort ehsize;
17
ushort phentsize;
@@ -22,6 +22,18 @@ struct elfhdr {
22
};
23
24
// Program section header
25
+#if X64
26
+struct proghdr {
27
+ uint32 type;
28
+ uint32 flags;
29
+ uint64 off;
30
+ uint64 vaddr;
31
+ uint64 paddr;
32
+ uint64 filesz;
33
+ uint64 memsz;
34
+ uint64 align;
35
+};
36
+#else
37
struct proghdr {
38
uint type;
39
uint off;
@@ -32,6 +44,7 @@ struct proghdr {
44
45
uint align;
46
47
+#endif
48
49
// Values for Proghdr type
50
#define ELF_PROG_LOAD 1
0 commit comments