xen: add "lto=y" option to build Xen with link-time optimizations.
authorTim Deegan <Tim.Deegan@citrix.com>
Mon, 7 Mar 2011 11:34:09 +0000 (11:34 +0000)
committerTim Deegan <Tim.Deegan@citrix.com>
Mon, 7 Mar 2011 11:34:09 +0000 (11:34 +0000)
commite4cdd74f02eaeea96348dc51534eff8e03d87697
tree7e6947edf542bd1c6e87205fe7e7cec3d0388fa9
parent436323c065f0ace4f469f5854f43423702a5082a
xen: add "lto=y" option to build Xen with link-time optimizations.

This involves gathering object files from .asm (which will be binary)
and object files from .c (which will be in LTO format) separately
until the final link.

Only tested for x86_64 Xen builds using Clang/LLVM bitcode; it should be
possible to do the same with newer GCCs and GIMPLE.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
13 files changed:
config/StdGNU.mk
xen/Makefile
xen/Rules.mk
xen/arch/x86/Makefile
xen/arch/x86/acpi/Makefile
xen/arch/x86/boot/Makefile
xen/arch/x86/boot/build32.mk
xen/arch/x86/hvm/svm/Makefile
xen/arch/x86/hvm/vmx/Makefile
xen/arch/x86/x86_32/Makefile
xen/arch/x86/x86_64/Makefile
xen/arch/x86/x86_64/compat/Makefile
xen/common/libelf/Makefile