This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to create a list solely of functions referenced by a module?


On Tue, Dec 07, 2010 at 03:00:43PM -0800, Shaun Pinney wrote:
> I have a module which references symbols defined in external libraries.  I'd
> like to create a list of functions referenced by the module (e.g. module A
> references function B).  How can I do this without including data
> references?  nm gives me a list of all undefined references but AFAIK always
> groups text and data references together.  Thanks for any advice.

The simple answer is you can't.  On most targets undefined references
are not typed.  You need the definitions to be able to differentiate
between functions and data.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]