http://bugs.winehq.org/show_bug.cgi?id=28662
--- Comment #5 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-12 23:25:21 CDT --- (In reply to comment #4)
Figured it out. It doesn't like any of: { IMAGE_SCN_MEM_EXECUTE, PAGE_EXECUTE } { IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_MEM_EXECUTE, PAGE_EXECUTE } { IMAGE_SCN_CNT_UNINITIALIZED_DATA | IMAGE_SCN_MEM_EXECUTE, PAGE_EXECUTE }
presumably a safety measure to help prevent exploits?
Probably you should report a bug to FreeBSD devs, at least on x86 reading from a page with PAGE_EXECUTE access should work, and it does under Windows and Linux as the tests indicate.