Hi Jan,

On 23/10/2020 11:17, Jan Beulich wrote:
In order to (subsequently) drop odd things like CONFIG_NEEDS_LIST_SORT
just to avoid bloating binaries when only some arch-es and/or
configurations need generic library routines, combine objects under lib/
into an archive, which the linker then can pick the necessary objects
out of.

Note that we can't use thin archives just yet, until we've raised the
minimum required binutils version suitably.

Signed-off-by: Jan Beulich <jbeul...@suse.com>
---
  xen/Rules.mk          | 33 +++++++++++++++++++++++++++------
  xen/arch/arm/Makefile |  6 +++---
  xen/arch/x86/Makefile |  8 ++++----
  xen/lib/Makefile      |  3 ++-
  4 files changed, 36 insertions(+), 14 deletions(-)

I can't build Xen on Arm after this patch:

  AR      lib.a
aarch64-linux-gnu-ld    -EL  -r -o built_in.o
aarch64-linux-gnu-ld: no input files
/home/ANT.AMAZON.COM/jgrall/works/oss/xen/xen/Rules.mk:154: recipe for target 'built_in.o' failed

Cheers,

--
Julien Grall

Reply via email to