commit: b624f3ad5c41dfd246f5b31f02e843874850b49d
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 6 03:00:02 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Apr 6 18:00:30 2020 +0000
URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=b624f3ad
Add RISC-V to the list of architectures in ELF
Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org>
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
elf.h | 3 ++-
paxelf.c | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/elf.h b/elf.h
index fda7585..3627066 100644
--- a/elf.h
+++ b/elf.h
@@ -267,7 +267,8 @@ typedef struct
#define EM_TILEPRO 188 /* Tilera TILEPro */
#define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */
#define EM_TILEGX 191 /* Tilera TILE-Gx */
-#define EM_NUM 192
+#define EM_RISCV 243 /* RISC-V */
+#define EM_NUM 244
/* If it is necessary to assign new unofficial EM_* values, please
pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the
diff --git a/paxelf.c b/paxelf.c
index dea3757..bbd38bf 100644
--- a/paxelf.c
+++ b/paxelf.c
@@ -276,6 +276,7 @@ static pairtype elf_emtypes[] = {
QUERY(EM_MICROBLAZE),
QUERY(EM_TILEGX),
QUERY(EM_ALPHA),
+ QUERY(EM_RISCV),
{ 0, 0 }
};