This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to create a list solely of functions referenced by a module?
- From: Alan Modra <amodra at gmail dot com>
- To: Shaun Pinney <shaun dot pinney at bil dot konicaminolta dot us>
- Cc: binutils at sourceware dot org
- Date: Wed, 8 Dec 2010 15:08:52 +1030
- Subject: Re: How to create a list solely of functions referenced by a module?
- References: <000e01cb9662$934b2d10$b9e18730$@pinney@bil.konicaminolta.us>
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