pub fn detect_format(data: &[u8]) -> Option<Format>
loader
Attempts to detect the format of an input file (using magic bytes), whether it is an ELF kernel or an image.