[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] x86: move .altinstr_replacement past _einittext
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 14 Jun 2021 15:53:45 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MmjRk9izpB0nnTeZQGZQ903HcGexrQTGFs+AxEdyMUI=; b=eBrfUReXSXga97oPAC20xscm6wRTzsxMhfz8xbOYe7FOSE/AGm1u+PrA4RSLGaWEdI57a+tfBj4CzTJhB2pBnwwjHrgsB4Bkn+PcTTMPD8kxK+SFUlZl3cw3ujtaQQG55rIBw4wiY88baVrOE65xlgz/oFy9fSG0Q8maWMcZZGAHb5DmlaIwEKnZSIo3ylsWy72mzA82YgRtQujV96MG/+pn1cp0bhjBRV35ovZPG/yhJ8Gell0PbTdITGj6zYFOn0+9E8gtg0DmKFb9XOfsdq0YHN8Vl5FB5wqoQLTXN20qJIMdrBLXQZaGb0jzYu+Mv0woMCzH6QS7ZVIJkzD40A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CAGgDoUn0zghCFbLNl6UJsUL2z2hFQRwlaClh85kpEdHleFJzzaFfoHfLUCK+qTYRcFML7jDyqLfgCvG3Gn5sOQiAZ5iWcr1LQN3Q4tTKMegFVLlEfofHdBW6e7nB9cj9+V96FwLYOfzM9LThFy7BVN10GTz/Y5urwlTXLGEE7d5rnazUaogbw9kOH2TgoHFTR+0IhOrJgVhXPsU1ZvzsdovA6Xl614/VXBeUXTX6lFzCLWI7FVQ1R5kwgBKagAgffg7n9HCZcig/cGJtPykUUjRiZzjlwh1VLGdTijVNhPuVj9zObVvBUxKUMrD44GZoMyjiYpidFdcnuE0/HPPJw==
- Authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Mon, 14 Jun 2021 13:53:56 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
This section's contents do not represent part of actual hypervisor text,
so shouldn't be included in what is_kernel_inittext() or (while still
booting) is_active_kernel_text() report "true" for. Keep them in
.init.text though, as there's no real reason to have a separate section
for this in the final binary.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -185,13 +185,13 @@ SECTIONS
#endif
_sinittext = .;
*(.init.text)
+ _einittext = .;
/*
* Here are the replacement instructions. The linker sticks them
* as binary blobs. The .altinstructions has enough data to get
* the address and the length of them to patch the kernel safely.
*/
*(.altinstr_replacement)
- _einittext = .;
#ifdef EFI /* EFI wants to merge all of .init.* ELF doesn't. */
. = ALIGN(SMP_CACHE_BYTES);
|