From: Jan Beulich Date: Tue, 22 Mar 2022 12:11:40 +0000 (+0100) Subject: x86/build: also handle .comment.* in linker script X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~813 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=69e46280937526db9cf78259cd8a0a9ec62dc847;p=xen.git x86/build: also handle .comment.* in linker script 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 Reviewed-by: Roger Pau Monné --- diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index db2aaf7781..3f9f633f55 100644 --- 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.