I am attempt to port Solo5 to OpenBSD, I am only looking at Virtio for now and will expand later.
I have things compiling and linking with OpenBSD base system, but can not boot the compiled kernel, it fails with a no multiboot header or a.out kludge found.
I wanted to rule out the bintutils version, so I created a cross compiler version of Binutils 2.17, the same base version as OpenBSD, targeting x86_64-elf, and have successfully booted the test_hello.virtio kernel (i did have to use mkimage on a linux vm) on OpenBSD’s vmm.
my repo is located here
Now the reason for my post.
I am not sure how to resolve the linking issues using binutils (ld) from base OpenBSD, if anyone has some tips on where to look, that would be greatly appreciated.
Edit: I understand this is not much info to go on, but i am able to dump info from both virtio kernels or intermediate o files, but am i not sure what would help.