Because miltiple binaries might share the same exact contents, include
the filepath as part of the hash.
Signed-off-by: William Douglas <william.douglas@intel.com>
If --path was not passed previously elf-move would crash, it also was
incorrectly handling the filepath instead of the virtpath (only care
about the path after the DESTDIR for --path, makes handling easier
too).
Finally make --path override the --skip behavior so they can work
together to append new content to a file.
The first 4096 bytes were not being accounted for, resulting in any ELF
content with size <= 4096 having the same sha256.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
Add a new utility that will moving elf binaries to an alternate
location (renamed to their sha256 hash) and create a mapping file of
the binaries moved.
Signed-off-by: William Douglas <william.douglas@intel.com>