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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9193415808B for ; Thu, 24 Mar 2022 15:42:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7742E0845; Thu, 24 Mar 2022 15:42:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF431E0845 for ; Thu, 24 Mar 2022 15:42:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EEA0B343158 for ; Thu, 24 Mar 2022 15:42:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 514042B0 for ; Thu, 24 Mar 2022 15:42:38 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1648136547.8ae4575392cef94c1e66197c5c35e7a194f3eb93.sam@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: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8ae4575392cef94c1e66197c5c35e7a194f3eb93 X-VCS-Branch: master Date: Thu, 24 Mar 2022 15:42:38 +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: 6c5741fa-40f1-49ee-a1c2-d4a5b7e0d6a9 X-Archives-Hash: 5904e72e281f33c720d00172b85b2399 commit: 8ae4575392cef94c1e66197c5c35e7a194f3eb93 Author: WANG Xuerui gentoo org> AuthorDate: Mon Dec 20 08:14:56 2021 +0000 Commit: Sam James gentoo org> CommitDate: Thu Mar 24 15:42:27 2022 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=8ae45753 paxelf: add LoongArch to recognized ELF machine types Signed-off-by: WANG Xuerui gentoo.org> Signed-off-by: Sam James gentoo.org> elf.h | 3 ++- paxelf.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/elf.h b/elf.h index 51962c9..e6c8b20 100644 --- a/elf.h +++ b/elf.h @@ -268,7 +268,8 @@ typedef struct #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ #define EM_TILEGX 191 /* Tilera TILE-Gx */ #define EM_RISCV 243 /* RISC-V */ -#define EM_NUM 244 +#define EM_LOONGARCH 258 /* LoongArch */ +#define EM_NUM 259 /* 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 bbd38bf..331f1b4 100644 --- a/paxelf.c +++ b/paxelf.c @@ -277,6 +277,7 @@ static pairtype elf_emtypes[] = { QUERY(EM_TILEGX), QUERY(EM_ALPHA), QUERY(EM_RISCV), + QUERY(EM_LOONGARCH), { 0, 0 } };