I would verify your object files are not corrupt before driving yourself
crazy digging deeper for a solution.
This is also a good reminder that the auto-partitioner allocating large
amounts of space for /usr/obj and /usr/src for machines which are not
used to build software is a waste of space that could otherwise be
allocated to /usr or elsewhere. It's not entirely clear to new users,
even after reading the documentation, why these are needed until after
the fact. With binary patches available via syspatch nowadays, I'm
willing to bet they remain empty on most production systems.
Regards
Lloyd
Steve Shockley wrote:
> Hi, I have a VM under QEMU (Proxmox) that I've just upgraded from 7.8 to
> 7.9 that fails to relink the kernel after boot. It boots normally, then
> at the login prompt the console prints "reorder_kernel: failed -- see
> /usr/share/relink/kernel/GENERIC/relink.log". I have two other similar
> VMs that upgraded without a hitch. Running /usr/libexec/reorder_kernel
> manually gives the same result. Any suggestions? Thanks.
>
> /usr/share/relink/kernel/GENERIC/relink.log:
> (SHA256) /bsd: OK
> LD="ld" sh makegap.sh 0xcccccccc gapdummy.o
> ld -T ld.script -X --warn-common -nopie --no-mmap-output-file -o newbsd
> ${SYSTEM_HEAD} vers.o ${OBJS}
> ld: error: vfs_syscalls.o: symbol (10) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (11) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (12) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (13) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (14) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (15) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (16) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (17) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (18) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (19) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (20) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (21) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (22) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (23) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (24) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (25) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (26) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (27) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (28) has invalid binding: 0
> ld: error: vfs_syscalls.o: symbol (29) has invalid binding: 0
> ld: error: too many errors emitted, stopping now (use --error-limit=0 to
> see all errors)
> *** Error 1 in /usr/share/relink/kernel/GENERIC (Makefile:2477 'newbsd':
> @echo ld -T ld.script -X --warn-common -nopie --no-mmap-output-file...)
>
> df -h
> Filesystem Size Used Avail Capacity Mounted on
> /dev/sd0a 986M 83.7M 853M 9% /
> /dev/sd0k 12.8G 14.3M 12.1G 1% /home
> /dev/sd0d 2.4G 12.0K 2.3G 1% /tmp
> /dev/sd0f 4.3G 1.5G 2.6G 37% /usr
> /dev/sd0g 986M 346M 591M 37% /usr/X11R6
> /dev/sd0h 5.2G 378M 4.6G 8% /usr/local
> /dev/sd0j 5.8G 2.0K 5.5G 1% /usr/obj
> /dev/sd0i 1.8G 2.0K 1.7G 1% /usr/src
> /dev/sd0e 3.8G 18.1M 3.6G 1% /var
>
> dmesg:
>
> OpenBSD 7.9 (GENERIC) #399: Wed May 6 13:01:58 MDT 2026
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 519938048 (495MB)
> avail mem = 477065216 (454MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf52f0 (9 entries)
> bios0: vendor SeaBIOS version
> "rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org" date 04/01/2014
> bios0: QEMU Standard PC (i440FX + PIIX, 1996)
> acpi0 at bios0: ACPI 1.0
> acpi0: sleep states S5
> acpi0: tables DSDT FACP APIC SSDT HPET WAET
> acpi0: wakeup devices
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: QEMU Virtual CPU version 2.5+, 3059.67 MHz, 0f-6b-01
> cpu0: cpuid 1
> edx=78bfbfd<FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2>
> ecx=82b82201<SSE3,SSSE3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,HV>
> cpu0: cpuid 80000001 edx=20100800<NXE,LONG> ecx=1<LAHF>
> cpu0: MELTDOWN
> cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 4MB
> 64b/line 16-way L2 cache, 16MB 64b/line 16-way L3 cache
> cpu0: smt 0, core 0, package 0, type P
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 1000MHz
> ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins
> acpihpet0 at acpi0: 100000000 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> "ACPI0006" at acpi0 not configured
> acpipci0 at acpi0 PCI0
> "PNP0A06" at acpi0 not configured
> "PNP0A06" at acpi0 not configured
> "PNP0A06" at acpi0 not configured
> "QEMU0002" at acpi0 not configured
> "PNP0303" at acpi0 not configured
> "PNP0F13" at acpi0 not configured
> acpicmos0 at acpi0
> "ACPI0010" at acpi0 not configured
> "QEMUVGID" at acpi0 not configured
> acpicpu0 at acpi0: C1(@1 halt!)
> pvbus0 at mainbus0: KVM
> pvclock0 at pvbus0
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
> pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
> pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> pciide0: channel 0 disabled (no drives)
> pciide0: channel 1 disabled (no drives)
> uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: apic 0 int 11
> piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 0
> int 9
> iic0 at piixpm0
> vga1 at pci0 dev 2 function 0 "Bochs VGA" rev 0x02
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Memory Balloon" rev 0x00
> viomb0 at virtio0
> virtio0: msix shared
> virtio1 at pci0 dev 5 function 0 "Qumranet Virtio SCSI" rev 0x00
> vioscsi0 at virtio1: qsize 256
> virtio1: msix per-VQ
> scsibus1 at vioscsi0: 255 targets
> sd0 at scsibus1 targ 0 lun 0: <QEMU, QEMU HARDDISK, 2.5+>
> sd0: 40960MB, 512 bytes/sector, 83886080 sectors, thin
> virtio2 at pci0 dev 18 function 0 "Qumranet Virtio Network" rev 0x00
> vio0 at virtio2: 1 queue, address 00:50:56:ac:81:47, mtu 1500
> virtio2: msix per-VQ
> ppb0 at pci0 dev 30 function 0 "Red Hat Qemu PCI-PCI" rev 0x00
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 31 function 0 "Red Hat Qemu PCI-PCI" rev 0x00
> pci2 at ppb1 bus 2
> isa0 at pcib0
> isadma0 at isa0
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev
> 1.00/1.00 addr 1
> uhidev0 at uhub0 port 1 configuration 1 interface 0 "QEMU QEMU USB
> Tablet" rev 2.00/0.00 addr 2
> uhidev0: iclass 3/0
> ums0 at uhidev0: 5 buttons, Z dir
> wsmouse1 at ums0 mux 0
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (a7f1610cb44fe3da.a) swap on sd0b dump on sd0b
> fd0 at fdc0 drive 1: density unknown
>
>