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
32
32
bss_size = . - bss_start;
33
33
}
34
34
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. */
36
36
.stack (NOLOAD) : ALIGN (4K) { . += 64K; }
37
37
stack_start = .;
38
38
/* 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;
67
67
type Name = [ u8 ; 4 ] ;
68
68
type Desc = unsafe extern "C" fn ( ) ;
69
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.
70
72
#[ repr( C , packed( 4 ) ) ]
71
73
struct Note {
72
74
name_size : u32 ,
You can’t perform that action at this time.
0 commit comments