Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

nm(1)

BP(8)  —  UNIX Programmer’s Manual

NAME

bp − binary patcher

SYNOPSIS

/etc/bp [ −qdh ] [ −s symfile ] filename symbol[+offset] [ new_value ]

DESCRIPTION

Bp is a binary file patch program.  When new_value is omitted, filename will be opened readonly and the value at symbol displayed.  When new_value is specified, filename is opened for reading and writing, the old value at symbol read, new_value is written and both new and old values are displayed. 

The −q option makes bp quiet about displaying anything.  The −d and −h options set the display radix to decimal and hex respectively.  New_value and offset are assumed to be decimal numbers unless they have a leading ’0x’ which is recognized as indicating a hex number. 

Following the −s option is the name of a file to look up the value of symbol.  Symfile can be identical to filename.  A leading underscore will be optionally added to symbol when looking for a match. 

It is possible to specify an absolute address by omiting symbol and just specifying offset. 

If both symbol and offset are used, there must be no spaces between them (only a ’+’), otherwise offset will appear to be a new_value, and symbol will be modified. 

SEE ALSO

nm(1)

BUGS

Bp only reads and writes in 4 byte quantities. 

The symbol matching can be fooled into matching the wrong symbol if you specify a symbol without a leading underbar and two symbols exist such that one has a leading underbar and the other does not. 

DYNIX

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026