Re: llvm/sparc64: match BFD -N alignment

"Theo de Raadt" <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
Kirill A. Korinsky <[email protected]> wrote:

> On Tue, 18 Aug 2026 15:23:25 +0200,
> Mark Kettenis <[email protected]> wrote:
> > 
> > > Date: Tue, 18 Aug 2026 15:18:01 +0200
> > > From: "Kirill A. Korinsky" <[email protected]>
> > > 
> > > Robert, Sebastien,
> > > 
> > > BFD aligns nonpaged PT_LOAD segments to their maximum contained section
> > > alignment. Do the same for SPARCV9 instead of retaining the 1 MiB maximum
> > > page alignment.
> > > 
> > > This removes roughly 1 MiB of leading padding from ofwboot without changing
> > > its load address or memory layout.
> > > 
> > > Here diff for the base and llvm/22 in ports.
> > > 
> > > Ok?
> > 
> > This is questionable.  What problem are you trying to solve?
> >
> 
> Size for floppy, ramdiskB and so on.
> 
> Without it, ramdiskB won't fit.

OK deraadt, but now that it's serious kettenis may have other nits.
The conditions look correct to me and I don't think anything outside
sys/arch/sparc64/stand uses the ld options which use this so the effects
are tightly constrained.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.