aboutsummaryrefslogtreecommitdiff
path: root/pk/elf.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2013-07-13 21:43:57 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2013-07-13 21:44:16 -0700
commitcc72987e655578b0529b6c3c8084e810cf40b358 (patch)
treea7a99a9406dfef2d4103e85bc0976cb8d039d7e7 /pk/elf.h
parent0bdb8c84092bf7c5eb4c981c620997a5893bfb70 (diff)
downloadriscv-pk-cc72987e655578b0529b6c3c8084e810cf40b358.zip
riscv-pk-cc72987e655578b0529b6c3c8084e810cf40b358.tar.gz
riscv-pk-cc72987e655578b0529b6c3c8084e810cf40b358.tar.bz2
Support Linux ABI and (optionally) virtual memory
Diffstat (limited to 'pk/elf.h')
-rw-r--r--pk/elf.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/pk/elf.h b/pk/elf.h
index ea39078..f91a57f 100644
--- a/pk/elf.h
+++ b/pk/elf.h
@@ -1,7 +1,5 @@
// See LICENSE for license details.
-// See LICENSE for details.
-
#ifndef _ELF_H
#define _ELF_H
@@ -17,6 +15,13 @@
#define SHT_PROGBITS 1
#define SHT_NOBITS 8
+#define AT_NULL 0
+#define AT_PHDR 3
+#define AT_PHENT 4
+#define AT_PHNUM 5
+#define AT_PAGESZ 6
+#define AT_ENTRY 9
+
typedef struct {
uint8_t e_ident[16];
uint16_t e_type;