]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/ArmSoftFloatLib: disable LTO build for GCC
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 4 Aug 2016 14:32:16 +0000 (16:32 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 5 Aug 2016 14:32:35 +0000 (16:32 +0200)
Building ArmSoftFloatLib with LTO results in errors like

  .../bin/ld: softfloat.obj: plugin needed to handle lto object
  .../bin/ld: __aeabi_dcmpge.obj: plugin needed to handle lto object
  .../bin/ld: __aeabi_dcmplt.obj: plugin needed to handle lto object
  .../bin/ld: internal error ../../ld/ldlang.c 6299

This library is only linked by OpensslLib at the moment, and only
marginally used at runtime, so just disable LTO for it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf

index f090b3f288ce8f9ae0d73bcff6eff259d12a5f5d..3c76381b25dc9a57657350a1b1783c947825c14d 100644 (file)
@@ -48,7 +48,7 @@
   MdePkg/MdePkg.dec\r
 \r
 [BuildOptions]\r
-  GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare\r
+  GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare -fno-lto\r
   *_GCC46_*_CC_FLAGS = -fno-tree-vrp\r
   *_GCC47_*_CC_FLAGS = -fno-tree-vrp\r
   RVCT:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC\r