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/OvmfPkgIa32.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/OvmfPkgIa32.dsc')
-rw-r--r-- | OvmfPkg/OvmfPkgIa32.dsc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index 1eaf3e9..93c2099 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -80,6 +80,7 @@ !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
!endif
+ RELEASE_*_*_GENFW_FLAGS = --zero
#
# Disable deprecated APIs.
|