Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!daver!ditka!zinn!decvax.dec.com!abyss.zk3.dec.com!kenton From: kenton@abyss.zk3.dec.com (Jeff Kenton OSG/UEG) Newsgroups: comp.sys.mips Subject: Re: changing crt0.o Message-ID: <1991Apr1.175617.4393@decvax.dec.com> Date: 1 Apr 91 17:56:17 GMT References: <7991@rossignol.Princeton.EDU> Sender: usenet@decvax.dec.com (Usenet News System) Reply-To: kenton@abyss.zk3.dec.com (Jeff Kenton OSG/UEG) Organization: Digital Equipment Corporation - Nashua, NH Lines: 24 Nntp-Posting-Host: abyss.zk3.dec.com In article <7991@rossignol.Princeton.EDU>, nr@dynamic.Princeton.EDU (Norman Ramsey) writes: |> |> I want to change crt0.o to initialize some debugging code before |> calling the user's main(). I've looked at the existing __start using |> dbx, and I've duplicated the instruction sequence, but when I try `nm |> /usr/lib/crt0.o' I still see some things I don't understand. (For |> example, how much of the moncontrol stuff is necessary?) We have |> Ultrix sources but our sysadmin people have been unable to find crt0.s |> for me. Can anyone point me to a copy of crt0.s for the MIPS, or tell |> me what manual explains what this code is supposed to do? |> If you have source for the library stuff, look there for crt0.s. The moncontrol stuff is for profiling. In the non-profiling version, stubs are compiled in, in case you link to a routine that was compiled with profiling. The stubs are tiny -- no harm putting them in. ----------------------------------------------------------------------------- == jeff kenton Consulting at kenton@decvax.dec.com == == -- No I don't speak for DEC -- == == (617) 894-4508 (603) 881-0011 == -----------------------------------------------------------------------------