From: Tim Abbott <tabbott@ksplice.com>
To: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Cc: Sam Ravnborg <sam@ravnborg.org>,
devel@ksplice.com, Denys Vlasenko <vda.linux@googlemail.com>,
Tim Abbott <tabbott@ksplice.com>
Subject: [PATCH 0/2] Macros for section name cleanup
Date: Tue, 23 Jun 2009 19:57:30 -0400 [thread overview]
Message-ID: <1245801452-13222-1-git-send-email-tabbott@ksplice.com> (raw)
These are the remaining changes from my previous macros for section
name cleanup patch series that were not subsumed by Sam Ravnborg's
recent update to vmlinux.lds.h (commit
7923f90fffa8746f6457d4eea2109fd3d6414189).
I've dropped the patch reworking __read_mostly to be a generic thing
in include/linux/cache.h. I think the consensus on that patch was
that we should first make all the architectures support
.data.read_mostly in their linker scripts and then do a single patch
removing all the architecture implementations in favor of a single one
in include/linux/cache.h.
The long-term goal here is to add support for building the kernel with
-ffunction-sections -fdata-sections. This requires renaming all the
magic section names in the kernel of the form .text.foo, .data.foo,
.bss.foo, and .rodata.foo to not have collisions with sections
generated for code like:
static int nosave = 0; /* -fdata-sections places in .data.nosave */
static void head(); /* -ffunction-sections places in .text.head */
Sam Ravnborg proposed that rather than just renaming all the sections
outright, we should start by first getting more control over the
section names used in the kernel so that we can later rename sections
without touching too many files. This patch series provides the
architecture-independent macros needed for that cleanup.
Tim Abbott (2):
Add new macros for page-aligned data and bss sections.
Add new __init_task_data macro to be used in arch init_task.c files.
include/linux/init_task.h | 3 +++
include/linux/linkage.h | 9 +++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
next reply other threads:[~2009-06-24 0:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 23:57 Tim Abbott [this message]
2009-06-23 23:59 ` [PATCH 1/2] Add new macros for page-aligned data and bss sections Tim Abbott
2009-06-23 23:59 ` [PATCH 2/2] Add new __init_task_data macro to be used in arch init_task.c files Tim Abbott
2009-06-26 22:08 ` [PATCH 0/2] Macros for section name cleanup Sam Ravnborg
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=1245801452-13222-1-git-send-email-tabbott@ksplice.com \
--to=tabbott@ksplice.com \
--cc=devel@ksplice.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=vda.linux@googlemail.com \
/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®