x86: avoid SORT_BY_INIT_PRIORITY with old GNU ld
authorJan Beulich <jbeulich@suse.com>
Thu, 5 May 2022 14:26:50 +0000 (16:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 May 2022 14:26:50 +0000 (16:26 +0200)
commit90ba9a2da23fbdb69c8d822f636447e8a42d1eb8
tree596c647a5da405ea9066b26befbc6472d8cfeb97
parentc1d5e4021c9d3878eab9bb1c65eb3c21ef9d5ddc
x86: avoid SORT_BY_INIT_PRIORITY with old GNU ld

Support for this construct was added in 2.22 only. Avoid the need to
introduce logic to probe for linker script capabilities by (ab)using the
probe for a command line option having appeared at about the same time.

Note that this remains x86-specific because Arm is unaffected, by
requiring GNU ld 2.24 or newer.

Fixes: 4b7fd8153ddf ("x86: fold sections in final binaries")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/arch.mk
xen/arch/x86/xen.lds.S