Messages in this thread Patch in this message | | | From | Petr Tesarik <> | Subject | [PATCH v3 9/9] x86: remove .gnu.warning* sections from the vDSO | Date | Tue, 16 Jun 2009 14:55:29 +0200 |
| |
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@suse.cz> --- 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
| |