From patchwork Wed Dec 26 08:42:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 1018597 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="VAD84V/2"; 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 43Pmgh1SRvz9s8J for ; Wed, 26 Dec 2018 19:42:38 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 98D04100A8; Wed, 26 Dec 2018 09:42:31 +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 8E64F100A8 for ; Wed, 26 Dec 2018 09:42:28 +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 9576C21741; Wed, 26 Dec 2018 08:42:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545813746; bh=Jb9dKZHAHr9BIUp4fsH0zf3FlurBzcl4u7VVWpNGD1I=; h=From:To:Cc:Subject:Date:From; b=VAD84V/2MZqoxNfEvs1uSTyJHDtmzRpFUu7mq+0mzds311RWvZIO4jU9hbKEhVBnY PtrN3h4EV/uGlmbBQH7NOZDBEVPqkGqsnneXvr9aOzbW4r9oSneiY4dGraoaNN7f23 XQDSHZpWszz40TKJ6IIRk/MAhApaq3c3cdSafNn8= From: guoren@kernel.org To: mail@waldemar-brodkorb.de Date: Wed, 26 Dec 2018 16:42:18 +0800 Message-Id: <1545813738-16653-1-git-send-email-guoren@kernel.org> 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] 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. Signed-off-by: Guo Ren --- include/elf.h | 1 + ldso/ldso/csky/dl-sysdep.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/elf.h b/include/elf.h index a9957fc..3476453 100644 --- a/include/elf.h +++ b/include/elf.h @@ -271,6 +271,7 @@ 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 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"