Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Move EM_RISCV into elf-em.h

This should never have been inside our arch port to begin with, it's
just a relic from when we were maintaining out of tree patches.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>

+1 -3
-3
arch/riscv/include/asm/elf.h
··· 16 16 #include <asm/auxvec.h> 17 17 #include <asm/byteorder.h> 18 18 19 - /* TODO: Move definition into include/uapi/linux/elf-em.h */ 20 - #define EM_RISCV 0xF3 21 - 22 19 /* 23 20 * These are used to set parameters in the core dumps. 24 21 */
+1
include/uapi/linux/elf-em.h
··· 41 41 #define EM_TILEPRO 188 /* Tilera TILEPro */ 42 42 #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ 43 43 #define EM_TILEGX 191 /* Tilera TILE-Gx */ 44 + #define EM_RISCV 243 /* RISC-V */ 44 45 #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ 45 46 #define EM_FRV 0x5441 /* Fujitsu FR-V */ 46 47