Index | Thread | Search

From:
Frederic Cambus <fred@statdns.com>
Subject:
Re: binutils: enable ld.bfd ?
To:
Klemens Nanni <kn@openbsd.org>
Cc:
ports <ports@openbsd.org>, Frederic Cambus <fcambus@openbsd.org>
Date:
Sun, 30 Nov 2025 14:30:06 +0100

Download raw body.

Thread
On Sat, Nov 29, 2025 at 08:17:19PM +0000, Klemens Nanni wrote:

> > net/ipxe in openbsd-wip seems to require the GNU linker.
> > 
> > 2.17 from base just segfaults (certainly too old) and ld.lld(1) complains
> > differently, depending on what/how I build stuff:
> > 
> > - ld: error: section .text file range overlaps with .shstrtab
> > - ld: error: output file too large: 18446744073709485768 bytes
> > 
> > When using gld built with the diff below, ipxe.efi links fine.
> > 
> > 
> > Is there a reason disable it?
> 
> If yes, would a FLAVOR (that is not hooked up) and/or enabling it
> only for amd64 and arm64 (none other needed, atm) be acceptable?

There was simply no use-case for it, because as far as I remember it is
not going to produce working OpenBSD executables.

Adding a FLAVOR would probably be overkill, but as it will only be useful
to build net/ipxe on amd64 and arm64 I think it indeed makes sense to only
enable building ld on these architectures.