From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: ld question Date: Tue, 05 Nov 1996 13:04:30 +0100 Organization: TU Chemnitz-Zwickau Lines: 21 Message-ID: <327F2D4E.775F@Mathematik.tu-chemnitz.de> References: <327FDCF3 DOT 4F5B AT spy DOT isp DOT nsc DOT ru> NNTP-Posting-Host: tantalus-e.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: ilya AT spy DOT isp DOT nsc DOT ru DJ-Gateway: from newsgroup comp.os.msdos.djgpp Ilya P. Ryzhenkov wrote: > > How can I know what members of libc.a (or any other lib) > was actually linked into my programm ? > Create a linker mapfile with the ld switches -Map mapfile. If you link with gcc you must use the following syntax: gcc -o foo foo.o -Xlinker -Map -Xlinker mapfile and you will get a very detailed file (mapfile) where all the information is. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************