Re: linking a program to a specific memory area
From: Christian Hatt Jensen (u030333_at_daimi.au.dk)
Date: Wed, 20 Apr 2005 15:53:31 +0200
Roger Leigh wrote:
> On 2005-04-20, Christian Hatt Jensen <firstname.lastname@example.org> wrote:
>>I wish to link my program to a non standard memory area, so execve()
>>won't overwrite it.
> execve() replaces the entire process' VM, so it's not possible: all
> user-accessible addresses are gone after execve() completes, by
> which time another program is now running.
> What are you trying to achieve?
I am trying to load my progrm into a low part of the virtual memory, so
i can load a noter program into the normal part and execute it in a thread.
Your right i can't use execve() so i will have to find a nother of
loading the program, and running it, but i still need to relocate my
program into the lower part of the virtual memory.