mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
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>
This commit is contained in:
parent
0ecdcb6142
commit
f037af6ecb
@ -78,6 +78,7 @@
|
|||||||
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
!endif
|
!endif
|
||||||
|
RELEASE_*_*_GENFW_FLAGS = --zero
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable deprecated APIs.
|
# Disable deprecated APIs.
|
||||||
|
@ -76,6 +76,7 @@
|
|||||||
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
!endif
|
!endif
|
||||||
|
RELEASE_*_*_GENFW_FLAGS = --zero
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable deprecated APIs.
|
# Disable deprecated APIs.
|
||||||
|
@ -80,6 +80,7 @@
|
|||||||
!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
|
!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
|
||||||
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
|
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
|
||||||
!endif
|
!endif
|
||||||
|
RELEASE_*_*_GENFW_FLAGS = --zero
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable deprecated APIs.
|
# Disable deprecated APIs.
|
||||||
|
@ -84,6 +84,7 @@
|
|||||||
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
!endif
|
!endif
|
||||||
|
RELEASE_*_*_GENFW_FLAGS = --zero
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable deprecated APIs.
|
# Disable deprecated APIs.
|
||||||
|
@ -84,6 +84,7 @@
|
|||||||
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
!endif
|
!endif
|
||||||
|
RELEASE_*_*_GENFW_FLAGS = --zero
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable deprecated APIs.
|
# Disable deprecated APIs.
|
||||||
|
@ -74,6 +74,7 @@
|
|||||||
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||||
!endif
|
!endif
|
||||||
|
RELEASE_*_*_GENFW_FLAGS = --zero
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable deprecated APIs.
|
# Disable deprecated APIs.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user