mirror of https://github.com/acidanthera/audk.git
StdLib/LibC: avoid LTO code for compiler intrinsics
The softfloat routines and some other routines supplied by LibC will satisfy references to compiler intrinsics that are emitted by the compiler backend, which under LTO means that the link-time code generation may emit references to symbols that have been optimized away already. Work around this by building the ARM and AARCH64 versions of LibC and the softfloat library without LTO. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Michael Zimmermann <sigmaepsilon92@gmail.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
parent
0f73cca02b
commit
78d706e235
|
@ -120,3 +120,4 @@
|
|||
#
|
||||
[BuildOptions]
|
||||
MSFT:*_*_IA32_CC_FLAGS = /GL-
|
||||
GCC:*_*_ARM_CC_FLAGS = -fno-lto
|
||||
|
|
|
@ -71,4 +71,4 @@
|
|||
# Nasty things could happen if you do.
|
||||
|
||||
[BuildOptions]
|
||||
GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare -fno-tree-vrp
|
||||
GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare -fno-tree-vrp -fno-lto
|
||||
|
|
Loading…
Reference in New Issue