Commit 26f5ef2e authored by H. Peter Anvin's avatar H. Peter Anvin

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: default avatarH. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/n/tip-psizrnant8x3nrhbgvq2vekr@git.kernel.org
parent 645a387e
...@@ -62,6 +62,11 @@ SECTIONS ...@@ -62,6 +62,11 @@ SECTIONS
. = ALIGN(0x100); . = ALIGN(0x100);
.text : { *(.text*) } :text =0x90909090 .text : { *(.text*) } :text =0x90909090
/DISCARD/ : {
*(.discard)
*(.discard.*)
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment