x86/link: Don't merge .init.text and .init.data
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 11 Nov 2017 19:08:37 +0000 (19:08 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Mar 2018 12:46:48 +0000 (12:46 +0000)
commit2d9078954279e943d976ca2154c16b986dd25799
treee71818a5f75e86680404e6164e91469878c7529e
parent256386f75d50772f23a7e950b3fa0ebb32ea96b9
x86/link: Don't merge .init.text and .init.data

c/s 1308f0170c merged .init.text and .init.data, because EFI might properly
write-protect r/o sections.

However, that change makes xen-syms unusable for disassembly analysis.  In
particular, searching for indirect branches as part of the SP2/Spectre
mitigation series.

As the merging isn't necessary for ELF targets at all, make it conditional on
the EFI side of the build.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/xen.lds.S