Просмотр исходного кода

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
H. Peter Anvin 11 лет назад
Родитель
Сommit
26f5ef2e3c
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      arch/x86/vdso/vdso-layout.lds.S

+ 5 - 0
arch/x86/vdso/vdso-layout.lds.S

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