From 69e46280937526db9cf78259cd8a0a9ec62dc847 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 22 Mar 2022 13:11:40 +0100 Subject: [PATCH] x86/build: also handle .comment.* in linker script MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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é --- xen/arch/x86/xen.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.2