From: Denys Vlasenko <vda.linux@googlemail.com>
To: Denys Vlasenko <vda.linux@googlemail.com>
Cc: linux-kernel@vger.kernel.org, Denys Vlasenko <vda.linux@googlemail.com>
Subject: [PATCH 10/24] Rename .data[.percpu][.xxx] to .data[..percpu][..xxx].
Date: Sat, 20 Feb 2010 01:37:12 +0100 [thread overview]
Message-ID: <1266626233-25658-2-git-send-email-vda.linux@googlemail.com> (raw)
In-Reply-To: <1266624237-22372-1-git-send-email-vda.linux@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
---
arch/ia64/include/asm/percpu.h | 2 +-
include/asm-generic/percpu.h | 10 +++++-----
include/asm-generic/vmlinux.lds.h | 24 ++++++++++++------------
include/linux/percpu-defs.h | 4 ++--
kernel/module.c | 2 +-
5 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/arch/ia64/include/asm/percpu.h b/arch/ia64/include/asm/percpu.h
index 30cf465..35d9aeb 100644
--- a/arch/ia64/include/asm/percpu.h
+++ b/arch/ia64/include/asm/percpu.h
@@ -31,7 +31,7 @@ extern void *per_cpu_init(void);
#endif /* SMP */
-#define PER_CPU_BASE_SECTION ".data.percpu"
+#define PER_CPU_BASE_SECTION ".data..percpu"
/*
* Be extremely careful when taking the address of this variable! Due to virtual
diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h
index 8087b90..1202a15 100644
--- a/include/asm-generic/percpu.h
+++ b/include/asm-generic/percpu.h
@@ -76,7 +76,7 @@ extern void setup_per_cpu_areas(void);
#ifndef PER_CPU_BASE_SECTION
#ifdef CONFIG_SMP
-#define PER_CPU_BASE_SECTION ".data.percpu"
+#define PER_CPU_BASE_SECTION ".data..percpu"
#else
#define PER_CPU_BASE_SECTION ".data"
#endif
@@ -88,15 +88,15 @@ extern void setup_per_cpu_areas(void);
#define PER_CPU_SHARED_ALIGNED_SECTION ""
#define PER_CPU_ALIGNED_SECTION ""
#else
-#define PER_CPU_SHARED_ALIGNED_SECTION ".shared_aligned"
-#define PER_CPU_ALIGNED_SECTION ".shared_aligned"
+#define PER_CPU_SHARED_ALIGNED_SECTION "..shared_aligned"
+#define PER_CPU_ALIGNED_SECTION "..shared_aligned"
#endif
-#define PER_CPU_FIRST_SECTION ".first"
+#define PER_CPU_FIRST_SECTION "..first"
#else
#define PER_CPU_SHARED_ALIGNED_SECTION ""
-#define PER_CPU_ALIGNED_SECTION ".shared_aligned"
+#define PER_CPU_ALIGNED_SECTION "..shared_aligned"
#define PER_CPU_FIRST_SECTION ""
#endif
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index 32cddc1..e304fcd 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -666,16 +666,16 @@
*/
#define PERCPU_VADDR(vaddr, phdr) \
VMLINUX_SYMBOL(__per_cpu_load) = .; \
- .data.percpu vaddr : AT(VMLINUX_SYMBOL(__per_cpu_load) \
+ .data..percpu vaddr : AT(VMLINUX_SYMBOL(__per_cpu_load) \
- LOAD_OFFSET) { \
VMLINUX_SYMBOL(__per_cpu_start) = .; \
- *(.data.percpu.first) \
- *(.data.percpu.page_aligned) \
- *(.data.percpu) \
- *(.data.percpu.shared_aligned) \
+ *(.data..percpu..first) \
+ *(.data..percpu..page_aligned) \
+ *(.data..percpu) \
+ *(.data..percpu..shared_aligned) \
VMLINUX_SYMBOL(__per_cpu_end) = .; \
} phdr \
- . = VMLINUX_SYMBOL(__per_cpu_load) + SIZEOF(.data.percpu);
+ . = VMLINUX_SYMBOL(__per_cpu_load) + SIZEOF(.data..percpu);
/**
* PERCPU - define output section for percpu area, simple version
@@ -687,18 +687,18 @@
*
* This macro is equivalent to ALIGN(align); PERCPU_VADDR( , ) except
* that __per_cpu_load is defined as a relative symbol against
- * .data.percpu which is required for relocatable x86_32
+ * .data..percpu which is required for relocatable x86_32
* configuration.
*/
#define PERCPU(align) \
. = ALIGN(align); \
- .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { \
+ .data..percpu : AT(ADDR(.data..percpu) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__per_cpu_load) = .; \
VMLINUX_SYMBOL(__per_cpu_start) = .; \
- *(.data.percpu.first) \
- *(.data.percpu.page_aligned) \
- *(.data.percpu) \
- *(.data.percpu.shared_aligned) \
+ *(.data..percpu..first) \
+ *(.data..percpu..page_aligned) \
+ *(.data..percpu) \
+ *(.data..percpu..shared_aligned) \
VMLINUX_SYMBOL(__per_cpu_end) = .; \
}
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h
index 5a5d6ce..2351191 100644
--- a/include/linux/percpu-defs.h
+++ b/include/linux/percpu-defs.h
@@ -127,11 +127,11 @@
* Declaration/definition used for per-CPU variables that must be page aligned.
*/
#define DECLARE_PER_CPU_PAGE_ALIGNED(type, name) \
- DECLARE_PER_CPU_SECTION(type, name, ".page_aligned") \
+ DECLARE_PER_CPU_SECTION(type, name, "..page_aligned") \
__aligned(PAGE_SIZE)
#define DEFINE_PER_CPU_PAGE_ALIGNED(type, name) \
- DEFINE_PER_CPU_SECTION(type, name, ".page_aligned") \
+ DEFINE_PER_CPU_SECTION(type, name, "..page_aligned") \
__aligned(PAGE_SIZE)
/*
diff --git a/kernel/module.c b/kernel/module.c
index f82386b..5daf0ab 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -397,7 +397,7 @@ static unsigned int find_pcpusec(Elf_Ehdr *hdr,
Elf_Shdr *sechdrs,
const char *secstrings)
{
- return find_sec(hdr, sechdrs, secstrings, ".data.percpu");
+ return find_sec(hdr, sechdrs, secstrings, ".data..percpu");
}
static void percpu_modcopy(void *pcpudest, const void *from, unsigned long size)
--
1.6.2.4
next prev parent reply other threads:[~2010-02-20 0:37 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-20 0:03 [PATCH 00/24] Rename kernel's magic sections for compatibility with -ffunction-sections -fdata-sections Denys Vlasenko
2010-02-20 0:03 ` [PATCH 01/24] Rename .data.cacheline_aligned to .data..cacheline_aligned Denys Vlasenko
2010-02-20 0:03 ` [PATCH 02/24] Rename .data.init_task to .data..init_task Denys Vlasenko
2010-02-20 0:03 ` [PATCH 03/24] powerpc: remove unused __page_aligned definition Denys Vlasenko
2010-02-20 0:03 ` [PATCH 04/24] Rename .data.page_aligned to .data..page_aligned Denys Vlasenko
2010-02-20 0:03 ` [PATCH 05/24] Rename .bss.page_aligned to .bss..page_aligned Denys Vlasenko
2010-02-20 0:03 ` [PATCH 06/24] Rename .bss.stack to .bss..stack Denys Vlasenko
2010-02-20 0:03 ` [PATCH 07/24] Rename .data.gate to .data..gate Denys Vlasenko
2010-02-20 0:03 ` [PATCH 08/24] Rename .data.init_irqstack to .data..init_irqstack Denys Vlasenko
2010-02-20 0:03 ` [PATCH 11/24] Rename .data.read_mostly to .data..read_mostly Denys Vlasenko
2010-02-20 0:03 ` [PATCH 13/24] Rename .rodata.compressed to .rodata..compressed Denys Vlasenko
2010-02-20 0:03 ` [PATCH 14/24] Rename .text.ivt to .text..ivt Denys Vlasenko
2010-02-20 0:03 ` [PATCH 15/24] Rename .text.lock to .text..lock Denys Vlasenko
2010-02-20 0:03 ` [PATCH 16/24] Rename .text.page_aligned to .text..page_aligned Denys Vlasenko
2010-02-20 0:03 ` [PATCH 17/24] Rename .text.reset to .text..reset Denys Vlasenko
2010-03-01 2:31 ` Tim Abbott
2010-03-01 4:37 ` Haavard Skinnemoen
2010-03-01 4:41 ` Haavard Skinnemoen
2010-02-20 0:03 ` [PATCH 18/24] Rename .text.startup to .text..startup Denys Vlasenko
2010-02-20 0:03 ` [PATCH 19/24] Rename .data.nosave to .data..nosave Denys Vlasenko
2010-02-20 0:03 ` [PATCH 20/24] Rename .data.init to .data..init Denys Vlasenko
2010-02-20 0:03 ` [PATCH 21/24] Rename .data.initvect to .data..initvect Denys Vlasenko
2010-02-20 0:03 ` [PATCH 22/24] Rename .data.lock_aligned to .data..lock_aligned Denys Vlasenko
2010-02-20 0:03 ` [PATCH 24/24] Rename .text.start to .text..start Denys Vlasenko
2010-02-20 0:37 ` [PATCH 09/24] Rename .data..patch.xxx to .data..patch.xxx Denys Vlasenko
2010-02-20 0:37 ` Denys Vlasenko [this message]
2010-02-20 0:37 ` [PATCH 12/24] Rename .data.vmpages and .data.vm0.xxx to .data..vmpages and .data..vm0.xxx Denys Vlasenko
2010-02-20 0:45 ` [PATCH 23/24] Rename special text sections in arch/frv from .text.xxx to .text..xxx Denys Vlasenko
2010-02-20 9:22 ` [PATCH 00/24] Rename kernel's magic sections for compatibility with -ffunction-sections -fdata-sections Andi Kleen
2010-02-20 21:58 ` Denys Vlasenko
2010-03-01 4:03 ` Tim Abbott
2010-03-03 10:23 ` Michal Marek
2010-03-09 15:56 ` Mike Frysinger
2010-03-11 15:04 ` David Howells
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=1266626233-25658-2-git-send-email-vda.linux@googlemail.com \
--to=vda.linux@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.