diff options
author | Andrew Waterman <andrew@sifive.com> | 2016-12-06 15:49:59 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2016-12-06 15:49:59 -0800 |
commit | f6b2274af4a91763ecdb94600d7d54d5f7f262b5 (patch) | |
tree | 0f4ad8f1df69ea97bb2626573c80854a1838cf53 /pk/elf.h | |
parent | e5ed1d115c178b87807a9d7c966dbaa2b3d3a92e (diff) | |
download | pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.zip pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.gz pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.bz2 |
avoid non-standard predefined macros
Diffstat (limited to 'pk/elf.h')
-rw-r--r-- | pk/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ #define IS_ELF32(hdr) (IS_ELF(hdr) && (hdr).e_ident[4] == 1) #define IS_ELF64(hdr) (IS_ELF(hdr) && (hdr).e_ident[4] == 2) -#ifdef __riscv64 +#if __riscv_xlen == 64 # define Elf_Ehdr Elf64_Ehdr # define Elf_Phdr Elf64_Phdr #else |