build: also check for empty .bss.* in .o -> .init.o conversion
authorJan Beulich <jbeulich@suse.com>
Thu, 27 Aug 2020 07:46:55 +0000 (09:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Aug 2020 07:46:55 +0000 (09:46 +0200)
commit8856a914bffd56c018a794c06d4abb6018aa958d
tree47b5d5ec06a07468af65effd7ba20efaddc7ee11
parent7a8d8bde9820387c3e168182b99fd9761c223fff
build: also check for empty .bss.* in .o -> .init.o conversion

We're gaining such sections, and like .text.* and .data.* they shouldn't
be present in objects subject to automatic to-init conversion. Oddly
enough for quite some time we did have an instance breaking this rule,
which gets fixed at this occasion, by breaking out the EFI boot
allocator functions into its own translation unit.

Fixes: c5b9805bc1f7 ("efi: create new early memory allocator")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/Makefile
xen/Rules.mk
xen/arch/arm/efi/Makefile
xen/arch/x86/efi/Makefile
xen/common/efi/boot.c
xen/common/efi/ebmalloc.c [new file with mode: 0644]
xen/common/efi/efi.h