Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20261115135908.GR5716@brightrain.aerifal.cx>
Date: Sun, 15 Nov 2026 08:59:09 -0500
From: Rich Felker <dalias@...c.org>
To: Yegor Yefremov <yegorslists@...glemail.com>, musl@...ts.openwall.com
Subject: Re: powerpc64: libc.so fails to link with -mcpu=power10
 (pc-relative code)

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.

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.