Follow up on __cyg_ ... functions

Andrew Haley aph@redhat.com
Fri Oct 10 15:16:00 GMT 2008


Bill Mahoney wrote:
> Brian and (Andrew Haley):
> 
> But, you see, it is not unresolved for me:
> 
> [bmahoney@IDEA play]$ gcc -finstrument-functions -o test test.c
> [bmahoney@IDEA play]
> 
> And a "nm" shows that they're going to get sucked in as part of the
> library:
> 
>                 U __cyg_profile_func_enter@@GLIBC_2.2.5
>                 U __cyg_profile_func_exit@@GLIBC_2.2.5
> 
> which brings me back to... Where are they in the lib source? No amount
> of grepping seems to find it. The doc's for GCC say that the runtime is
> in the distribution sources, so I assume that is true. This is from a
> brand new 4.3.2 install.

Did you generate a link map, as I suggested?  That would immediately
tell you where it was coming from: it's glibc.

  gcc -Wl,-Map,map

Andrew.



More information about the Gcc-help mailing list