mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:x86/vdso] x86, vdso: Actually discard the .discard sections
@ 2014-03-25 20:45 tip-bot for H. Peter Anvin
  0 siblings, 0 replies; only message in thread
From: tip-bot for H. Peter Anvin @ 2014-03-25 20:45 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, luto, hpa, mingo, stefani, tglx, hpa

Commit-ID:  26f5ef2e3c3c18f1dc31461ddf1db00b014edcd4
Gitweb:     http://git.kernel.org/tip/26f5ef2e3c3c18f1dc31461ddf1db00b014edcd4
Author:     H. Peter Anvin <hpa@linux.intel.com>
AuthorDate: Tue, 25 Mar 2014 13:41:36 -0700
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Tue, 25 Mar 2014 13:41:36 -0700

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
---
 arch/x86/vdso/vdso-layout.lds.S | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/x86/vdso/vdso-layout.lds.S b/arch/x86/vdso/vdso-layout.lds.S
index c6d0e1b..2e263f3 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.*)
+	}
 }
 
 /*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-25 20:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-25 20:45 [tip:x86/vdso] x86, vdso: Actually discard the .discard sections tip-bot for H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®