We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bffe131 commit 871f6b1Copy full SHA for 871f6b1
layout.ld
@@ -32,7 +32,7 @@ SECTIONS
32
bss_size = . - bss_start;
33
}
34
35
- /* Our stack grows down and is page-algined. TODO: Add stack guard pages. */
+ /* Our stack grows down and is page-aligned. TODO: Add stack guard pages. */
36
.stack (NOLOAD) : ALIGN(4K) { . += 64K; }
37
stack_start = .;
38
/* ram32.s only maps the first 2 MiB, and that must include the stack. */
src/pvh.rs
@@ -67,6 +67,8 @@ const XEN_ELFNOTE_PHYS32_ENTRY: u32 = 18;
67
type Name = [u8; 4];
68
type Desc = unsafe extern "C" fn();
69
70
+// We make sure our ELF Note has an alignment of 4 for maximum compatibility.
71
+// Some software (QEMU) calculates padding incorectly if alignment != 4.
72
#[repr(C, packed(4))]
73
struct Note {
74
name_size: u32,
0 commit comments