From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EAE51138350 for ; Mon, 6 Apr 2020 18:00:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37940E117F; Mon, 6 Apr 2020 18:00:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E217E117F for ; Mon, 6 Apr 2020 18:00:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D1D9434EF4E for ; Mon, 6 Apr 2020 18:00:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6CA3719B for ; Mon, 6 Apr 2020 18:00:45 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1586196030.b624f3ad5c41dfd246f5b31f02e843874850b49d.slyfox@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: elf.h paxelf.c X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: b624f3ad5c41dfd246f5b31f02e843874850b49d X-VCS-Branch: master Date: Mon, 6 Apr 2020 18:00:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c40bcf8e-f4ea-421d-b54d-d548c7120ce5 X-Archives-Hash: 74d683ee2edc8de4eb1299f8d5ef3a78 commit: b624f3ad5c41dfd246f5b31f02e843874850b49d Author: Göktürk Yüksek gentoo org> AuthorDate: Mon Apr 6 03:00:02 2020 +0000 Commit: Sergei Trofimovich gentoo 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 gentoo.org> Signed-off-by: Sergei Trofimovich 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 } };