From 2817be508d422a9e534d5cc03077be501794148b Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 10 Oct 2025 16:00:04 +0200 Subject: [PATCH] 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 | 8 ++++++++ ld/emultempl/pep.em | 8 ++++++++ ld/pe-dll.c | 7 +++++-- ld/testsuite/ld-pe/reloc.d | 1 - 4 files changed, 21 insertions(+), 3 deletions(-) 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 <