Tweak test_elf.S slightly so it can be assembled and linked for either 32-bit or 64-bit x86. This makes test_elf32.bin actually functional as a guest kernel and replaces the previous version that had no corresponding source checked in. The test_elf64.bin file is changed since a few instructions were modified in the source to make it valid for both architectures. TEST=cargo test -p kernel_loader TEST=crosvm run kernel_loader/src/test_elf32.bin TEST=crosvm run kernel_loader/src/test_elf64.bin Change-Id: Iefebfaf42f8d3f56b900faec5ec9835992e5dfca Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6439485 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Takaya Saeki <takayas@chromium.org> |
||
|---|---|---|
| .. | ||
| arm64.rs | ||
| elf.rs | ||
| lib.rs | ||
| multiboot.rs | ||
| test_elf.ld | ||
| test_elf.S | ||
| test_elf32.bin | ||
| test_elf64.bin | ||