From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9565 invoked by alias); 14 Jul 2017 08:37:00 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 8315 invoked by uid 9078); 14 Jul 2017 08:36:59 -0000 Date: Fri, 14 Jul 2017 08:37:00 -0000 Message-ID: <20170714083659.8306.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix link when nosys.specs is used to link X-Act-Checkin: newlib-cygwin X-Git-Author: Tamar Christina X-Git-Refname: refs/heads/master X-Git-Oldrev: e09a25c01bccaff966cdbe44ad7d4da89885b89d X-Git-Newrev: 13665a7c30b13d872a5a7f9af4104b5edfa0e5cc X-SW-Source: 2017-q3/txt/msg00016.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=13665a7c30b13d872a5a7f9af4104b5edfa0e5cc commit 13665a7c30b13d872a5a7f9af4104b5edfa0e5cc Author: Tamar Christina Date: Thu Jul 13 10:52:42 2017 +0000 Fix link when nosys.specs is used to link This patch fixes the issue where nosys.specs is used to link. e.g. The use of crt0 without any support for semihosting requested. The AArch64 crt0 was missing an #ifdef for the initialise_monitor_handles which was causing the link to fail. Sorry for missing this before. Diff: --- libgloss/aarch64/crt0.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgloss/aarch64/crt0.S b/libgloss/aarch64/crt0.S index ed4dafc..cbff11a 100644 --- a/libgloss/aarch64/crt0.S +++ b/libgloss/aarch64/crt0.S @@ -144,8 +144,10 @@ sub x2, x2, x0 /* Third arg: length of block */ bl FUNCTION (memset) +#ifdef ARM_RDI_MONITOR /* Need to set up standard file handles */ bl FUNCTION (initialise_monitor_handles) +#endif /* .init and .fini sections are used to create constructors and destructors. Here we call the _init function and arrange