mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Max Filippov <jcmvbkbc@gmail.com>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com
Subject: Re: [musl] [RFC v2 0/2] xtensa FDPIC port
Date: Mon, 6 May 2024 10:35:52 -0700	[thread overview]
Message-ID: <CAMo8Bf+hPCBiuWAruR9ihnap1R1kZiGekx0KeUNUAbUT_iSegA@mail.gmail.com> (raw)
In-Reply-To: <20240506144814.GF10433@brightrain.aerifal.cx>

Hi Rich,

On Mon, May 6, 2024 at 7:47 AM Rich Felker <dalias@libc.org> wrote:
> Ping. Did this help with the xtensa fdpic work?

yeah, I think I've fixed all the issues raised in this review.
I've made an FDPIC ABI specification for xtensa and tried to get feed
from the Cadence Tensilica folks, but so far (4 weeks later) only got a
few questions, like "is there a plan to support windowed ABI" and "why
a11 is chosen as a GOT pointer". The spec is available here:
  https://github.com/jcmvbkbc/xtensa-abi/blob/master/fdpic-xtensa.txt
its current version is 1. I wonder if there's a place where I could post it
for a wider review?

I've updated the toolchain components to match the spec and support
both musl and uclibc-ng with single source. There are still some issues
in the binutils (e.g. static PIE support in the linker is broken ATM) and
in the compiler (libstdc++ build is broken for the uclibc-ng due to
dl_iterate_phdr interface difference), but none of it is directly related to
the xtensa port for musl.

libc-test results when running in the QEMU linux-user emulation are the
following:

FAIL src/functional/pthread_mutex_pi-static.exe [status 1]
FAIL src/functional/pthread_mutex_pi.exe [status 1]
FAIL src/functional/pthread_robust-static.exe [timed out]
FAIL src/functional/pthread_robust.exe [timed out]
FAIL src/functional/strptime-static.exe [status 1]
FAIL src/functional/strptime.exe [status 1]
FAIL src/math/acoshl.exe [status 1]
FAIL src/math/asinhl.exe [status 1]
FAIL src/math/erfcl.exe [status 1]
FAIL src/math/fma.exe [status 1]
FAIL src/math/fmal.exe [status 1]
FAIL src/math/lgammal.exe [status 1]
FAIL src/math/tgammal.exe [status 1]
FAIL src/regression/pthread-robust-detach-static.exe [status 1]
FAIL src/regression/pthread-robust-detach.exe [status 1]

mutex_pi and robust list failures are QEMU-linux-user specific and
they pass in system emulation and math test failures are due to the
ULP differences. I haven't had a chance to look at the strptime
failures, but IIRC they're also failing for the sh port.
The testing uncovered the following two issues in the QEMU-linux-user
emulation:
  https://mail.gnu.org/archive/html/qemu-devel/2024-03/msg06891.html
  https://mail.gnu.org/archive/html/qemu-devel/2024-03/msg06892.html

I will post v3 shortly.

-- 
Thanks.
-- Max

  reply	other threads:[~2024-05-06 17:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-28 20:03 Max Filippov
2024-03-28 20:03 ` [musl] [RFC v2 1/2] xtensa: add port Max Filippov
2024-03-28 20:03 ` [musl] [RFC v2 2/2] WIP xtensa bits Max Filippov
2024-03-28 23:01 ` [musl] [RFC v2 0/2] xtensa FDPIC port Rich Felker
2024-03-29  0:48   ` Max Filippov
2024-03-29  1:48     ` Rich Felker
2024-04-03  2:30       ` Max Filippov
2024-04-03 20:55         ` Rich Felker
2024-04-03 21:45           ` Rich Felker
2024-04-04  8:44             ` Max Filippov
2024-04-04 14:01               ` Rich Felker
2024-04-04 15:00                 ` Rich Felker
2024-04-08 14:41                   ` Rich Felker
2024-04-08 15:32                     ` Rich Felker
2024-05-06 14:48                       ` Rich Felker
2024-05-06 17:35                         ` Max Filippov [this message]
2024-04-04  8:56           ` Max Filippov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMo8Bf+hPCBiuWAruR9ihnap1R1kZiGekx0KeUNUAbUT_iSegA@mail.gmail.com \
    --to=jcmvbkbc@gmail.com \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).