]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
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)
commit59ceaa0a871d0d14bd54caa8cb9ca24a5314b223
tree170ff22d36b7b823ed4c3aa7226d215f163f0326
parentafd6b28915cac422294a28033ef83727b27ce216
ArmPkg/ArmSoftFloatLib: disable LTO build for GCC

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