From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 214DF25E11 for ; Tue, 7 May 2024 01:28:44 +0200 (CEST) Received: (qmail 25991 invoked by uid 550); 6 May 2024 23:28:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 25953 invoked from network); 6 May 2024 23:28:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715038109; x=1715642909; darn=lists.openwall.com; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ogb5IM1wPM57K3rK9AZJhHP5SUpnHXGqAU3qUq0i+7w=; b=MEdqbwR8exjlKyLfCMbV4Nyu7LJDo478Bsar4bqF5NYi3r4+l9ISp3nB6E/OmD9fyH 5Ceye2qeIsFko2ujasu4f0qF2qATLDOB/8IsYLzk84lBwwzdmTiHawHt/O6TY8HRsqA+ ruMaZtdyrvJoBv99l2QLTC2VuYbkbs4B/somf1A+WWj0+I1HTBQh5bJsNtkuD1ZrLGNF rn4zHKRQ5KK9884HJpeDfGHbQR+P/bDyyL+uROoBlOLT5MqW+og/l8tThsvsPF6deX11 bd2XEZopJZIRNCwCFlmsgnahiM0+FQflolCoGMtJErJMjuDzAC1qsId4X/gzdGmwcBQU fqQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715038109; x=1715642909; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ogb5IM1wPM57K3rK9AZJhHP5SUpnHXGqAU3qUq0i+7w=; b=iysdnHg93ilbuoqc77niqMgbqiGw7uziYBbrR/R+NRsKI0qrCSk2cJCrHuJFglmaMh RjK9cx/Jwr3Oljpa7SriC7nKP2quxCv9zvfm7u/cD+y8fVd4kRbGy0+2E/z5eO+vevEt amDlKnWBlpELksNkzX5frMdyAIaQKaH4IEseeYgFwMXQbWgVqaOb8Q7h0Gny0pct5EgH 6BpLYuZPae+MHBtTbvSj3es7mq4K9d+FtSQI/BiIreK6Q2xaW3ewJkEeYXnXg6C66OYe xFEHrNQl/o4GEYEE/ZN7F1BjAHyw9wrBv69cncRjuoo7xww+E4JaVQankk+DGi6ujMHw MxEw== X-Gm-Message-State: AOJu0Yzw0THACSqoZDsF9oVTmkQ/eHIV1r2FU3wGLC3KkjvqSXzCjN4w kktkInekVpT+o19o0hQaSmyF0DSnFgsL/+BNPfn/ck4y4Auq6yFprqnVAibkk3A2xijRGucRf+m QzWaAD/dF95J1PyzEGiw7kdOeyPQ= X-Google-Smtp-Source: AGHT+IHgTyUcE6VJNNbJjOx9zkgS1KFpF2pNnxg3lRqBp+sXxHfH6ei9NfHczk62SuhFIKPq1vCCRjCoxKIdCgX84JA= X-Received: by 2002:a17:90b:3e84:b0:2b4:6584:1be4 with SMTP id rj4-20020a17090b3e8400b002b465841be4mr9152372pjb.21.1715038109298; Mon, 06 May 2024 16:28:29 -0700 (PDT) MIME-Version: 1.0 References: <20240506180112.1045944-1-jcmvbkbc@gmail.com> <20240506180112.1045944-2-jcmvbkbc@gmail.com> <20240506205819.GI10433@brightrain.aerifal.cx> <20240506221524.GJ10433@brightrain.aerifal.cx> <20240506225524.GK10433@brightrain.aerifal.cx> In-Reply-To: <20240506225524.GK10433@brightrain.aerifal.cx> From: Max Filippov Date: Mon, 6 May 2024 16:28:18 -0700 Message-ID: To: Rich Felker Cc: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] [RFC v3 1/1] xtensa: add port On Mon, May 6, 2024 at 3:55=E2=80=AFPM Rich Felker wrote: > > On Mon, May 06, 2024 at 03:40:49PM -0700, Max Filippov wrote: > > On Mon, May 6, 2024 at 3:15=E2=80=AFPM Rich Felker wr= ote: > > > > > > On Mon, May 06, 2024 at 02:47:45PM -0700, Max Filippov wrote: > > > > On Mon, May 6, 2024 at 1:57=E2=80=AFPM Rich Felker wrote: > > > > > > > > > > On Mon, May 06, 2024 at 11:01:12AM -0700, Max Filippov wrote: > > > > > > diff --git a/arch/xtensa/reloc.h b/arch/xtensa/reloc.h > > > > > > new file mode 100644 > > > > > > index 000000000000..cd7a455a2d9c > > > > > > --- /dev/null > > > > > > +++ b/arch/xtensa/reloc.h > > > > > > @@ -0,0 +1,32 @@ > > > > > > +#if __FDPIC__ > > > > > > +#define ABI_SUFFIX "-fdpic" > > > > > > +#else > > > > > > +#define ABI_SUFFIX "" > > > > > > +#endif > > > > > > + > > > > > > +#define LDSO_ARCH "xtensa" ABI_SUFFIX > > > > > > > > > > The ldso name is still missing endianness, if it's intended that = both > > > > > be supported. It needs to completely identify the ABI whenever th= ere > > > > > are incompatible ABI variants. > > > > > > > > For each xtensa core there's only one fixed endianness and code > > > > built for one xtensa core is not supposed to be used for any other > > > > core, so it's not an issue, right? > > > > > > Yes, it is an issue. The ldsonames for ABIs must be globally unique. > > > They are intended to be installable in a filesystem shared between > > > multiple archs, possibly even unrelated archs executed via qemu-user > > > or similar. > > > > That means an unbound number of libraries, one per xtensa core > > configuration and the solution that comes to mind is using xtensa > > core name as a part of ABI name. This is a bit complicated by the > > fact that core names are not guaranteed to be globally unique, but > > does that sound reasonable in general? > > Can you describe what the parameter space of core configurations is? The extensible set of architectural options plus the extensible core instruction set plus variable instruction encoding. As I said earlier the Tensilica's own approach to it is not to try to figur= e out what configurations are compatible with each other but to treat each configuration as a separate base ABI and have things like call0/windowed be the variations of that base ABI. > Does it actually make mutually incompatible ABIs? If they have the > same instruction encoding, endianness, calling convention, etc. they > should not be incompatible, but maybe I'm missing something unique to > how xtensa works..? No, most of them fall into one of the big groups of ABIs compatible with each other, but it is usually hard to say which ones, especially with the little information that we have as the end users. And the number of groups grows over time and is not limited. --=20 Thanks. -- Max