1bfa323b06
See revision 1.35 of sys/kern/kern_linker.c.
20 lines
557 B
Plaintext
20 lines
557 B
Plaintext
dir /usr/src/sys/modules/vinum
|
|
dir /usr/src/sys/i386/conf
|
|
dir /usr/src/sys
|
|
define asf
|
|
set $file = linker_files.tqh_first
|
|
set $found = 0
|
|
while ($found == 0)
|
|
if (*$file->filename == 'v')
|
|
set $found = 1
|
|
else
|
|
set $file = $file->link.tqe_next
|
|
end
|
|
end
|
|
shell /usr/bin/objdump --section-headers /modules/vinum.ko | grep ' .text' | awk '{print "add-symbol-file /modules/vinum.ko \$file->address+0x" $4}' > .asf
|
|
source .asf
|
|
end
|
|
document asf
|
|
Find the load address of Vinum in the kernel and add the symbols at this address
|
|
end
|