Re: Where is the entry point of the applications?

2005-05-08 Thread Dr. Vesselin Bontchev
> so 6% is 'popular' - I think not. I agree with you here. In fact, I've said myself in another thread that the reason why there aren't many viruses for PalmOS is because it is not popular enough environment to attract the attention of the virus writers. Regards, Vesselin -- For information on

Re: Where is the entry point of the applications?

2005-05-04 Thread Chris Brooks
so 6% is 'popular' - I think not. "Majority" means "more than the others" (or "more than the half" in some contexts). In that aspect, the majority of computer users are Windows users. "Popular" means that there is a large enough population of users - even though other OSes might have even more us

Re: Where is the entry point of the applications?

2005-05-04 Thread Dr. Vesselin Bontchev
> Exactly what you deserve when you download a virus load it onto > your PDA and run it You might think so but the ethical principles of my profession dictate that I avoid such "blame the victim" attitudes. Our job is to protect the user - not to explain him how stupid he has been to do the idio

Re: Where is the entry point of the applications?

2005-05-04 Thread Chris Brooks
>> What are you referring to - the Phage virus? Yep, once you run it, all applications >> that are in the RAM just stop working Exactly what you deserve when you download a virus load it onto your PDA and run it, there are an awful lot of steps to getting a virus on your PDA, plus it's not exa

Re: Where is the entry point of the applications?

2005-05-04 Thread Dr. Vesselin Bontchev
> Wow, that's really going to cripple your system isn't it. What are you referring to - the Phage virus? Yep, once you run it, all applications that are in the RAM just stop working - because it overwrites them all. That's one of the reasons why it never became widespread - a virus that immedia

Re: Where is the entry point of the applications?

2005-05-04 Thread Chris Brooks
Wow, that's really going to cripple your system isn't it. I think your flogging a dead horse, the PalmOS is dying whatever we like to think about it. MS is gaining ground and PalmOne have failed to release anything good in a long time. Look at the latest PPC models which have WiFi, Bluetooth, m

Re: Where is the entry point of the applications?

2005-05-03 Thread Ton van Overbeek
On 2005-05-03, Ben Combee <[EMAIL PROTECTED]> wrote: > At 11:03 AM 5/3/2005, you wrote: >> > It has to do with the locking of the code 1 resource into memory. >> > The memory manager can move unlocked resources around to compact >> > the storage heap.i So the launch code looks up the code 1 >> > re

Re: Where is the entry point of the applications?

2005-05-03 Thread Dr. Vesselin Bontchev
Thanks, Ben! I understand it now. Regards, Vesselin P.S. Slight correction - the Phage virus copies its data 0, code 1 *and* code 0 resources to the applications it infects - I just looked at the code and that's what it does explicitly. Its descriptions at the various anti-virus sites are slig

Re: Where is the entry point of the applications?

2005-05-03 Thread Ben Combee
At 11:03 AM 5/3/2005, you wrote: > It has to do with the locking of the code 1 resource into memory. > The memory manager can move unlocked resources around to compact > the storage heap.i So the launch code looks up the code 1 > resource, pushes its start address on the stack and jumps to it > wit

Re: Where is the entry point of the applications?

2005-05-03 Thread Dr. Vesselin Bontchev
> Quicker than non existent PalmOS viruses :-) PalmOS viruses are not "non existent". There is a whole one of them. :-) See, for instance, this: http://www.f-secure.com/v-descs/phage.shtml (The first picture on that page is a bit misleading, BTW. The Phage virus doesn't have an icon that looks

Re: Where is the entry point of the applications?

2005-05-03 Thread Dr. Vesselin Bontchev
> It has to do with the locking of the code 1 resource into memory. > The memory manager can move unlocked resources around to compact > the storage heap.i So the launch code looks up the code 1 > resource, pushes its start address on the stack and jumps to it > with RTS. Sorry, I still don't unde

Re: Where is the entry point of the applications?

2005-05-03 Thread Chris Brooks
Smoking kills you slowly. But, I guess, you're not in a hurry. :-) Quicker than non existent PalmOS viruses :-) Chris Brooks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Where is the entry point of the applications?

2005-05-03 Thread Dr. Vesselin Bontchev
> Your original Question. "there is some startup code that calls > PilotMain" That's not a question - it's a statement. Please refer to my original message at the beginning of this thread. It contained only one question and that question was "How to determine the location of the first instru

Re: Where is the entry point of the applications?

2005-05-03 Thread Ben Combee
At 06:39 AM 5/3/2005, you wrote: When an executable application is loaded by PalmOS, where is the point that receives control first? No, it is not PilotMain - it's much before that; there is some startup code that calls PilotMain. How to determine the location of the first instruction that will

Re: Where is the entry point of the applications?

2005-05-03 Thread Ton van Overbeek
On 2005-05-03, Dr. Vesselin Bontchev <[EMAIL PROTECTED]> wrote: >> The execution starts at the first instruction of the code 1 >> resource. > > Thanks. Are you sure about this? That was one of the places I thought of > checking and the code there didn't make much sense to me. It looks > something l

Re: Where is the entry point of the applications?

2005-05-03 Thread Chris Brooks
Your original Question. "there is some startup code that calls PilotMain" and my answer was correct. so it *was* your question "The position of the entry point in the code 1 resource is probably also compiler-dependent" No, it would not be, the *name* could be different, the position could

Re: Where is the entry point of the applications?

2005-05-03 Thread Dr. Vesselin Bontchev
> The execution starts at the first instruction of the code 1 > resource. Thanks. Are you sure about this? That was one of the places I thought of checking and the code there didn't make much sense to me. It looks something like this: ORI.B #1,D0 ; Set the lowest bit of D0 to 1? What for? PEA $

Re: Where is the entry point of the applications?

2005-05-03 Thread Dr. Vesselin Bontchev
> I believe it's called __startup__ How it is called depends on the compiler. But that wasn't my question. The position of the entry point in the code 1 resource is probably also compiler-dependent. My question was how does the *OS* find the first machine language instruction in the application

Re: Where is the entry point of the applications?

2005-05-03 Thread Ton van Overbeek
On 2005-05-03, Chris Brooks <[EMAIL PROTECTED]> wrote: > Yeah, I was right... it's declared like this:- > > UInt32 __Startup__ ( void ) > { > } > > > Dr. Vesselin Bontchev wrote: > >>Hello folks, >> >>When an executable application is loaded by PalmOS, where is the point that >>receives control fir

Re: Where is the entry point of the applications?

2005-05-03 Thread Chris Brooks
Yeah, I was right... it's declared like this:- UInt32 __Startup__ ( void ) { } Dr. Vesselin Bontchev wrote: Hello folks, When an executable application is loaded by PalmOS, where is the point that receives control first? No, it is not PilotMain - it's much before that; there is some startup code

Re: Where is the entry point of the applications?

2005-05-03 Thread Chris Brooks
I believe it's called __startup__ Chris Brooks Dr. Vesselin Bontchev wrote: Hello folks, When an executable application is loaded by PalmOS, where is the point that receives control first? No, it is not PilotMain - it's much before that; there is some startup code that calls PilotMain. How to det

Where is the entry point of the applications?

2005-05-03 Thread Dr. Vesselin Bontchev
Hello folks, When an executable application is loaded by PalmOS, where is the point that receives control first? No, it is not PilotMain - it's much before that; there is some startup code that calls PilotMain. How to determine the location of the first instruction that will get executed in the