From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27639 invoked by alias); 23 May 2017 13:08:51 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 27550 invoked by uid 89); 23 May 2017 13:08:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: smtprelay.synopsys.com Received: from us01smtprelay-2.synopsys.com (HELO smtprelay.synopsys.com) (198.182.60.111) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 May 2017 13:08:49 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id B164810C0EA2 for ; Tue, 23 May 2017 06:08:51 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id A061B968 for ; Tue, 23 May 2017 06:08:51 -0700 (PDT) Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 95940967 for ; Tue, 23 May 2017 06:08:51 -0700 (PDT) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 23 May 2017 06:08:51 -0700 Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.104) by IN01WEHTCB.internal.synopsys.com (10.144.199.105) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 23 May 2017 18:38:50 +0530 Received: from nl20droid1.internal.synopsys.com (10.100.24.228) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 23 May 2017 18:38:49 +0530 From: Claudiu Zissulescu To: CC: , , Subject: [PATCH 2/2] [ARC] Add JLI support. Date: Tue, 23 May 2017 13:08:00 -0000 Message-ID: <1495544749-4457-3-git-send-email-claziss@synopsys.com> In-Reply-To: <1495544749-4457-1-git-send-email-claziss@synopsys.com> References: <1495544749-4457-1-git-send-email-claziss@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017/txt/msg00350.txt.bz2 Initialize the jli_base registers for ARCv2 cpus. libgloss/ 2017-05-23 Claudiu Zissulescu * arc/crt0.S: Initialize the jli_base registers for ARCv2 cpus. --- libgloss/arc/crt0.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libgloss/arc/crt0.S b/libgloss/arc/crt0.S index f8d7148..46c9efd 100644 --- a/libgloss/arc/crt0.S +++ b/libgloss/arc/crt0.S @@ -142,6 +142,11 @@ __start: bset r2, r2, 19 flag r2 #endif + +#if defined (__ARC_CODE_DENSITY__) + ;; Initialize jli_base + sr @__JLI_TABLE__,[jli_base] +#endif mov gp, @__SDATA_BEGIN__ mov_s r2, @__sbss_start ; r2 = start of the bss section sub r3, @_end, r2 ; r3 = size of the bss section in bytes @@ -189,7 +194,7 @@ __start: mov_s r0, 1 st_s r0, [r1, 4] ; _GLOBAL_REENT->atexit0._ind ; branch to _init -#if defined (__EM__) || defined (__HS__) +#if defined (__ARCEM__) || defined (__ARCHS__) jl @_init #else bl @_init -- 1.9.1