I'm not a lawyer but this reminds me of how game mods are shared for old games. They are shared at patch files to avoid sharing the copyrighted original binary/rom file.
My understanding is that use a patch file as long as your patch doesn't include any copyrighted material it is fair to share.
A patch file does not necessarily have any of the original code, just the location info and the new value.