diff --git a/src/boot_loader_name.rs b/src/boot_loader_name.rs index 7393e5bf..a83f6abc 100644 --- a/src/boot_loader_name.rs +++ b/src/boot_loader_name.rs @@ -1,6 +1,6 @@ #[derive(Debug)] -#[repr(packed)] // repr(C) would add unwanted padding before first_section +#[repr(C, packed)] // only repr(C) would add unwanted padding before first_section pub struct BootLoaderNameTag { typ: u32, size: u32, diff --git a/src/command_line.rs b/src/command_line.rs index 86d0a5c0..fea57a02 100644 --- a/src/command_line.rs +++ b/src/command_line.rs @@ -1,6 +1,6 @@ #[derive(Debug)] -#[repr(packed)] // repr(C) would add unwanted padding before first_section +#[repr(C, packed)] // only repr(C) would add unwanted padding before first_section pub struct CommandLineTag { typ: u32, size: u32,