]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld/PE: respect --enable-reloc-section even when .reloc isn't created by default
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Oct 2025 14:00:04 +0000 (16:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Oct 2025 14:00:04 +0000 (16:00 +0200)
commit2817be508d422a9e534d5cc03077be501794148b
tree85a51f7810f2498961cf7107ebd91604c400b049
parentf72471128d1a1cb6e84b2cb04f42e54fcb1bb405
ld/PE: respect --enable-reloc-section even when .reloc isn't created by default

Even when !DLL_SUPPORT, an executable may still want to have base
relocations created. Avoid doing so by default, though, to not alter
prior behavior.

With this, an xfail can (and actually should) go away (or else we end up
with an XPASS).
ld/emultempl/pe.em
ld/emultempl/pep.em
ld/pe-dll.c
ld/testsuite/ld-pe/reloc.d