Xref: utzoo comp.unix.sysv386:1987 comp.unix.questions:26805 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!audfax!arnold From: arnold@audiofax.com (Arnold Robbins) Newsgroups: comp.unix.sysv386,comp.unix.questions Subject: replacing crt0.o on sv 386 Message-ID: <299@audfax.audiofax.com> Date: 9 Nov 90 18:00:25 GMT Followup-To: comp.unix.sysv386 Organization: AudioFAX Inc., Atlanta Lines: 14 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