X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Radical NetSurfer Newsgroups: comp.os.msdos.djgpp Subject: Re: LDD utility Date: Thu, 01 Dec 2005 01:22:35 -0500 Message-ID: References: <200511302046 DOT jAUKkENl023371 AT envy DOT delorie DOT com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Velocity.Net Cache-Post-Path: web.velocity.net!unknown AT 66-211-206-154 DOT velocity DOT net X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Lines: 42 X-Complaints-To: abuse AT newshosting DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Linking in the standard libraries is automatic, and can sometimes involve more than one libary... math, graphics, etc... ObjDump might be able to tell us what modules are expected, but if I understand the process correctly, it does not actually specify _from_ which library, by name, the linker needs to grab the external references from.... for if the object files had such information, we would not always get bitten by forgetting to put the path and explicit name of a library. It would make for a very interesting project, to create a utility, even if human-assisted, that would take the C and C++ sources, and actually list each individual external library reference, by starting with the full name of the library, and whats needed from it. This brings me to my next serious observation: When gcc (djgpp) compiles and creates each object file, are the names of the external references just "tossed in as they are encountered", or is there some systematic organization done, where say, all elements of the standard library first, then I see we need stuff from math.lib, so those next, ok here are some graphics functions, now lets categorize all graphics.lib external references. My guess is no such task is performed, just that each external reference is tossed in, and the linker has to do its best by being manually handed the libraries and repeatedly scanning through obj's and lib's until matches are resolved. Does this sound right? is there any paper/treatis on this process anywhere? THANKS. On Wed, 30 Nov 2005 15:46:14 -0500, DJ Delorie wrote: > >> Does DJGPP have a real or close equivalent to the >> LDD utility? (List Dynamic Dependencies) > >DJGPP does not support dynamic linking, so no, there is no ldd.