diff options
author | Ross Burton <ross@burtonini.com> | 2021-03-24 11:58:19 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-03-24 22:07:32 +0000 |
commit | f037af6ecbc3b55042c998a59ed8df8548e64b99 (patch) | |
tree | c4e5707da1b5d964124af85fe9d053ed132ae0f1 /OvmfPkg/OvmfXen.dsc | |
parent | 0ecdcb6142037dd1cdd08660a2349960bcf0270a (diff) | |
download | edk2-f037af6ecbc3b55042c998a59ed8df8548e64b99.zip edk2-f037af6ecbc3b55042c998a59ed8df8548e64b99.tar.gz edk2-f037af6ecbc3b55042c998a59ed8df8548e64b99.tar.bz2 |
OvmfPkg: strip build paths in release builds
GenFw will embed a NB10 section which contains the path to the input file,
which means the output files have build paths embedded in them. To reduce
information leakage and ensure reproducible builds, pass --zero in release
builds to remove this information.
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3256
Signed-off-by: Ross Burton <ross.burton@arm.com>
Message-Id: <20210324115819.605436-1-ross.burton@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/OvmfXen.dsc')
-rw-r--r-- | OvmfPkg/OvmfXen.dsc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc index 5070294..fcaa35a 100644 --- a/OvmfPkg/OvmfXen.dsc +++ b/OvmfPkg/OvmfXen.dsc @@ -74,6 +74,7 @@ GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
!endif
+ RELEASE_*_*_GENFW_FLAGS = --zero
#
# Disable deprecated APIs.
|