From patchwork Wed Dec 26 09:54:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 1018626 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=2a00:1828:2000:679::23; 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="qqqjCRWn"; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43PpHJ6p6Pz9s3l for ; Wed, 26 Dec 2018 20:55:07 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 5E27B100A8; Wed, 26 Dec 2018 10:55:03 +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 0D428100A8 for ; Wed, 26 Dec 2018 10:55:02 +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 05AA021741; Wed, 26 Dec 2018 09:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545818101; bh=GbXEJ8MMMzA1cH63U3/tNpb8r2RZxH+JoyUQCPpcrNY=; h=From:To:Cc:Subject:Date:From; b=qqqjCRWnIZELWnPvp//6k5gPQxglP6GSSTGQm2TNp8ibwgbfbyX8BTMc7nqQH4A9f jTCFQvreG90l2L/JDBmWyVafQwJqHSAKIVRjR8ETEbyGT17wwn/y/QJmPw5cpfSHlV xNkaldmghdI8l3m9mkwsZUzy69fhMq1KBme4kjEY= From: guoren@kernel.org To: mail@waldemar-brodkorb.de Date: Wed, 26 Dec 2018 17:54:55 +0800 Message-Id: <17bfe42ace06926e85a9a566fb5af97b56b986b6.1545818089.git.ren_guo@c-sky.com> 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 V3 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 Signed-off-by: Mao Han --- 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"