File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ SECTIONS
3232 bss_size = . - bss_start;
3333 }
3434
35- /* Our stack grows down and is page-algined . TODO: Add stack guard pages. */
35+ /* Our stack grows down and is page-aligned . TODO: Add stack guard pages. */
3636 .stack (NOLOAD) : ALIGN (4K) { . += 64K; }
3737 stack_start = .;
3838 /* ram32.s only maps the first 2 MiB, and that must include the stack. */
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ const XEN_ELFNOTE_PHYS32_ENTRY: u32 = 18;
6767type Name = [ u8 ; 4 ] ;
6868type Desc = unsafe extern "C" fn ( ) ;
6969
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.
7072#[ repr( C , packed( 4 ) ) ]
7173struct Note {
7274 name_size : u32 ,
You can’t perform that action at this time.
0 commit comments