FoxPro on FreeBSD

Dirk-Willem van Gulik dirkx at webweaving.org
Thu Oct 24 07:59:36 UTC 2013


On 24 Oct 2013, at 08:37, Kevin Day <toasty at dragondata.com> wrote:

> On Oct 24, 2013, at 12:54 AM, Xin Li <delphij at delphij.net> wrote:
> 
>> On 10/23/13, 8:32 PM, Kevin Day wrote:
>>> I did some debugging, and watched how the process was getting
>>> launched, and I've managed to get it to load!
>>> 
>>> The problem was that COFF files expect to be mapped into memory at
>>> address 0, something that processes are no longer allowed to do.
...
> Nothing is returning any errors, but the .text session isn’t getting mapped to the desired location (0x0). If map_at_zero is set to 0, the process’s vm_map has min_offset set to PAGE_SIZE instead of 0. 
...
> Also to clarify my original posting, COFF itself isn’t the issue here, just that this specific binary wants its .text section to begin at a virtual address below 0x1000. 

Thanks for getting to the bottom of this - may be good to indeed make the error a lot more human readable - I had the same issue with an old modified RSA BSafe library - and spend ages looking in the wrong place for that sigfault.

Dw.


More information about the freebsd-hackers mailing list