From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id 959843857C4A for ; Fri, 13 May 2022 16:30:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 959843857C4A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de Received: from sslproxy02.your-server.de ([78.47.166.47]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1npYB4-000GJX-Mr for newlib@sourceware.org; Fri, 13 May 2022 18:30:06 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npYB4-0001AF-Rg for newlib@sourceware.org; Fri, 13 May 2022 18:30:06 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 83FCA480181 for ; Fri, 13 May 2022 18:30:06 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id BUCauKjRZmiI for ; Fri, 13 May 2022 18:30:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id EBF44480188 for ; Fri, 13 May 2022 18:30:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6Gs_HQGyYjiy for ; Fri, 13 May 2022 18:30:05 +0200 (CEST) Received: from [10.10.171.14] (unknown [10.10.171.14]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 95A14480181 for ; Fri, 13 May 2022 18:30:05 +0200 (CEST) Message-ID: Date: Fri, 13 May 2022 18:30:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 7/7] Use global atexit data for all configurations Content-Language: en-US From: Sebastian Huber To: newlib@sourceware.org References: <20220513134700.68563-1-sebastian.huber@embedded-brains.de> <20220513134700.68563-8-sebastian.huber@embedded-brains.de> In-Reply-To: <20220513134700.68563-8-sebastian.huber@embedded-brains.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.103.5/26540/Fri May 13 10:03:59 2022) X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2022 16:30:10 -0000 On 13/05/2022 15:47, Sebastian Huber wrote: > For the exit processing only members of _GLOBAL_REENT were used by defa= ult. If > the _REENT_GLOBAL_ATEXIT option was enabled, then the data structures w= ere > provided to dedicated global objects. Make this option the default. R= emove > the option. Provide the struct _reent _atexit and atexit members only = if > backward binary compatibility is requested (_NEWLIB_BACKWARD_BINARY_COM= PAT). It seems that some code in libgloss accesses this stuff directly: libgloss/epiphany/crt0.S: add r2,r2,need_to_find_out;=20 &_GLOBAL_REENT->atexit0 libgloss/epiphany/crt0.S: str r2, [r2,-1];??or -2?;=20 _GLOBAL_REENT->atexit libgloss/epiphany/crt0.S: str r0, [r2,1] ;=20 _GLOBAL_REENT->atexit0._ind libgloss/epiphany/crt0.S: str r1, [r2,2] ;=20 _GLOBAL_REENT->atexit0._fns[0] libgloss/epiphany/crt0.S: add r0,r2,0x14c ;=20 &_GLOBAL_REENT->atexit0 libgloss/epiphany/crt0.S: str r0, [r0,-1] ;=20 _GLOBAL_REENT->atexit libgloss/epiphany/crt0.S: strd r0, [r2,0x2a] ;=20 _GLOBAL_REENT->atexit0._ind libgloss/arc/crt0.S: add r1, r1, 0x14c ;=20 &_GLOBAL_REENT->atexit0 libgloss/arc/crt0.S: st r1, [r1, -4] ;=20 _GLOBAL_REENT->atexit libgloss/arc/crt0.S: st_s r0, [r1, 8] ;=20 _GLOBAL_REENT->atexit0._fns[0] libgloss/arc/crt0.S: st_s r0, [r1, 4] ;=20 _GLOBAL_REENT->atexit0._ind libgloss/sparc_leon/locore_atexit.c: p =3D _GLOBAL_REENT->_atexit; libgloss/sparc_leon/locore_atexit.c: _GLOBAL_REENT->_atexit =3D p =3D=20 &_GLOBAL_REENT->_atexit0; I will update it if the patch is acceptable in general. --=20 embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.huber@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht M=C3=BCnchen Registernummer: HRB 157899 Vertretungsberechtigte Gesch=C3=A4ftsf=C3=BChrer: Peter Rasmussen, Thomas= D=C3=B6rfler Unsere Datenschutzerkl=C3=A4rung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/