I’m a relatively new user of DragonFly BSD: I don’t know how things work in general. I have a simple, statically linked i386 ELF-32 executable program which works on DragonFly BSD 3.8.2 i386. How do I run this program on later versions of DragonFly BSD?
So far I’ve been getting the Exec format error error message on DragonFly BSD 6.2.4 x86_64. I’ve tried running kldload compat32, but that module doesn’t exist.
In this question I’m focused on getting past the Exec format error. (In addition to that, there maybe syscall incompatibilties and files moved from their expected locations. I can deal with these on my own when needed.)
I have many other ways for running the program (such as on DragonFly BSD 3.8.2 i386, or recompiling it from source). In this question I’m focused on running the existing, precompiled, statically linked i386 ELF-32 executable program file on modern DragonFly BSD.