From patchwork Wed Dec 26 09:29:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 1018623 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="gw1r2XW8"; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43Pnjv03Lkz9rxp for ; Wed, 26 Dec 2018 20:29:38 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 67769100AA; Wed, 26 Dec 2018 10:29:35 +0100 (CET) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by helium.openadk.org (Postfix) with ESMTPS id 40F87100AA for ; Wed, 26 Dec 2018 10:29:33 +0100 (CET) Received: from localhost.localdomain (unknown [180.110.163.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 906882171F; Wed, 26 Dec 2018 09:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545816572; bh=U2Uy3qLjpsxYcJQHKpqVlTghylR/3vrFQSt0DwtsVMk=; h=From:To:Cc:Subject:Date:From; b=gw1r2XW8+g+LVuU3cq/FhB7JwzeeTte1BwjSHLevVdXtVQbhAt2phZaNNUgXWovvr y6MXKTcD8ZXlm6t3FEoBQCXqECFvOcf4hf162hBO8sdsg1jlhK76ReIdf9vE+M8ZQe Lb7dEj/EEUPziN1iJLJJnldZU+42rHK9vZienK8I= From: guoren@kernel.org To: mail@waldemar-brodkorb.de Date: Wed, 26 Dec 2018 17:29:20 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 Cc: devel@uclibc-ng.org, Guo Ren , han_mao@c-sky.com Subject: [uclibc-ng-devel] [PATCH V2 1/1] csky: Add EM_CSKY for ldso X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" From: Guo Ren Support EM_CSKY 252 elf format. Changelog: Increase EM_NUM to 253 Signed-off-by: Guo Ren --- include/elf.h | 3 ++- ldso/ldso/csky/dl-sysdep.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/elf.h b/include/elf.h index a9957fc..9aae04c 100644 --- a/include/elf.h +++ b/include/elf.h @@ -271,9 +271,10 @@ typedef struct #define EM_AARCH64 183 /* ARM AARCH64 */ #define EM_MICROBLAZE 189 /* Xilinx Microblaze */ #define EM_ARCV2 195 /* ARCv2 Cores */ +#define EM_CSKY 252 /* C-SKY Cores */ /* NEXT FREE NUMBER: Increment this after adding your official arch number */ -#define EM_NUM 196 +#define EM_NUM 253 /* If it is necessary to assign new unofficial EM_* values, please pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision diff --git a/ldso/ldso/csky/dl-sysdep.h b/ldso/ldso/csky/dl-sysdep.h index 04aae68..2230450 100644 --- a/ldso/ldso/csky/dl-sysdep.h +++ b/ldso/ldso/csky/dl-sysdep.h @@ -18,7 +18,7 @@ do { \ /* Here we define the magic numbers that this dynamic loader should accept */ #define MAGIC1 EM_MCORE -#undef MAGIC2 +#define MAGIC2 EM_CSKY /* Used for error messages */ #define ELF_TARGET "csky"