[Prev][Next][Index][Thread]
gprof problem
I'm really at a wits end to determine why I'm getting "a.out: can't find
symbol table!" and "can't find string table corresponding to symbol
table!" errors when my own kernel terminates. I've managed to reduce the
code that produces the problem to:
int main(int argc, char **argv)
{
oskit_clientos_init_pthreads();
start_clock();
start_pthreads();
start_fs_bmod_pthreads();
start_gprof();
start_network_pthreads();
exit(0);
}
with this linking command to produce a kernel called "test23":
ld -Ttext 100000 -o test23 -L../../lib ../../lib/multiboot.o\
multi-boot.o -loskit_startup_p -loskit_memfs_p\
-loskit_fsnamespace_r_p -loskit_kern_p -loskit_threads_p\
-loskit_com_p -loskit_bootp_p -loskit_freebsd_net_p\
-loskit_linux_dev_p -loskit_clientos_p -loskit_dev_p\
-loskit_lmm_p -loskit_c_p -loskit_freebsd_c_p\
-loskit_gprof_p -loskit_kern_p -loskit_c_p\
-loskit_freebsd_c_r_p ../../lib/crtn.o
I also create a multiboot kernel by using the mkmb2 utility:
mkmb2 test23 test23:a.out
and commenting out the start_network_pthreads(); allows the code to be
profiled normally using the gprof support.
Can anyone help me?
Follow-Ups:
References: