[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] x86/build: also handle .comment.* in linker script


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 21 Mar 2022 12:47:27 +0100
  • 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/C9gNQQ/WXeRHWoD/77+2fPAAXlkvuCCam48qLYjwoc=; b=NP6sn1jaRoCY6kOufIeXs3bWoZ32xCLBHDO3otMJwhHO9wEDOU8rPZbfJWHS5IRVINdLIOFGwDDjBV9r3vk3dmFoClLWHhsKk4OOGFctXWWVpJ8tY1KGmbZUp5bXdYwyv2zAAyrxC/XoHyUpyJ8CUZ+CPK0YV/Gbq5DTeZMQOPyyInzXF2L3PSky4hv5bI71rBEveuFjgrA4C0Cl71ovmbOMMg9nWVHNdkEwiDQ7XnQRTR8mrQnURUG8vIQ1UloJgOoqH6Atnfb3jwPjbDRJT+uf3tsZNQcdAcSVFtCioBxXoIDS3fZ5AwUyqmTO9nIrGemjisN0+EZZRmcPjHobkA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z2GVPNzvrG64AvvIZ/uMB5rTb6yHk/YCkRftcE7tzKZLsbEOFkznbpuYPaeDTSZKxt0jckixIbTwKPJ61/nTEEqfFFj56xW3Yt/XUG/cp6JCSFoUXZdQLnwrxXMsggfLJ+cjHc65RPyj/mLNxRZwNrxf4kRhAcM78LFmFwuEtj0lz8eNAhqGxMMNr7xzADNcCn6P8MXpb88KkxcxEPUvm5L7Kz2Yhh+9lI1dRB3U4Zc5ZgBgPHTywZ+RmvfYMgeUtpX0ljySH8dSBc6o/oWvZK868YecnOxC6qVamgsXNgMxqZu8Cf4jQcjk9wyVL5pYSEWG4YUtf5Aw75VTkJIdog==
  • Authentication-results: dkim=none (message not signed) header.d=none;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, 21 Mar 2022 11:47:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Oldish SUSE compilers generate .comment.SUSE.OPTS sections. Just like we
already discard such for xen.efi, fold them into .comment for xen-syms.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
Just like for .comment itself I also wouldn't mind discarding these also
for the non-EFI case.

--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -454,7 +454,7 @@ SECTIONS
   .stab.exclstr 0 : { *(.stab.exclstr) }
   .stab.index 0 : { *(.stab.index) }
   .stab.indexstr 0 : { *(.stab.indexstr) }
-  .comment 0 : { *(.comment) }
+  .comment 0 : { *(.comment) *(.comment.*) }
   /*
    * LLVM ld also wants .symtab, .strtab, and .shstrtab placed. These look to
    * be benign to GNU ld, so we can have them here unconditionally.




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.