Profiling shared libraries
Krisztian
cristianc@angelfire.com
Sat Jul 28 05:08:00 GMT 2001
Hi !
I tried to profile a shared library under Linux with the following commands:
getting the shared library in this way:
cc -g -O -I /usr/include -c /usr/prog/file1.c
........................................................
........................................................
ld -shared ./libapi.so -o ./file1.o ./file2.o ./file3.o
cp libapi.so /lib
and getting the executable in this way:
cc -g -O ./file4.o ./file5.o -o ./executable -lapi
after that I set the environment variable LD_PROFILE in order to profile the shared library libapi.so in this way:
$:LD_PROFILE=libapi.so ./executable
$:executable: profiler found no PLTREL in object /lib/libapi.so
Does anybody why the profiler found no PLTREL in the libapi.so shared library????
*******************************************************
Cristian Cadar
Software Engineer
cristianc@angelfire.com
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/
More information about the Gcc-help
mailing list