Date: Sun, 17 Mar 1996 16:26:19 +0200 (IST) From: Eli Zaretskii To: Shawn Hargreaves Cc: djgpp AT delorie DOT com Subject: Re: "start" and "end" symbols? In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 14 Mar 1996, Shawn Hargreaves wrote: > So, is there any reason why I couldn't just lock all the memory from > &start, for (&end - &start) bytes, to include all the functions in my > program? That would prevent _any_ code from being swapped, but virtual > memory would still work for malloced data, and it would be a lot more > reliable than my current approach. Locking code is not enough, you need also lock the data that is touched by the locked code.