public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* How to create a list solely of functions referenced by a module?
@ 2010-12-08  0:04 Shaun Pinney
  2010-12-08  4:39 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Shaun Pinney @ 2010-12-08  0:04 UTC (permalink / raw)
  To: binutils

Hi all,

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.
 
Thanks,
Shaun


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to create a list solely of functions referenced by a module?
  2010-12-08  0:04 How to create a list solely of functions referenced by a module? Shaun Pinney
@ 2010-12-08  4:39 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2010-12-08  4:39 UTC (permalink / raw)
  To: Shaun Pinney; +Cc: binutils

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-08  4:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-08  0:04 How to create a list solely of functions referenced by a module? Shaun Pinney
2010-12-08  4:39 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).