build: fix section-renaming of libfdt and libelf
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 27 Feb 2020 14:47:23 +0000 (15:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Feb 2020 14:47:23 +0000 (15:47 +0100)
commit11cc71f463b907b8dbbffbd835473f1c1ba26f1f
tree878044e8c79f8c6135e1f98537eb779fb8f07f80
parent3934b0a7567dc5c3734fa2bfc5b92a34a574cac7
build: fix section-renaming of libfdt and libelf

In common/libelf/Makefile, when SECTIONS gets defined
SPECIAL_DATA_SECTIONS doesn't exist, so only "text data" sections are
been renamed. This was different before 48115d14743e ("Move more
kernel decompression bits to .init.* sections"). By introducing the
same renaming mechanism the to libfdt (9ba1f198f61e ["xen/libfdt: Put
all libfdt in init"]), the issue was extended to there as well.

Move SPECIAL_DATA_SECTIONS in Rules.mk before including "Makefile" to
fix this.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/Rules.mk