[PATCH v3 9/9] x86: remove .gnu.warning* sections from the vDSO
From: Petr Tesarik
Date: Tue Jun 16 2009 - 08:55:55 EST
The .gnu.warning* sections are only processed by ld, but ld will never
explicitly link against the vDSO, so it can be discarded.
Signed-off-by: Petr Tesarik <ptesarik@xxxxxxx>
---
arch/x86/vdso/vdso-layout.lds.S | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/x86/vdso/vdso-layout.lds.S b/arch/x86/vdso/vdso-layout.lds.S
index 0bef418..d199f25 100644
--- a/arch/x86/vdso/vdso-layout.lds.S
+++ b/arch/x86/vdso/vdso-layout.lds.S
@@ -112,6 +112,12 @@ SECTIONS
*(.altinstructions)
*(.altinstr_replacement)
}
+
+ /* These sections are not useful to user-space */
+ /DISCARD/ : {
+ *(.gnu.warning*)
+ *(.discard)
+ }
}
/*
--
1.6.0.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/