summaryrefslogtreecommitdiff
path: root/elf.h
diff options
context:
space:
mode:
more comments
Diffstat (limited to 'elf.h')
-rw-r--r--elf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf.h b/elf.h
index da18dca..da852a9 100644
--- a/elf.h
+++ b/elf.h
@@ -1,9 +1,8 @@
-//
-// format of an ELF executable file
-//
+// Format of an ELF executable file
#define ELF_MAGIC 0x464C457FU // "\x7FELF" in little endian
+// File header
struct elfhdr {
uint magic; // must equal ELF_MAGIC
uchar elf[12];
@@ -22,6 +21,7 @@ struct elfhdr {
ushort shstrndx;
};
+// Program section header
struct proghdr {
uint type;
uint offset;