[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 1/2] Do not attempt to workaround older binutils
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>
- Date: Fri, 5 Dec 2025 16:09:39 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kGlOaf4HgTML+Lqr4YUlvbgye1+iOSwZa3NuOxItXFw=; b=o5CMHw9ekp+lPZRPSwSdxQadAm8CM5M8EekShshwV+c/CVtAV9vZE6VBhdPUvhNZZoCvP60C/F1YArx8PvJb52D24KS9AiULXXQf+eGFq/SOnXoHanl1Y5obe7RNq/jvrZ3R84juttji+s01Tn+dxvTI6eFr/2s5dmMDEv5lEYhyqNFunWRnAyP8c3ru6VUCbySOyKK4N/i0u4H6G2mwrq7TXWG1xaz0Fr+BBwvhzuV/+f9TWZoPMRyHxVvbhC7qUqkqupq1+0W4leOimW1lC5yzmzdll4mt0x5IFgMcpJjUWPtspqggZmMRb7LMEimmHb2kIVn5xg/4RPcLF6nFrw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=x2AqWTzJRyGbn1bK11oGa2GKqzD8GZqqH65UNkIGsI8EbGPrH8Ye1dE/P6kVfcrd4I7zAmy1eUyPcZs6Uk9FFT6wW7CUe3rtyDCw0ePx6dBv9ct2Rvk44EKDPkwS3UFEtO1kIcLJsKghqpbjCtJZIjEn/J0EHa9NE7CBPHv3JKu6aMIzGzcP/L+stfHAIjMpEvNQlBoLXXgy4QBzhpzytdpdaTEu+hg6s8Ii9RdjVunfYw82xNIjshUqUZc7zvqeY680BIwXuxIhvVdjr5r9y7v7ONzrCoN9l70db81xIq9spdQdrc8Dk6IviSm6nFhtCqDZ8M4sEwjgc6/jnypnPQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Frediano Ziglio <freddy77@xxxxxxxxx>, Demi Marie Obenour <demiobenour@xxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
- Delivery-date: Fri, 05 Dec 2025 16:10:01 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
From: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>
Older binutils versions do not handle correctly PE files.
It looks like they could work if they don't produce debug information
but they mess the PE file in other way like putting invalid
flags in sections.
Also different tools will complain about the format (like
objdump and strip).
Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxx>
---
xen/arch/x86/arch.mk | 7 -------
1 file changed, 7 deletions(-)
diff --git a/xen/arch/x86/arch.mk b/xen/arch/x86/arch.mk
index 16368a498b..10eb8e4292 100644
--- a/xen/arch/x86/arch.mk
+++ b/xen/arch/x86/arch.mk
@@ -88,13 +88,6 @@ EFI_LDFLAGS := $(patsubst -m%,-mi386pep,$(LDFLAGS))
--subsystem=10 --enable-long
LD_PE_check_cmd = $(call ld-option,$(EFI_LDFLAGS) --image-base=0x100000000 -o
$(efi-check).efi $(efi-check).o)
XEN_BUILD_PE := $(LD_PE_check_cmd)
-# If the above failed, it may be merely because of the linker not dealing well
-# with debug info. Try again with stripping it.
-ifeq ($(CONFIG_DEBUG_INFO)-$(XEN_BUILD_PE),y-n)
-EFI_LDFLAGS += --strip-debug
-XEN_BUILD_PE := $(LD_PE_check_cmd)
-endif
-
ifeq ($(XEN_BUILD_PE),y)
# Check if the linker produces fixups in PE by default
--
2.43.0
|