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/LibC.inf | 1 + 1 file changed, 1 insertion(+) (limited to 'StdLib/LibC/LibC.inf') diff --git a/StdLib/LibC/LibC.inf b/StdLib/LibC/LibC.inf index f136306485..6039bb81c7 100644 --- a/StdLib/LibC/LibC.inf +++ b/StdLib/LibC/LibC.inf @@ -120,3 +120,4 @@ # [BuildOptions] MSFT:*_*_IA32_CC_FLAGS = /GL- + GCC:*_*_ARM_CC_FLAGS = -fno-lto -- cgit v1.2.3