From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49833 invoked by alias); 17 Aug 2017 11:52:28 -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 49528 invoked by uid 9078); 17 Aug 2017 11:52:28 -0000 Date: Thu, 17 Aug 2017 11:52:00 -0000 Message-ID: <20170817115228.49524.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 crt0 init fini code X-Act-Checkin: newlib-cygwin X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/master X-Git-Oldrev: 363dbb9e44d0101f29ec34cadd001893daab3fc6 X-Git-Newrev: cfa64a86d16ceca38fa4af75f8fde27cbef55012 X-SW-Source: 2017-q3/txt/msg00043.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cfa64a86d16ceca38fa4af75f8fde27cbef55012 commit cfa64a86d16ceca38fa4af75f8fde27cbef55012 Author: Szabolcs Nagy Date: Thu Aug 17 11:42:59 2017 +0100 Fix crt0 init fini code __USES_INITFINI__ ifdef was incorrectly copied from arm (it's an arm backend thing in gcc, not meaningful on aarch64) Diff: --- libgloss/aarch64/crt0.S | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libgloss/aarch64/crt0.S b/libgloss/aarch64/crt0.S index cc7e84d..4ad435e 100644 --- a/libgloss/aarch64/crt0.S +++ b/libgloss/aarch64/crt0.S @@ -153,12 +153,10 @@ bl FUNCTION (initialise_monitor_handles) #endif -#ifdef __USES_INITFINI__ /* .init and .fini sections are used to create constructors and destructors. Here we call the _init function and arrange for _fini to be called at program exit. */ ldr x0, .Lfini -#endif bl FUNCTION (atexit) bl FUNCTION (_init) @@ -256,10 +254,8 @@ FUNCTION (_cpu_init_hook): GEN_DWORD __bss_start__ .LC2: GEN_DWORD __bss_end__ -#ifdef __USES_INITFINI__ .Lfini: GEN_DWORD FUNCTION(_fini) -#endif #ifdef ARM_RDI_MONITOR .Lenvp: GEN_DWORD env