[comp.unix.questions] replacing crt0.o on sv 386

arnold@audiofax.com (Arnold Robbins) (11/10/90)

For various reasons, I would like to write a replacement crt0.o for
our System V.3.2 '386 systems.  Can someone describe for me the stack
layout of argc, argv, and environ after an exec?  The replacement crt0
needs to be able to pull them off the stack in the right way in order
to pass them on in the call to main.

Pictures and/or C code preferred, assembly language also welcome.

Thanks,
-- 
Arnold Robbins				AudioFAX, Inc. | Laundry increases
2000 Powers Ferry Road, #200 / Marietta, GA. 30067     | exponentially in the
INTERNET: arnold@audiofax.com Phone:   +1 404 933 7612 | number of children.
UUCP:	  emory!audfax!arnold Fax-box: +1 404 618 4581 |   -- Miriam Robbins