From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73471 invoked by alias); 9 Aug 2017 15:43:47 -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 73452 invoked by uid 89); 9 Aug 2017 15:43:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*c:application X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Aug 2017 15:43:45 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 219FEC7855 for ; Wed, 9 Aug 2017 15:43:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 219FEC7855 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=vinschen@redhat.com Received: from calimero.vinschen.de (ovpn-117-128.ams2.redhat.com [10.36.117.128]) by smtp.corp.redhat.com (Postfix) with ESMTP id D77A67E5DA for ; Wed, 9 Aug 2017 15:43:43 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 2426CA80940; Wed, 9 Aug 2017 17:43:43 +0200 (CEST) Date: Wed, 09 Aug 2017 15:43:00 -0000 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: [PATCH] [AArch64] Don't fetch command line options without semi-hosting Message-ID: <20170809154343.GE3195@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <1502289477-12301-1-git-send-email-yao.qi@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZwgA9U+XZDXt4+m+" Content-Disposition: inline In-Reply-To: <1502289477-12301-1-git-send-email-yao.qi@linaro.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-SW-Source: 2017/txt/msg00747.txt.bz2 --ZwgA9U+XZDXt4+m+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 774 On Aug 9 15:37, Yao Qi wrote: > Nowadays, the code fetching command line options via semi-hosting are > unconditionally pulled in, so that the semi-hosting code is still > there even I compile with option --specs=3Dnosys.specs. >=20 > gdb ./aarch64-none-elf/libgloss/aarch64/crt0.o >=20 > (gdb) disassemble _start >=20 > 0x0000000000000050 <+80>: ldr x1, 0x128 <_cpu_init_hook+48> > 0x0000000000000054 <+84>: mov w0, #0x15 > 0x0000000000000058 <+88>: hlt #0xf000 >=20 > This patch fixes this problem by wrapping the code by ARM_RDI_MONITOR. > When semi-hosting is not used, set command line options to NULL. > --- > libgloss/aarch64/crt0.S | 6 ++++++ > 1 file changed, 6 insertions(+) Pushed. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer Red Hat --ZwgA9U+XZDXt4+m+ Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZiy2uAAoJEPU2Bp2uRE+gJsEQAIOnitG5brfl3haCfsq02YC5 s6UOe+xhmN5D+V+Lwwwm3z6h4Z5DK0MA2dDew0GvDcnImNSXtkbvaZV47sqLTPuA Xrr/gzdRQ3dGvZc4U0kjMuCiKaBaFXdm7WgE4YY170UETUWT8RXRnKxCx9D0uwL2 1hfvk0paMFRqKMja6P5tHStZGg8oofga3lozuYMQWyaU3Q0cV48C9kOOBZE9yqIf 1dfMSvR8onPwZK+TAXwP9bbJwEQOTfcp8T2AR99koc8m7VYr9Tx56xy8g6Hpreyh jm6i0y+WgDHkFQY80i+78ZF3NIctCOl5Ttb8zdSZ5tJszA5b5ZLnEHAek+sbLUVZ Ta3/yGcvPkhHxh2VeN2nE8AtDDLVdEEFdXqc3O5egxedaZh5US6OZlkO+JjhTP7l da/DWj2c9JcfnrkM4uXikcgcsDnvI+RNi2xVjeXeLO7vldssEBkiULGrpi+eWcQv PYv85E18+JZ/AenT2p2/PTIDMEtrtjmXzWAKUsiuxZERa10xiXJSa8W3MH8gTwa9 XmGQbebki+QORd5Kw+QckBju6PKV9UWzfSrPYtbwrtTCDpTFEEuVDXS9T24mu5b5 54jL9JrgMSMHo5Nah8/oQmrR15pGGjmTvnDUQQ+8sR7wpw/PEgjz4cGzWipL37kU SljujrM0n7yVM1wvktmM =7rt+ -----END PGP SIGNATURE----- --ZwgA9U+XZDXt4+m+--