Mail Archives: djgpp-workers/1998/09/20/12:14:25
I know this is old, but...
Eli Zaretskii wrote:
>
> On Sat, 5 Sep 1998, Ilya Ryzhenkov wrote:
>
> > 3. Is their any tool, which can show the reason of including
> > some .o from libc.a ? I.e. the symbol used, which require other, etc..
>
> I don't think there is such a tool, but I might be wrong.
I was inspired to write a tool to do this (by parsing `nm' output), got
deep into it, then discovered I was reinventing the wheel. See the
`--cref' option to `ld'. With this you can tell what required what to
be included, and you could write something to parse it and report it
prettily. (A perl script, or some such.)
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -