diff options
author | Marcus Comstedt <marcus@mc.pp.se> | 2019-08-18 16:03:43 +0200 |
---|---|---|
committer | Marcus Comstedt <marcus@mc.pp.se> | 2019-10-28 09:23:32 +0100 |
commit | f437e6a4e9983be0583ee1bf34512f80f3cc0162 (patch) | |
tree | f3ac0efc442019566f31aa5ba26c78915e80a0b6 /fesvr/elf.h | |
parent | 5652b9dd6298c7b61fe80bc2a508bbd3c9e5c5ef (diff) | |
download | spike-f437e6a4e9983be0583ee1bf34512f80f3cc0162.zip spike-f437e6a4e9983be0583ee1bf34512f80f3cc0162.tar.gz spike-f437e6a4e9983be0583ee1bf34512f80f3cc0162.tar.bz2 |
Implement support for big-endian hosts
Diffstat (limited to 'fesvr/elf.h')
-rw-r--r-- | fesvr/elf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fesvr/elf.h b/fesvr/elf.h index b66038d..b4b0add 100644 --- a/fesvr/elf.h +++ b/fesvr/elf.h @@ -11,6 +11,8 @@ #define IS_ELF32(hdr) (IS_ELF(hdr) && (hdr).e_ident[4] == 1) #define IS_ELF64(hdr) (IS_ELF(hdr) && (hdr).e_ident[4] == 2) +#define IS_ELFLE(hdr) (IS_ELF(hdr) && (hdr).e_ident[5] == 1) +#define IS_ELFBE(hdr) (IS_ELF(hdr) && (hdr).e_ident[5] == 2) #define PT_LOAD 1 |