ron minnich wrote:
Stefan, one thing I don't understand, why does removing elfboot make it so we can't unpack LAR?
Because the LAR header information is lost, things like the entry point.
You unpack it, repack it, and the segments become ordinary files with their lar headers containing bogus information.
So either we recreate an ELF file on unpack, or we dump the metadata to a MANIFEST file.
Or we forget about lars having the feature to be unpacked. Not sure that its ever needed, except when you want to migrate a payload from one image to another one.
Stefan.