1 .\" $NetBSD: dbsym.8,v 1.4 2014/08/17 19:12:59 joerg Exp $
8 .Nd copy kernel symbol table into db_symtab space
16 is used to copy the symbol table in a newly linked kernel into the
18 array (in the data section) so that the
20 kernel debugger can find the symbols.
21 This program is only used
22 on systems for which the boot program does not load the symbol table
23 into memory with the kernel.
24 The space for these symbols is
25 reserved in the data segment using a config option like:
26 .Dl options SYMTAB_SPACE=72000
27 The size of the db_symtab array (the value of SYMTAB_SPACE) must be
28 at least as large as the kernel symbol table.
30 is reserved, dbsym will refuse to copy the symbol table.
32 To recognize kernel executable format, the
34 flag specifies BFD name of kernel.
40 will report the size of the kernel symbol table.
46 will report the size of the kernel symbol table and the size of the
48 Two values are printed out in a line separated by a space.
54 will print out status information as
55 it is copying the symbol table.
57 Note that debugging symbols are not useful to the
59 kernel debugger, so to minimize the size of the kernel, one should
60 either compile the kernel without debugging symbols (no
64 command to strip debugging symbols from the kernel before
66 is used to copy the symbol table.
69 will strip out debugging symbols.