From 8bba5b07f93abbe5a32e73ac0f201b59edc737b1 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 12 Aug 2025 21:53:19 -0600 Subject: [PATCH] Use default alignment Use default file (0x200) and section (0x1000) alignment. Fixes the following edk2 warning: !!!!!!!! Image Section Alignment(0x20) does not match Required Alignment (0x1000) !!!!!!!! Signed-off-by: Tim Crawford --- build.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/build.rs b/build.rs index 6077d90..46b35fe 100644 --- a/build.rs +++ b/build.rs @@ -9,8 +9,6 @@ fn main() { println!("cargo::rustc-link-arg=/stack:0,0"); println!("cargo::rustc-link-arg=/dll"); println!("cargo::rustc-link-arg=/base:0"); - println!("cargo::rustc-link-arg=/align:32"); - println!("cargo::rustc-link-arg=/filealign:32"); println!("cargo::rustc-link-arg=/subsystem:efi_boot_service_driver"); } }