Path: utzoo!mnetor!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!coherent!dplatt From: dplatt@coherent.com (Dave Platt) Newsgroups: comp.sys.mac.programmer Subject: Re: LSC and CODE resources Message-ID: <3178@coherent.com> Date: 8 Apr 88 20:02:52 GMT References: <1569@ut-emx.UUCP> Reply-To: dplatt@improper.coherent.com (Dave Platt) Organization: Coherent Thought Inc., Palo Alto CA Lines: 21 In article <1569@ut-emx.UUCP> rick@ut-emx.UUCP (Rick Watson) writes: > 1. I'm using LightSpeed C to produce a CODE resource. I don't want the > glue that the linker sticks on the front of the resource. Is there > any way to prevent the glue from getting stuck on in the first place? > I'd rather not have to write a routine to strip it back off. Or, is there > anyway to get the linker to use my glue instead of theirs? According to an article in the April issue of MacTutor, the glue for code resources is stored in the LightSpeed C application in CODE resource number 11; it can be patched (according to Mike Kahl, the author of LsC). You could try hacking this resource as needed in a !COPY! of your LightSpeed C application, and then recompiling and relinking the CODE resource. -- Dave Platt VOICE: (415) 493-8805 USNAIL: Coherent Thought Inc. 3350 West Bayshore #205 Palo Alto CA 94303 UUCP: ...!{ames,sun,uunet}!coherent!dplatt DOMAIN: dplatt@coherent.com INTERNET: coherent!dplatt@ames.arpa, ...@sun.com, ...@uunet.uu.net