Date: Wed, 15 Mar 2000 19:52:42 +0500
Message-Id: <200003151452.TAA00903@midpec.com>
From: Prashant TR
To: "nimrod a. abing"
CC: djgpp AT delorie DOT com
In-reply-to:
(synflood AT eudoramail DOT com)
Subject: Re: self-mod code and DJGPP - writable code segment?
References:
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com
Precedence: bulk
"nimrod a. abing" writes:
> I was just curious about this. If the code
> segment is not writable, it seems to imply some
> sort of immunity to viruses for DJGPP programs.
How does writability affect viruses? Since DJGPP
programs use the same DOS routines that are hooked
by the viruses, there is no immunity as such. Read
on...
> And I also read from somewhere in the FAQ that
> DJGPP programs have the ability to detect if
> their COFF image becomes corrupted.
Yes. The COFF headers get destroyed if any virus
tries to overwrite the startup code. That's because
the DJGPP startup code is so small and very well
written!
> With so many viruses spreading around, does
> this mean that DJGPP programs are safer from
> viruses?
No. Doesn't really imply that way.