object dependency analyser

Joel Sherrill joel.sherrill@oarcorp.com
Fri Apr 9 19:56:00 GMT 2010


On 04/09/2010 02:22 PM, Pedro Alves wrote:
> On Friday 09 April 2010 19:07:46, Joel Sherrill wrote:
>    
>> Hi,
>>
>> I tried to google this but the words are too
>> overloaded.  Does anyone know of a utility
>> that can take an executable and tell me
>> why each symbol is in the executable?
>>
>> -Map is a good start at this but having a
>> a dependency graph per symbol would be better.
>>      
> Reminds me of this:
>
>   http://sourceware.org/ml/newlib/2006/msg00309.html
>
> Saved my day a while back (as in, app wasn't
> fitting flash anymore :-) and this made it
> much easier to find what was pulling what).
>
>    
I think that would help if I knew how to run them. :)

I saved the output of ld -M in "map".

cat map | ldmap only prints:

digraph ldmap {
}

Any hints?
--joel

>> The goal is to analyse statically linked
>> RTEMS applications and determine why the
>> individual parts of RTEMS are included. With
>> this information, we can find unused code that
>> is just pulled in.
>>
>> Any ideas?
>>
>>
>>      
>
>    


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the Binutils mailing list