From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ATCSQR.andestech.com (exmail.andestech.com [60.248.187.195]) by sourceware.org (Postfix) with ESMTPS id 80BB13865474 for ; Thu, 4 Feb 2021 07:34:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 80BB13865474 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eddiekuo@andestech.com Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id 1147UEMl061810; Thu, 4 Feb 2021 15:30:14 +0800 (GMT-8) (envelope-from eddiekuo@andestech.com) Received: from atcfdc88.andestech.com (10.0.15.120) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.487.0; Thu, 4 Feb 2021 15:34:30 +0800 From: Yeting Kuo To: Subject: [PATCH 1/1] RISC-V: Use __bss_start for the starting point of .bss. Date: Thu, 4 Feb 2021 15:34:00 +0800 Message-ID: <20210204073400.14458-1-eddiekuo@andestech.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.15.120] X-DNSRBL: X-MAIL: ATCSQR.andestech.com 1147UEMl061810 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2021 07:34:42 -0000 From: Yeting Kuo It's more flexible for the positions of .bss and .data. --- libgloss/riscv/crt0.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgloss/riscv/crt0.S b/libgloss/riscv/crt0.S index 160c07853..7a4e4e32c 100644 --- a/libgloss/riscv/crt0.S +++ b/libgloss/riscv/crt0.S @@ -27,7 +27,7 @@ _start: .option pop # Clear the bss segment - la a0, _edata + la a0, __bss_start la a2, _end sub a2, a2, a0 li a1, 0 -- 2.17.0