From patchwork Wed May 30 10:45:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Chen X-Patchwork-Id: 922711 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-92821-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="awVrItDN"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40wnPZ39gHz9s01 for ; Wed, 30 May 2018 20:48:18 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type; q=dns; s=default; b=Xv77j iml/ZVKe3RsLhU9le3nIE6UzKKMOeS8/maWP9K+wKRKJzVjbglz7Mt6iyyRIqB// MSK2UtYsBgDx8hbPHJeVsdfK1rPwgGEpBhHwWROcRj5HBPZJGdX3Cvta3NG+jz5s xWsYVFbKr+e6tAQ13XagtOCzQLKlKMMFTiwpmw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type; s=default; bh=RVsyzr9wCqF KnWOng1Cw7OC8mKQ=; b=awVrItDN9HrgtkMwkeerucH/lNjcYMJbeDdQ072lLqn 0iB7hqPSBf0CqEeIz5+E78ZqVLSc+zd6qu/R0zqMLK571Q7QHfNmuUgF6kkgwgpW sl2C+mKq5L+lSt0iL1ygi1/jKqiadQKQBXlJO1lMWkV2zxYt5o19MPkb6L2dPkio = Received: (qmail 109031 invoked by alias); 30 May 2018 10:47:01 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 108935 invoked by uid 89); 30 May 2018 10:47:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:917 X-HELO: ATCSQR.andestech.com From: Vincent Chen To: , CC: , , Subject: [PATCH v2 10/12] Add Andes nds32 dynamic relocation type to elf/elf.h. Date: Wed, 30 May 2018 18:45:40 +0800 Message-ID: <1527677142-10406-11-git-send-email-vincentc@andestech.com> In-Reply-To: <1527677142-10406-1-git-send-email-vincentc@andestech.com> References: <1527677142-10406-1-git-send-email-vincentc@andestech.com> MIME-Version: 1.0 X-DNSRBL: X-MAIL: ATCSQR.andestech.com w4UAm1Sh005851 2018-05-30 Vincent Chen * elf/elf.h (R_NDS32_NONE): New define. (R_NDS32_32_RELA): Likewise. (R_NDS32_COPY): Likewise. (R_NDS32_GLOB_DAT): Likewise. (R_NDS32_JUMP_SLOT): Likewise. (R_NDS32_RELATIVE): Likewise. (R_NDS32_TLS_TPOFF): Likewise. (R_NDS32_TLS_DESC): Likewise. --- elf/elf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index a5b2811..f4485d9 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -3914,6 +3914,16 @@ enum #define R_METAG_TLS_LE_HI16 60 #define R_METAG_TLS_LE_LO16 61 +/* NDS32 relocations. */ +#define R_NDS32_NONE 0 +#define R_NDS32_32_RELA 20 +#define R_NDS32_COPY 39 +#define R_NDS32_GLOB_DAT 40 +#define R_NDS32_JMP_SLOT 41 +#define R_NDS32_RELATIVE 42 +#define R_NDS32_TLS_TPOFF 102 +#define R_NDS32_TLS_DESC 119 + __END_DECLS #endif /* elf.h */