-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set ImageBase to 0 and Subsystem to EFI Boot Services in config.toml (#…
…356) Currently sets the ImageBase in the PE/COFF header to `0` as expected for UEFI images. The cargo config file will be synced to Rust enabled repos to apply the linker flags regardless of whether the Rust code is compiled directly or through the firmware build system. --------- Signed-off-by: Michael Kubacki <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[target.x86_64-unknown-uefi] | ||
rustflags = [ | ||
"-C", "link-arg=/base:0x0", | ||
"-C", "link-arg=/subsystem:efi_boot_service_driver", | ||
] | ||
|
||
[target.i686-unknown-uefi] | ||
rustflags = [ | ||
"-C", "link-arg=/base:0x0", | ||
"-C", "link-arg=/subsystem:efi_boot_service_driver", | ||
] | ||
|
||
[target.aarch64-unknown-uefi] | ||
rustflags = [ | ||
"-C", "link-arg=/base:0x0", | ||
"-C", "link-arg=/subsystem:efi_boot_service_driver", | ||
] |