BPATCH(1) BSD Reference Manual BPATCH(1)
NAME
bpatch - patches a.out files, including kernel and /dev/kmem
SYNOPSIS
bpatch [-bcwls] [-r] [-N namelist] [-M memfile] location [value]
DESCRIPTION
The bpatch utility is a quick hack that allows patching of values in
a.out(5) format files, including kernel or /dev/kmem for the running ker-
nel. location is a symbol name, or a decimal/hex/octal number. value is
the value to be stored, according to the type options.
The type options specify the value type to be written:
-b Specify value type as 'byte as number'
-c Specify value type as 'byte as character'
-w Specify value type as 'short/u_short'
-l Specify value type as 'long/u_long'
-s Specify value type as 'string'
The -r option indicates that the running kernel is being patched rather
than a.out.
The -N namelist option can be used to specify the name of the kernel
namelist file to be used. The -M memfile option can be used to specify
the name of the memory file to be used, this implies -r.
AUTHOR
Mike Karels, BSDI
BSDI BSD/386 March 27, 1993 1