diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2014-03-25 16:41:36 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-03-25 16:41:36 -0400 |
commit | 26f5ef2e3c3c18f1dc31461ddf1db00b014edcd4 (patch) | |
tree | 18828b49781d60cc2ddf3fbd66be430582a1ac69 /arch/x86/vdso | |
parent | 645a387ecbdb4aa78c8451a66416340616134537 (diff) |
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 <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
Diffstat (limited to 'arch/x86/vdso')
-rw-r--r-- | arch/x86/vdso/vdso-layout.lds.S | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
62 | . = ALIGN(0x100); | 62 | . = ALIGN(0x100); |
63 | 63 | ||
64 | .text : { *(.text*) } :text =0x90909090 | 64 | .text : { *(.text*) } :text =0x90909090 |
65 | |||
66 | /DISCARD/ : { | ||
67 | *(.discard) | ||
68 | *(.discard.*) | ||
69 | } | ||
65 | } | 70 | } |
66 | 71 | ||
67 | /* | 72 | /* |