From patchwork Mon Mar 26 06:30:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 890770 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=none (p=none dis=none) header.from=c-sky.com Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 408kmm0zHyz9s1l for ; Mon, 26 Mar 2018 17:31:04 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 13D1010057; Mon, 26 Mar 2018 08:30:59 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from smtp2200-217.mail.aliyun.com (smtp2200-217.mail.aliyun.com [121.197.200.217]) by helium.openadk.org (Postfix) with ESMTPS id 6539B100D8; Mon, 26 Mar 2018 08:30:54 +0200 (CEST) X-Alimail-AntiSpam: AC=CONTINUE; BC=0.07678969|-1; CH=green; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03309; MF=ren_guo@c-sky.com; NM=1; PH=DS; RN=3; RT=3; SR=0; TI=SMTPD_---.BRqHG4N_1522045847; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:223.93.147.148) by smtp.aliyun-inc.com(10.147.40.44); Mon, 26 Mar 2018 14:30:47 +0800 From: Guo Ren To: devel@uclibc-ng.org, wbx@uclibc-ng.org Date: Mon, 26 Mar 2018 14:30:44 +0800 Message-Id: <1522045844-10050-2-git-send-email-ren_guo@c-sky.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522045844-10050-1-git-send-email-ren_guo@c-sky.com> References: <1522045844-10050-1-git-send-email-ren_guo@c-sky.com> Cc: Guo Ren Subject: [uclibc-ng-devel] [PATCH 2/2] csky: bugfix remove uneeded bkpt from crti.S 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" LD need word-align to merge every _init into one func. If it's not word-align, ld will pad zero into the free-space. That's "bkpt". The "bkpt" is OK when there is no jtag server connected. Because linux kernel exception could handle it. Signed-off-by: Guo Ren --- libc/sysdeps/linux/csky/crti.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/sysdeps/linux/csky/crti.S b/libc/sysdeps/linux/csky/crti.S index e7b045f..a2434c0 100644 --- a/libc/sysdeps/linux/csky/crti.S +++ b/libc/sysdeps/linux/csky/crti.S @@ -12,9 +12,11 @@ ENTRY(_init) subi sp, 8 stw lr, (sp, 4) + nop /* LD need word-align to compile into one func */ .section .fini ENTRY(_fini) subi sp, 8 stw lr, (sp, 4) + nop