ZAP(1) — USER COMMANDS
NAME
zap − Apply binary zaps to an image.
USAGE
zap zap-file image-file
DESCRIPTION
zap is a utility which reads a zap file, applying the changes to the image.
A zap file contains a series of lines which are either comments or replace commands, indicating replacement bytes. A comment line is one beginning with an asterisk (∗), the entire line is taken as a comment and ignored.
Replace commands begin with the keyword REP followed by the offset of where the replacement is to begin, followed by the bytes to replace. The offsets, and the replacement bytes are specified as hexadecimal digits.
An example zap file could look like:
∗
∗ An example zap file
∗
∗ The following line indicates the 8 bytes at
∗ offset 100 hexadecimal (256 decimal) are to be replaced.
REP 100 B2FB83431858A488
∗
∗ The next line indicates that the next 8 bytes are to be
∗ replaced, because the offset is 108 (264 decimal.)
REP 108 DB581F2D03000000
There is no checking of the bytes which were previously in the image-file.
The image file is rewritten.
EXAMPLE
zap myzap prog
The input file zap file (myzap) is scanned for replacement lines, replacing the specified bytes in the image file (prog.)
FILES
zap SAS/C Cross Platform ZAP applyer
RELATED INFORMATION
sascc370(1), objdump(1), spatch(1)
COMMENT
The zap utility is normally used to update a site’s license information.
5.50 — Last change: SAS/C