specify the size of the data to be modified or examined.
is for 8bit
is for 16bit
is for 32bit
is for 64bit
The binfile is scanned in search of the symbol symname (specified with the -s flag.) If the symbol is found the current data and address are printed.
Next if the -r flag has been given, the current data is replaced with that of value.
If the second form is used the address addr specified with the -a flag is used as a direct address into the data section of the binary and no symbol search is performed.
flag specifies an offset in
units from the given locator
to perform its described actions.
This might be useful to patch a member of array or structure.
The -T flag is used to specify the starting address of a.out binary text segment. Ignored for other binary executable formats.
The binpatch command doesn't check if specified address or symbol is a patchable variable and it might corrupt the specified executable binary.