]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86, vdso: Actually discard the .discard sections
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 25 Mar 2014 20:41:36 +0000 (13:41 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 25 Mar 2014 20:41:36 +0000 (13:41 -0700)
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 <stefani@seibold.net>
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/n/tip-psizrnant8x3nrhbgvq2vekr@git.kernel.org
arch/x86/vdso/vdso-layout.lds.S

index c6d0e1bf27a4bd5f94695fc55e5a6d4ca86a8412..2e263f367b139c30da34b9e346007e206132955e 100644 (file)
@@ -62,6 +62,11 @@ SECTIONS
        . = ALIGN(0x100);
 
        .text           : { *(.text*) }                 :text   =0x90909090
+
+       /DISCARD/ : {
+               *(.discard)
+               *(.discard.*)
+       }
 }
 
 /*