From 78d706e23512435c8166afe88600c4de493e0e68 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Mon, 8 Aug 2016 12:46:50 +0200 Subject: 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 Reviewed-by: Michael Zimmermann Reviewed-by: Jaben Carsey --- StdLib/LibC/Softfloat/Softfloat.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'StdLib/LibC/Softfloat/Softfloat.inf') diff --git a/StdLib/LibC/Softfloat/Softfloat.inf b/StdLib/LibC/Softfloat/Softfloat.inf index 99763bcb57..460406c38f 100644 --- a/StdLib/LibC/Softfloat/Softfloat.inf +++ b/StdLib/LibC/Softfloat/Softfloat.inf @@ -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 -- cgit v1.2.3