stub: remove nondeterminism in binary

The linker embeds a timestamp into our UEFI stub. objdump -p
reports:

Time/Date               Mon Nov 13 20:02:35 2023

With /Brepro we get the following instead:

Time/Date		d597e888	(This is a reproducible build file hash, not a timestamp)

Fixes #260
This commit is contained in:
Julian Stecklina 2023-11-14 10:31:38 +01:00
parent f8d2638436
commit 8e0d422697
1 changed files with 2 additions and 0 deletions

View File

@ -1,2 +1,4 @@
[build] [build]
target = "x86_64-unknown-uefi" target = "x86_64-unknown-uefi"
# Strip timestamps from binaries.
rustflags = ["-C", "link-args=/Brepro"]