Not All Symbols Present in a Loadable Kernel Module

Alexander Sack pisymbol at gmail.com
Fri May 2 20:15:43 UTC 2008


On Thu, May 1, 2008 at 10:04 PM, David Christensen <davidch at broadcom.com> wrote:
> I'm trying to build the "bce" driver as a kernel module under RELENG_7 but I'm
>  finding that not all of the functions in the driver are exported as symbols.  This
>  makes it difficult to "call" a function from ddb because I get the error "Symbol
>  not found".  I'm building and loading the driver from /usr/src/sys/modules/bce.
>  What am I doing wrong?  How can I get all functions in the driver exported as
>  symbols usable by the debugger?

Are you building a debug kernel or regular kernel?  Have you turned on
debug symbols?

makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols

Just a quick thought...I'm assuming these symbols are listed under
your final kernel image (nm it etc.).

-aps


More information about the freebsd-net mailing list