Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: How to link without stdio Message-ID: <1990Sep25.223036.25429@virtech.uucp> Date: 25 Sep 90 22:30:36 GMT References: <1990Sep25.161300.29421@phri.nyu.edu> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 16 In article <1990Sep25.161300.29421@phri.nyu.edu> roy@alanine.phri.nyu.edu (Roy Smith) writes: >what I'd like to do is force the linker to ignore any stdio routines in >/lib/libc.a; that way, if there are any stdio calls left that I missed, >they will show up as link errors. Any way to do this, other than >rebuilding libc.a from scratch, which seems impractical. There is no way to tell the linker to skip all stdio objects. However, you could ar xv libc.a and then search the objects for STDIO references (using strings if you header files include ident strings, or nm (looking for stdio functin references/declarations) otherwise) and then use ar cv testlibc.a with all the objects that did not match. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170