Am 12.11.2020 um 21:58 schrieb Gerald Pfeifer gerald@pfeifer.com:
FreeBSD prefers to use a 0x200000 (super) page alignment. This causes the image base to be displaced from the requested location. Forcing a smaller page size ensures the image can be placed there.
Is kernel32 built as a dll.so without mingw in this case? If it is a PE DLL as it should be then the problem should be fixed in the PE loader I think - it would also affect DLLs shipped by programs etc.