From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21870 invoked by alias); 30 Mar 2017 06:54:17 -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 21859 invoked by uid 89); 30 Mar 2017 06:54:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*MI:siemens, H*M:siemens, H*F:D*siemens.com, basically X-HELO: gecko.sbs.de Received: from gecko.sbs.de (HELO gecko.sbs.de) (194.138.37.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Mar 2017 06:54:14 +0000 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id v2U6sDUQ014860 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 30 Mar 2017 08:54:13 +0200 Received: from DEFTHW99ERNMSX.ww902.siemens.net (defthw99ernmsx.ww902.siemens.net [139.22.70.141]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTPS id v2U6sDSp024282 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 30 Mar 2017 08:54:13 +0200 Received: from DENBGAT9ERQMSX.ww902.siemens.net (139.22.70.196) by DEFTHW99ERNMSX.ww902.siemens.net (139.22.70.141) with Microsoft SMTP Server (TLS) id 14.3.339.0; Thu, 30 Mar 2017 08:54:13 +0200 Received: from DEFTHW99EJ1MSX.ww902.siemens.net ([169.254.2.184]) by DENBGAT9ERQMSX.ww902.siemens.net ([139.22.70.196]) with mapi id 14.03.0339.000; Thu, 30 Mar 2017 08:54:12 +0200 From: "Schwarz, Konrad" To: "newlib@sourceware.org" Subject: ARM EABI -specs=nosys crt0.o not being linked in Date: Thu, 30 Mar 2017 06:54:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00233.txt.bz2 Hi, In my project, the linker reports the error=20 [...]/../../../../arm-atollic-eabi/bin/ld.exe: warning: cannot find entry s= ymbol _start; defaulting to 08000800 This means that crt0.o is not being linked in. GCC -dumpspecs defines startfile as *startfile: crti%O%s crtbegin%O%s I am runnig gcc with -specs=3Dnosys; nosys.specs does not mention crt0.o. = However, several of the other newlib-supplied spec files do override startf= ile; e.g. rdimon.specs: *startfile: crti%O%s crtbegin%O%s %{!pg:rdimon-crt0%O%s} %{pg:rdimon-crt0%O%s} To my thinking, nosys.specs, rdimon.specs, rdpmon.specs, linux.specs, pid.s= pecs, ... are mutually exclusive, since each defines an interface to a "BIO= S". It follows that nosys.specs should be properly defining startfile. Is= that correct? Or is nosys.specs orthogonal to the other spec files, and a= new spec file "baremetal.specs" that basically overrides startfile is need= ed? Or is the breakage somewhere else? Gcc I am using: arm-atollic-eabi-gcc.exe (GNU Tools for ARM Embedded Proces= sors (Build 16.04-3)) 5.3.1 20160307 (release) [ARM/embedded-5-branch revis= ion 234589] _NEWLIB_VERSION is "2.4.0" according to include/_newlib_version.h Thanks Konrad