Vulnerability Development mailing list archives

The generated binary code has different main?


From: Minchu Mo <morris_minchu () iwon com>
Date: 4 Sep 2002 21:48:38 -0000



I used cc compiler to compile a simple c code under solaris /sparc. The c 
code has main(int argc, char* argv[]) function as entry point as everybody 
knows.

But when I run the generated code under adb, I found the main function
under adb look like this:

main(2,ffbefd0c,ffbefd18,20800,0,0)

I know that:
2 is the number of arguments, 
ffbefd0c is *argv
ffbefd18 is *envp,
but what are 20800 and 0, 0 for? 

Anybody knows? Thanks 



Current thread: