From: H. Peter Anvin Date: Tue, 25 Mar 2014 20:41:36 +0000 (-0700) Subject: x86, vdso: Actually discard the .discard sections X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=26f5ef2e3c3c18f1dc31461ddf1db00b014edcd4;p=linux-beck.git x86, vdso: Actually discard the .discard sections The .discard/.discard.* sections are used to generate intermediate results for the assembler (effectively "test assembly".) The output is waste and should not be retained. Cc: Stefani Seibold Cc: Andy Lutomirski Signed-off-by: H. Peter Anvin Link: http://lkml.kernel.org/n/tip-psizrnant8x3nrhbgvq2vekr@git.kernel.org --- diff --git a/arch/x86/vdso/vdso-layout.lds.S b/arch/x86/vdso/vdso-layout.lds.S index c6d0e1bf27a4..2e263f367b13 100644 --- a/arch/x86/vdso/vdso-layout.lds.S +++ b/arch/x86/vdso/vdso-layout.lds.S @@ -62,6 +62,11 @@ SECTIONS . = ALIGN(0x100); .text : { *(.text*) } :text =0x90909090 + + /DISCARD/ : { + *(.discard) + *(.discard.*) + } } /*