|
From: Josef W. <Jos...@gm...> - 2006-06-06 21:54:26
|
On Tuesday 06 June 2006 23:28, Haizhu Liu wrote: > Hello, > > Can someone explain to me the first stack frames as below, the second to > last frame is _dl_init, and then call_init, and then the > /opt/hsc/lib/libtrace.so, that means dl_init calls call_init and then > call_init calls something in /opt/hsc/lib/libtrace.so? That does not look > right since /opt/hsc/lib/libtrace.so is not standard library. It seems correct to me. /opt/hsc/lib/libtrace.so is a shared library linked with your binary; the runtime linker first loads all shared libs, and calls an initialization function of every shared lib before main() is run. In the initialization functions, e.g. constructors for global C++ objects are called, as is done in your case, too. Josef |