Re: git: ba94d7574972 - main - stand/common/load_elf: Do kernel module relocations for PPC

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Tue, 28 Apr 2026 22:37:14 UTC
On Tue, 28 Apr 2026 at 14:54, Adrian Chadd <adrian@freebsd.org> wrote:
>
> On Tue, 28 Apr 2026 at 14:45, Adrian Chadd <adrian@freebsd.org> wrote:
> >
> > hi,
> >
> > This somehow breaks booting in pseries VMs in virtualised ppc64 on
> > qemu, both ppc64be and ppc64le.
> > The loader gets through a bunch of kernel loading and then hangs
> > before it jumps into the kernel.
> >
>
> I've committed some remote gdb sins to figure out where the CPU is in the loader
> binary, and it looks like it's in load_elf.c : elf64_reloc_ptr .

Nope, the problem is mine - it's actually not hanging, it's now just
doing a /lot/ of work
to relocate things before the system boots, so a fully virtualised
ppc64 CPU takes
~ 40 seconds to run through the relocation list.

Ouch.


-adrian