On Tue, Nov 21, 2006 at 06:46:49PM -0700, Olivier Meyer wrote: > Most of what you see is the libc setting up default signal stuff. > After the ELF is loaded mprotect is used to make the area executable, > so when EIP is set to the starting point, the program does not SEGV. > > As to understanding, I would read the appropriate code in the kernel. > > On 11/21/06, Jan Stary <[EMAIL PROTECTED]> wrote: > >Hi all, > > > >being interested in the system's internals, I ktraced a trivial 'program': > > > >int > >main(void) > >{ > > return 0; > >} > > > >cc -o prog prog.c
-static might also be helpful (unless you are interested in the dynamic library loading part) > >strip prog > >ktrace ./prog > >kdump -f ktrace.out > > [...]