Path: utzoo!utgpu!attcan!uunet!husc6!rutgers!mailrus!b-tech!zeeff From: zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) Newsgroups: comp.sys.ibm.pc Subject: Replacing a Microsoft C library routine Keywords: C, Microsoft, link Message-ID: <5041@b-tech.ann-arbor.mi.us> Date: 6 Jan 89 18:18:53 GMT Organization: Branch Technology, Ann Arbor, MI Lines: 19 For a few programs I've written, I believe that I need to disable calls to chkstk (I'm calling microsoft C routines from an interrupt handler). I know about the /Gs option, but I'm concerned that the library routines might also call it. The best solution seems to be to write a null chkstk routine and link it in. This creates an error message about multiply defined symbols. Is there any way to get the linker to quietly use the first chkstk routine it finds? I've tried removing chkstk from the library with -chkstk, but this seems to remove some other needed routine or variable (STKHQQ). Are there any other ways to make sure that no routine calls chkstk? -- Jon Zeeff zeeff@b-tech.ann-arbor.mi.us Support ISO 8859/1 zeeff%b-tech.uucp@umix.cc.umich.edu Ann Arbor, MI umix!b-tech!zeeff