[Toybox] [PATCH] file: add riscv ELF machine.
enh
enh at google.com
Tue Jan 8 11:58:39 PST 2019
It's in the Linux 4.20 kernel headers.
---
toys/posix/file.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/toys/posix/file.c b/toys/posix/file.c
index ad98621c..09606a05 100644
--- a/toys/posix/file.c
+++ b/toys/posix/file.c
@@ -44,10 +44,10 @@ static void do_elf_file(int fd)
{189, "microblaze"}, {0xbaab, "microblaze-old"}, {8, "mips"},
{10, "mips-old"}, {89, "mn10300"}, {0xbeef, "mn10300-old"}, {113, "nios2"},
{92, "openrisc"}, {0x8472, "openrisc-old"}, {15, "parisc"}, {20, "ppc"},
- {21, "ppc64"}, {22, "s390"}, {0xa390, "s390-old"}, {135, "score"},
- {42, "sh"}, {2, "sparc"}, {18, "sparc8+"}, {43, "sparc9"}, {188, "tile"},
- {191, "tilegx"}, {3, "386"}, {6, "486"}, {62, "x86-64"}, {94, "xtensa"},
- {0xabc7, "xtensa-old"}
+ {21, "ppc64"}, {243, "riscv"}, {22, "s390"}, {0xa390, "s390-old"},
+ {135, "score"}, {42, "sh"}, {2, "sparc"}, {18, "sparc8+"}, {43, "sparc9"},
+ {188, "tile"}, {191, "tilegx"}, {3, "386"}, {6, "486"}, {62, "x86-64"},
+ {94, "xtensa"}, {0xabc7, "xtensa-old"}
};
char *map = 0;
off_t phoff, shoff;
--
2.20.1.97.g81188d93c3-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-file-add-riscv-ELF-machine.patch
Type: text/x-patch
Size: 1336 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190108/fa97bf90/attachment-0002.bin>
More information about the Toybox
mailing list