* @param os
* @throws BuildException
*/
protected void copyKernel(NativeStream os) throws BuildException {
try {
Elf elf = Elf.newFromFile(getKernelFile().getCanonicalPath());
// elf.print();
new ElfLinker((X86BinaryAssembler) os).loadElfObject(elf);
} catch (IOException ex) {
throw new BuildException(ex);
}