Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAGm1_ktWuzDafgiL42VLb0LYyqG79vscdGCd61YSpyNKRB2WRQ@mail.gmail.com>
Date: Mon, 16 Nov 2026 09:55:39 +0100
From: Yegor Yefremov <yegorslists@...glemail.com>
To: Rich Felker <dalias@...c.org>
Cc: musl@...ts.openwall.com
Subject: Re: powerpc64: libc.so fails to link with -mcpu=power10
 (pc-relative code)

On Sun, Nov 15, 2026 at 2:59 PM Rich Felker <dalias@...c.org> wrote:
>
> On Sun, Nov 15, 2026 at 11:04:49AM +0100, Szabolcs Nagy wrote:
> > * Yegor Yefremov <yegorslists@...glemail.com> [2026-11-15 07:55:45 +0100]:
> > > Building musl 1.2.6 for powerpc64le with gcc 15.3.0 and binutils
> > > 2.46.1/2.47, with -mcpu=power10 or -mcpu=power11 in CFLAGS, fails
> > > when linking libc.so:
> > >
> > >   obj/ldso/dlstart.lo: in function `_dlstart':
> > >   dlstart.c:(.text+0x24): call to `_dlstart_c' lacks nop, can't restore toc; (toc save/adjust stub)
> > >   ld: final link failed: bad value
> >
> > https://marc.info/?l=musl&s=lacks+nop+toc+restore
> >
> > gives
> >
> > https://www.openwall.com/lists/musl/2026/11/05/6
> >
> > > Disclosure: I used an AI assistant (Claude) to analyse this failure.
> > > I reproduced the failure and verified the -mno-pcrel workaround
> > > myself, as described above. I'm not submitting a patch.
> >
> > next time search the list first.
>
> That often does work to find answers, but it's fine mailing the list
> if you don't know that or don't find it.

I have overlooked the previous mail. Sorry for the noise.

Buildroot now builds musl with -mno-pcrel for power10/power11.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.