]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
x86/build: also handle .comment.* in linker script
authorJan Beulich <jbeulich@suse.com>
Tue, 22 Mar 2022 12:11:40 +0000 (13:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Mar 2022 12:11:40 +0000 (13:11 +0100)
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@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/xen.lds.S

index db2aaf7781ed0315d8c4b1a097fb598193166a1c..3f9f633f55724a95c21250f317959317dffa37c4 100644 (file)
@@ -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.