Skip to content

Commit 9b4789e

Browse files
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 parent 732e8e4 commit 9b4789e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/riscv/include/asm/elf.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
#include <asm/auxvec.h>
1717
#include <asm/byteorder.h>
1818

19-
/* TODO: Move definition into include/uapi/linux/elf-em.h */
20-
#define EM_RISCV 0xF3
21-
2219
/*
2320
* These are used to set parameters in the core dumps.
2421
*/

include/uapi/linux/elf-em.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#define EM_TILEPRO 188 /* Tilera TILEPro */
4242
#define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */
4343
#define EM_TILEGX 191 /* Tilera TILE-Gx */
44+
#define EM_RISCV 243 /* RISC-V */
4445
#define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */
4546
#define EM_FRV 0x5441 /* Fujitsu FR-V */
4647

0 commit comments

Comments
 (0)