From: Petr Tesarik <ptesarik@suse.cz>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
Andi Kleen <andi@firstfloor.org>,
Roland McGrath <roland@redhat.com>,
Petr Tesarik <ptesarik@suse.cz>
Subject: [PATCH 8/8] x86: remove unneeded section from the vDSO
Date: Fri, 12 Jun 2009 15:25:42 +0200 [thread overview]
Message-ID: <5e9e5ea6462821a4eaea334c357cdeafcfe13612.1244812577.git.ptesarik@suse.cz> (raw)
In-Reply-To: <cover.1244812577.git.ptesarik@suse.cz>
Some standard sections are not useful in the resulting binary.
.gnu.warning.* is only interesting for the linker.
.note.* may be discarded, except:
.note.Linux which contains the Linux version
.note.gnu.build-id which may be useful for identifying
the vDSO
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
---
arch/x86/vdso/vdso-layout.lds.S | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/arch/x86/vdso/vdso-layout.lds.S b/arch/x86/vdso/vdso-layout.lds.S
index ea9ef58..93e0b40 100644
--- a/arch/x86/vdso/vdso-layout.lds.S
+++ b/arch/x86/vdso/vdso-layout.lds.S
@@ -31,7 +31,8 @@ SECTIONS
}
.note : {
- *(.note.*)
+ *(.note.Linux)
+ *(.note.gnu.build-id)
} :text :note
.eh_frame_hdr : {
@@ -98,6 +99,12 @@ SECTIONS
*(.altinstructions)
*(.altinstr_replacement)
}
+
+ /* These sections are not useful to user-space */
+ /DISCARD/ : {
+ *(.gnu.warning.*)
+ *(.note.*)
+ }
}
/* This assert is triggered if the linker finds a section in one of its
--
1.6.0.2
prev parent reply other threads:[~2009-06-12 13:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-12 13:25 [PATCH 0/8] clean up vdso-layout.lds.S Petr Tesarik
2009-06-12 13:25 ` [PATCH 1/8] x86: Adjust the coding style of vdso-layout.lds.S Petr Tesarik
2009-06-12 13:25 ` [PATCH 2/8] x86: Remove .sdata from the vDSO linker script Petr Tesarik
2009-06-12 13:25 ` [PATCH 3/8] x86: Remove .dynbss " Petr Tesarik
2009-06-12 13:29 ` Petr Tesarik
2009-06-12 13:25 ` [PATCH 4/8] x86: add .broken section to " Petr Tesarik
2009-06-12 13:25 ` [PATCH 5/8] x86: mark altinstr-related sections in vDSO as broken Petr Tesarik
2009-06-12 13:25 ` [PATCH 6/8] x86: mark some standard sections as broken in a vDSO Petr Tesarik
2009-06-12 13:25 ` [PATCH 7/8] x86: check the size of GOT in vDSO Petr Tesarik
2009-06-12 13:25 ` Petr Tesarik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5e9e5ea6462821a4eaea334c357cdeafcfe13612.1244812577.git.ptesarik@suse.cz \
--to=ptesarik@suse.cz \
--cc=andi@firstfloor.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=roland@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®