From: Jan Beulich Date: Fri, 10 Oct 2025 14:00:04 +0000 (+0200) Subject: ld/PE: respect --enable-reloc-section even when .reloc isn't created by default X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2817be508d422a9e534d5cc03077be501794148b;p=thirdparty%2Fbinutils-gdb.git 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). --- diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index b522687c1d5..c66c75fb06d 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -228,6 +228,8 @@ fragment <