From patchwork Tue Sep 20 12:14:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Kozlov X-Patchwork-Id: 1680021 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=pfptdkimsnps header.b=Fd582L0E; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=K2et9pR8; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MX0qc3Kb1z1ypH for ; Tue, 20 Sep 2022 22:15:24 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 313253520783; Tue, 20 Sep 2022 14:15:09 +0200 (CEST) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=pfptdkimsnps header.b=Fd582L0E; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=K2et9pR8; dkim-atps=neutral Received: from mx0a-00230701.pphosted.com (mx0a-00230701.pphosted.com [148.163.156.19]) by helium.openadk.org (Postfix) with ESMTPS id 5F7563520661 for ; Tue, 20 Sep 2022 14:14:35 +0200 (CEST) Received: from pps.filterd (m0297266.ppops.net [127.0.0.1]) by mx0a-00230701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28K5pWtv027572 for ; Tue, 20 Sep 2022 05:14:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pfptdkimsnps; bh=tbtmtc+erQ0ti1lultyrhSnaxc732mPGE8n5O0YuNvo=; b=Fd582L0EmfOsxa6TIipX8jRvIXxdxfSmBGdV7RsTkVSNBoWWsdPJV8JRGx1zGTBp0v7z sw7tAtUxIn2QDa3tD+7+kMOEGE3RQt0hvLYhuhJzgYuETIMjH1BmDy/QN+Df4dFJOB4G UOJqR51Ou0+NLIB/6VIMuYEukCBM5UVrUf9EtLCI5eOOpXOYxbmU2Qtr9MoKck4LFkyo 3Iri8cwR0DJaru6SaQXQzJAoIGpUt1R+JY756yEkeOIkfbCz0+NBUeziaQmr9oly9D5u C9PQEdDVSkRMdSCg737Jy9rS3BAvqYHxqtvs8dY4NOKCSA50fs5kftAMZ18VIKRmOByI Dg== Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.73.133]) by mx0a-00230701.pphosted.com (PPS) with ESMTPS id 3jndg4phku-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 20 Sep 2022 05:14:33 -0700 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id CB3D740086 for ; Tue, 20 Sep 2022 12:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1663676073; bh=bft8kDNGVRvBLOB1b62rWdL3fEoFYb70UrkS+AER1kE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K2et9pR8ixP04paliRe3QSx+lGa3WAa5a2+gCU7MEpYpGV/nRLYaJUCg9j0Y955BI 5c8zS88vRz0Z/EARO8Tbo0kkiapH8m4DCJD+YG72r86rnIKiO8qh7OGOkEJ9t6YSQ+ SzOO9QDHFPtstG6gPyqNHAJ26roAnrhzsi85ImML4JOG5yY1TJmo1XaN0BuRXJsTs9 IgHGbaTmVwA958KDGHtW+cKeIg5gtjuwqY6HNiOr0H96Jg/eBJdsN54SIy0xUvowiZ B2IyErnkDpgDzPvqqVIux5NBLbQHpocF4jal4v4XsJtZ0xoGDX0oK3O0KYSchFl/YM tvOdGQxji2tTA== Received: from SNPS-o0WHuHJU73.internal.synopsys.com (snps-o0whuhju73.internal.synopsys.com [10.116.108.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client did not present a certificate) by mailhost.synopsys.com (Postfix) with ESMTPSA id 0786DA0230; Tue, 20 Sep 2022 12:14:30 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Pavel.Kozlov@synopsys.com To: devel@uclibc-ng.org Date: Tue, 20 Sep 2022 16:14:18 +0400 Message-Id: <20220920121421.31618-2-kozlov@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220920121421.31618-1-kozlov@synopsys.com> References: <20220920121421.31618-1-kozlov@synopsys.com> MIME-Version: 1.0 X-Proofpoint-GUID: 3wInCVeE37eEKsicFwDjj6F_zj6c5MEB X-Proofpoint-ORIG-GUID: 3wInCVeE37eEKsicFwDjj6F_zj6c5MEB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-20_04,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_active_cloned_notspam policy=outbound_active_cloned score=0 bulkscore=0 phishscore=0 malwarescore=0 mlxlogscore=807 spamscore=0 suspectscore=0 adultscore=0 impostorscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209200073 Message-ID-Hash: 4EZQ4NAKK5PSY6J553H54WKJEHFA3EI2 X-Message-ID-Hash: 4EZQ4NAKK5PSY6J553H54WKJEHFA3EI2 X-MailFrom: Pavel.Kozlov@synopsys.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Alexey.Brodkin@synopsys.com X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH 1/4] arc: minor cleanup for ARCv2 List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Sergey Matyukevich Add missing ARCv2 check in MATCH_MACHINE macro. Update comment for EM_ARCV2 define. Signed-off-by: Sergey Matyukevich Signed-off-by: Pavel Kozlov --- include/elf.h | 2 +- utils/ldd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/elf.h b/include/elf.h index 7d66d70a43ac..018ff1550dae 100644 --- a/include/elf.h +++ b/include/elf.h @@ -270,7 +270,7 @@ typedef struct #define EM_METAG 174 /* Imagination Technologies Meta */ #define EM_AARCH64 183 /* ARM AARCH64 */ #define EM_MICROBLAZE 189 /* Xilinx Microblaze */ -#define EM_ARCV2 195 /* ARCv2 Cores */ +#define EM_ARCV2 195 /* Synopsys ARCv2 Cores */ #define EM_RISCV 243 /* RISC-V */ #define EM_CSKY 252 /* C-SKY Cores */ #define EM_KVX 256 /* Kalray VLIW core of the MPPA processor family */ diff --git a/utils/ldd.c b/utils/ldd.c index dfc4ee9a5431..3accd78391d7 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -30,7 +30,7 @@ #endif #if defined(__arc__) -#define MATCH_MACHINE(x) (x == EM_ARCOMPACT) +#define MATCH_MACHINE(x) (x == EM_ARCOMPACT || x == EM_ARCV2) #define ELFCLASSM ELFCLASS32 #endif