[Prev][Next][Index][Thread]
Re: gprof problem
> From: Voon-Li Chung <vlchung@cs.uwa.edu.au>
> Subject: gprof problem
> Date: Wed, 18 Apr 2001 13:51:55 +0800 (WST)
>
> 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:
The one odd thing I notice below is in the link line. You have both the
freebsd C (-loskit_freebsd_c_p) library and OSKit minimal C library
(-loskit_c_p) linking in. This could easily cause all kinds of problems
given that these two libraries implement overlapping sets of functions in
completely different ways. Get rid of oskit_c and see what happens.
Note that it looks like you compiled the threads library without STACKGUARD.
No big deal, just mentioning it.
Lbs
----------------------------------------
Leigh B. Stoller
University of Utah - Flux Research Group
http://www.cs.utah.edu/~stoller
----------------------------------------
> 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: