linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* finding fuction names
@ 2008-10-17 15:07 Tom.Bucken
  0 siblings, 0 replies; only message in thread
From: Tom.Bucken @ 2008-10-17 15:07 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: vicknair

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

/*

Hi,

   We have code in our product that produces stacktraces.  Part of the
implementation of this code runs nm to find all of the entry points in 
our libraries.

   Using the 7.0 version of this compiler to compile the simple code below

xlC_r -c -q64 tt.cxx 
 nm -C tt.o
                 U __IBMCPlusPlusExceptionV1
0000000000000000 D test()
0000000000000000 T .test()

   Using the 8.0 version of this compiler to compile the simple code below

xlC_r -c -q64 tt.cxx 
nm -C tt.o
                 U __IBMCPlusPlusExceptionV2
0000000000000000 D test()


    We grep the nm output for text symbols which are labeled with 'T'.
Not all function names are not labeled as text in objects compiled with 
8.0.
Is there another way to find all of the fuction names in a library or
a compiler switch that will put all fuctions into the text segment ?

thanks,

Tom

*/
 
int test()
{
  return 1;
}

[-- Attachment #2: Type: text/html, Size: 1620 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-17 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-17 15:07 finding fuction names Tom.Bucken

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 NNTP newsgroup(s).