From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70720 invoked by alias); 30 Sep 2018 09:04:00 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 70592 invoked by uid 89); 30 Sep 2018 09:03:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=packaged, HX-Received:a19, HX-HELO:sk:mail-lf, Hx-spam-relays-external:209.85.167.67 X-HELO: mail-lf1-f67.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=2GiW5DVuHA4gGjrjvSk2KVSOPQ+1DfuD1oGKCELIbJs=; b=mUKtquJ1akKjT4eJRw850oPq0duQcj21DQ6PY6450+Xt7FvwPAld4rrpD3gdSQIG7s fsY0eidDZKvbKuxbo6zJni6me2UbTqKlGuf+Z/TdA9/AmVMl556Aoh0RFOhdWj7PMDAy 4rjHvCwDbzYdFbkTusw7ed1Feux1FiLrTY00KhDMyQowCcMIkk1KByQPBkqMZNWf9Q8M 29nE5odzU3k3En8r1HZml7yMCn7DZMnrOfruxNCXEhz64FbUtUARU1iIkvrbIctv0rhg lUN6Cwb/3ESddnLWfu38401T9RKAEN/PrRuAsl4OEN3/gpw+pZpFXXJoafNSabm4TQZG v3rQ== MIME-Version: 1.0 References: <0f0b5b18-056b-c622-e313-74bf714ecb2a@redhat.com> In-Reply-To: From: "Manuel A. Fernandez Montecelo" Date: Sun, 30 Sep 2018 09:04:00 -0000 Message-ID: Subject: Re: [PATCH v4 01/13] C-SKY: ABI related code To: Palmer Dabbelt Cc: fweimer@redhat.com, Karsten Merker , "Manuel A. Fernandez Montecelo" , DJ Delorie , "Richard W.M. Jones" , David Abdurachmanov , han_mao@c-sky.com, hjl.tools@gmail.com, c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, GNU C Library Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2018-09/txt/msg00531.txt.bz2 Hi, Em s=C3=A1b, 29 de set de 2018 =C3=A0s 03:46, Palmer Dabbelt escreveu: > > On Wed, 12 Sep 2018 01:23:29 PDT (-0700), fweimer@redhat.com wrote: > > On 09/12/2018 09:07 AM, Mao Han wrote: > >> It seems used to call some pre-init function for libc, register transa= ctional > >> memory clone tables and invoke global constructors on C-SKY. Althrough= I > >> haven't found any constructors call by _init, I just tend to have _ini= t and > >> _fini as most other arch have these. > > > > The expectation is that for new glibc ports, GCC is tweaked to generate > > the array variant of these constructs exclusively, like RISC-V did. > > Then you won't need the function variant. > > I think we're the only ones who do it this way, but it appears to work and > saves us a few symbols so I see no reason not to do so. In RISC-V land w= e're > pretty aggressive about pruning old interfaces, but this one doesn't appe= ar to > have bitten us anywhere (or at least, has bitten us less than others :)). > > The distro guys are probably in a better place to comment on this decisio= n, > though, as this is one of those things that will only crop up in real cod= e. > I've added a few people who are more plugged in to these sorts of issues = than I > am. What kind of error messages or behaviours would we see, if this is used by any software packaged in the distros? In the Debian port for riscv64, with ~85% of the whole archive compiled, I don't remember seeing messages in packages that seemed related to this, but maybe they manifest in non-obvious (for me) ways. Cheers. --=20 Manuel A. Fernandez Montecelo