On Tue Nov 22 21:48:34 2022 +0000, Zebediah Figura wrote:
FreeBSD tends to be closer to Linux in general, but from looking up man pages on the Internet it looks like NetBSD and OpenBSD support NOLOAD too, so I guess it's probably safe enough.
Instead of relying on dlopen for this, I'd suggest making map_so_dll() not do anything if it finds an existing DOS header.