]> xenbits.xensource.com Git - people/tklengyel/xen.git/commit
x86/EFI: suppress GNU ld 2.36'es creation of base relocs
authorJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2021 14:11:58 +0000 (15:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2021 14:11:58 +0000 (15:11 +0100)
commit76cbb9c3f4dd9ab6aa44eeacab84fb88b2e8bfc1
tree69b7861a2d1cfc1626fa6dea14cfbb358152d0e3
parentcda16c1bb223bfaa83022d97d87da7909d604896
x86/EFI: suppress GNU ld 2.36'es creation of base relocs

All of the sudden ld creates base relocations itself, for PE
executables - as a result we now have two of them for every entity to
be relocated. While we will likely want to use this down the road, it
doesn't work quite right yet in corner cases, so rather than suppressing
our own way of creating the relocations we need to tell ld to avoid
doing so.

Probe whether --disable-reloc-section (which was introduced by the same
commit making relocation generation the default) is recognized by ld's PE
emulation, and use the option if so. (To limit redundancy, move the first
part of setting EFI_LDFLAGS earlier, and use it already while probing.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/Makefile