Add support for compiling with -ffunction-sections -fdata-sections
Subsystems (22)
PATCH 2/4 modpost: Check the section flags, not name, to catch missing "ax"/"aw"
In reply to Tim AbbottFrom: Anders Kaseorg <[email protected]>
When you put
.section ".foo"
in an assembly file instead of
.section "foo", "ax"
, one of the possible symptoms is that modpost will see an ld-generated section name ".foo.1" in section_rel() or section_rela(). But this heuristic has two problems: it will miss a bad section that has no relocations, and it will incorrectly flag many gcc-generated sections as bad when compiling with -ffunction-sections -fdata-sections.
So instead of checking whether the section name matches a particular pattern, we directly check for a missing SHF_ALLOC in the section flags.
--- scripts/mod/modpost.c | 49 ++++++++++++++++++------------------------------- 1 files changed, 18 insertions(+), 31 deletions(-)
scripts/mod/modpost.c +19 -32
@@ -713,41 +713,27 @@ int match(const char *sym, const char * const pat[])/* sections that we do not want to do full section mismatch check on */ static const char *section_white_list[] = - {".debug*" ,".stab*" ,".note*" ,".got*" ,".toc*" ,NULL }; + {".comment" ,".debug*" ,".stab*" ,".note*" ,".got*" ,".toc*" ,NULL };/* -* Is this section one we do not want to check? -* This is often debug sections. -* If we are going to check this section then -* test if section name ends with a dot and a number. -* This is used to find sections where the linker have -* appended a dot-number to make the name unique. +* This is used to find sections missing the SHF_ALLOC flag. * The cause of this is often a section specified in assembler -* without "ax" / "aw" and the same section used in .c -* code where gcc add these. +* without "ax" / "aw". */ -static int check_section (const char *modname,const char *sec) -{ -const char *e = sec +strlen (sec) -1 ; -if (match (sec, section_white_list)) -return 1 ; - -if (*e &&isdigit (*e)) { -/* consume all digits */ -while (*e && e != sec &&isdigit (*e)) - e--; -if (*e =='.' && !strstr (sec,".linkonce" )) { -warn ("%s (%s): unexpected section name.\n" -"The (.[number]+) following section name are " -"ld generated and not expected.\n" -"Did you forget to use \"ax\"/\"aw\" " -"in a .S file?\n" -"Note that for example <linux/init.h> contains\n" -"section definitions for use in .S files.\n\n" , - modname, sec); - } +static void check_section (const char *modname,struct elf_info *elf, +Elf_Shdr *sechdr) +{ +const char *sec =sech_name (elf, sechdr); + +if (sechdr->sh_type ==SHT_PROGBITS && + !(sechdr->sh_flags &SHF_ALLOC ) && + !match (sec, section_white_list)) { +warn ("%s (%s): unexpected non-allocatable section.\n" +"Did you forget to use \"ax\"/\"aw\" in a .S file?\n" +"Note that for example <linux/init.h> contains\n" +"section definitions for use in .S files.\n\n" , + modname, sec); } -return 0 ; }
@@ -1374,7 +1360,7 @@ static void section_rela(const char *modname, struct elf_info *elf, fromsec =sech_name (elf, sechdr); fromsec +=strlen (".rela" );/* if from section (name) is know good then skip it */ -if (check_section (modname, fromsec)) +if (match (fromsec, section_white_list))return ;for (rela = start; rela < stop; rela++) {
@@ -1418,7 +1404,7 @@ static void section_rel(const char *modname, struct elf_info *elf, fromsec =sech_name (elf, sechdr); fromsec +=strlen (".rel" );/* if from section (name) is know good then skip it */ -if (check_section (modname, fromsec)) +if (match (fromsec, section_white_list))return ;for (rel = start; rel < stop; rel++) {
@@ -1481,6 +1467,7 @@ static void check_sec_ref(struct module *mod, const char *modname,/* Walk through all sections */ for (i =0 ; i < elf->hdr->e_shnum; i++) { +check_section (modname, elf, &elf->sechdrs[i]);/* We want to process only relocation sections and not .init */ if (sechdrs[i].sh_type ==SHT_RELA )section_rela (modname, elf, &elf->sechdrs[i]);
Signature · 1 line
1.6.2
PATCH 4/4 x86: Add an option to compile with -ffunction-sections -fdata-sections
In reply to Tim AbbottFrom: Waseem Daher <[email protected]>
This patch makes it possible to link and boot an x86 kernel with -ffunction-sections and -fdata-sections enabled.
Modpost currently warns whenever it sees a section with a name matching [.][0-9]+$ because they are often caused by section flag mismatch errors. When compiling with -ffunction-sections -fdata-sections, gcc places various classes of local symbols in sections with names such as .rodata.__func__.12345, causing these warnings to be printed spuriously. The simplest fix is to disable the warning when CONFIG_FUNCTION_DATA_SECTIONS is enabled.
--- Makefile | 4 ++++ arch/x86/Kconfig | 1 + arch/x86/kernel/vmlinux_32.lds.S | 1 + arch/x86/kernel/vmlinux_64.lds.S | 1 + include/asm-generic/vmlinux.lds.h | 5 ++++- lib/Kconfig.debug | 18 ++++++++++++++++++ 6 files changed, 29 insertions(+), 1 deletions(-)
Makefile +4 -0
@@ -551,6 +551,10 @@ ifdef CONFIG_FUNCTION_TRACER KBUILD_CFLAGS += -pg endif +ifdef CONFIG_FUNCTION_DATA_SECTIONS +KBUILD_CFLAGS += -ffunction-sections -fdata-sections +endif + # We trigger additional mismatches with less inlining ifdef CONFIG_DEBUG_SECTION_MISMATCH KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
arch/x86/Kconfig +1 -0
@@ -28,6 +28,7 @@ config X86 select HAVE_KPROBES select ARCH_WANT_OPTIONAL_GPIOLIB select ARCH_WANT_FRAME_POINTERS + select HAVE_FUNCTION_DATA_SECTIONS select HAVE_KRETPROBES select HAVE_FTRACE_MCOUNT_RECORD select HAVE_DYNAMIC_FTRACE
arch/x86/kernel/vmlinux_32.lds.S +1 -0
@@ -194,6 +194,7 @@ SECTIONS __bss_start = .; /* BSS */ *(.bss..page_aligned) *(.bss) + *(.bss.[A-Za-z$_]*) /* handle -fdata-sections */ . = ALIGN(4); __bss_stop = .; _end = . ;
arch/x86/kernel/vmlinux_64.lds.S +1 -0
@@ -223,6 +223,7 @@ SECTIONS .bss : AT(ADDR(.bss) - LOAD_OFFSET) { *(.bss..page_aligned) *(.bss) + *(.bss.[A-Za-z$_]*) /* handle -fdata-sections */ } __bss_stop = .;
include/asm-generic/vmlinux.lds.h +4 -1
@@ -64,6 +64,7 @@/* .data section */ #define DATA_DATA \ *(.data) \ + *(.data.[A-Za-z$_]*)/* handle -fdata-sections */ \ *(.data..init.refok) \ *(.ref.data) \DEV_KEEP (init.data) \
@@ -87,7 +88,8 @@ . = ALIGN((align)); \ .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \ VMLINUX_SYMBOL(__start_rodata) = .; \ - *(.rodata) *(.rodata.*) \ + *(.rodata) \ + *(.rodata.[A-Za-z$_]*) /* handle -fdata-sections */ \ *(__vermagic)/* Kernel version magic */ \ *(__markers_strings)/* Markers: strings */ \ *(__tracepoints_strings)/* Tracepoints: strings */ \
@@ -254,6 +256,7 @@ALIGN_FUNCTION (); \ *(.text.hot) \ *(.text) \ + *(.text.[A-Za-z$_]*) /* handle -ffunction-sections */\ *(.ref.text) \ *(.text..init.refok) \ *(.text..exit.refok) \
lib/Kconfig.debug +18 -0
@@ -591,6 +591,24 @@ config FRAME_POINTER larger and slower, but it gives very useful debugging information in case of kernel bugs. (precise oopses/stacktraces/warnings) +config HAVE_FUNCTION_DATA_SECTIONS + bool + +config FUNCTION_DATA_SECTIONS + bool "Compile with -ffunction-sections -fdata-sections" + depends on HAVE_FUNCTION_DATA_SECTIONS + depends on !FUNCTION_TRACER + help + If you say Y here the compiler will give each function + and data structure its own ELF section. + + This option conflicts with CONFIG_FUNCTION_TRACER, which + enables profiling code generation, because current GCC does + not support compiling with -ffunction-sections -pg (see + <http://gcc.gnu.org/ml/gcc-help/2008-11/msg00128.html>). + + If unsure, say N. + config BOOT_PRINTK_DELAY bool "Delay each boot printk message by N milliseconds" depends on DEBUG_KERNEL && PRINTK && GENERIC_CALIBRATE_DELAY
Signature · 1 line
1.6.2
PATCH 3/4 modpost: Support objects with more than 64k sections
In reply to Tim AbbottFrom: Denys Vlasenko <[email protected]>
This patch makes modpost able to process object files with more than 64k sections. Needed for huge kernel builds (allyesconfig, for example) with -ffunction-sections.
--- scripts/mod/file2alias.c | 6 +- scripts/mod/modpost.c | 94 ++++++++++++++++++++++++++++++++------------- scripts/mod/modpost.h | 43 +++++++++++++++++++++ 3 files changed, 113 insertions(+), 30 deletions(-)
scripts/mod/file2alias.c +3 -3
@@ -753,16 +753,16 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,char *zeros =NULL ;/* We're looking for a section relative symbol */ -if (!sym->st_shndx || sym->st_shndx >= info->hdr->e_shnum) +if (!sym->st_shndx ||get_secindex (info, sym) >= info->num_sections)return ;/* Handle all-NULL symbols allocated into .bss */ -if (info->sechdrs[sym->st_shndx].sh_type &SHT_NOBITS ) { +if (info->sechdrs[get_secindex (info, sym)].sh_type &SHT_NOBITS ) { zeros =calloc (1 , sym->st_size); symval = zeros; }else { symval = (void *)info->hdr - + info->sechdrs[sym->st_shndx].sh_offset + + info->sechdrs[get_secindex (info, sym)].sh_offset + sym->st_value; }
scripts/mod/modpost.c +67 -27
211 lines not on this page · raw message
scripts/mod/modpost.h +43 -0
51 lines not on this page · raw message
Signature · 1 line
1.6.2
PATCH 1/4 Make section names compatible with -ffunction-sections -fdata-sections
In reply to Tim AbbottThe purpose of this patch is to make it possible to build the kernel with "gcc -ffunction-sections -fdata-sections". This is a key step towards being able to compile the kernel using the --gc-sections linker option, which can be used to decrease the vmlinux size by garbage collecting unused functions. Also, Ksplice's 'run-pre matching' process is much simpler if the original kernel was compiled with -ffunction-sections and -fdata-sections.
Currently, the kernel uses a number of "magic" section names such as ".data.nosave" and ".text.head".
The problem is that with -ffunction-sections -fdata-sections, gcc places code like
static void head(...) {...}
in the .text.head section, and code like
static int nosave = 1;
in the .data.nosave section, causing code to be inappropriately placed in the "magic" sections. This patch renames all "magic" section names used by the kernel to use ".." rather than "." as the delimiter between the section prefix (e.g. ".text") and suffix (e.g. "head"), so that ".data.nosave" becomes ".data..nosave", etc. The key property of these names is that there are no collisions between the kernel's "magic" sections and the sections generated by gcc's -ffunction-sections and -fdata-sections options. One can then reference the sections generated by -ffunction-sections using a linker script pattern such as *(.text.[A-Za-z$_]*)
This patch is based on an some earlier patches by Denys Vlasenko. Those earlier patches used section names like ".kernel.text.head". Because these names did not begin with e.g. ".text", the assembler did not automatically use the correct section flags for them, and so one needed to explicitly declare the sections flags when declaring a section in assembly files using code such as:
.section .kernel.text.head, "ax", @progbits
These explicit section flags in assembly files turned out to be a common source of confusion, and so I rewrote the patch with this new section naming scheme suggested by Anders Kaseorg.
--- Documentation/mutex-design.txt | 4 +- arch/alpha/kernel/head.S | 2 +- arch/alpha/kernel/init_task.c | 2 +- arch/alpha/kernel/vmlinux.lds.S | 14 ++++---- arch/arm/kernel/head-nommu.S | 2 +- arch/arm/kernel/head.S | 2 +- arch/arm/kernel/init_task.c | 2 +- arch/arm/kernel/vmlinux.lds.S | 14 ++++---- arch/arm/mm/proc-v6.S | 2 +- arch/arm/mm/proc-v7.S | 2 +- arch/arm/mm/tlb-v6.S | 2 +- arch/arm/mm/tlb-v7.S | 2 +- arch/avr32/kernel/init_task.c | 2 +- arch/avr32/kernel/vmlinux.lds.S | 6 ++-- arch/avr32/mm/init.c | 2 +- arch/blackfin/kernel/vmlinux.lds.S | 2 +- arch/cris/kernel/process.c | 2 +- arch/cris/kernel/vmlinux.lds.S | 2 +- arch/frv/kernel/break.S | 4 +- arch/frv/kernel/entry.S | 2 +- arch/frv/kernel/head-mmu-fr451.S | 2 +- arch/frv/kernel/head-uc-fr401.S | 2 +- arch/frv/kernel/head-uc-fr451.S | 2 +- arch/frv/kernel/head-uc-fr555.S | 2 +- arch/frv/kernel/head.S | 4 +- arch/frv/kernel/init_task.c | 2 +- arch/frv/kernel/vmlinux.lds.S | 18 +++++----- arch/frv/mm/tlb-miss.S | 2 +- arch/h8300/boot/compressed/head.S | 2 +- arch/h8300/boot/compressed/vmlinux.lds | 2 +- arch/h8300/kernel/init_task.c | 2 +- arch/h8300/kernel/vmlinux.lds.S | 2 +- arch/ia64/include/asm/asmmacro.h | 12 +++--- arch/ia64/include/asm/cache.h | 2 +- arch/ia64/include/asm/percpu.h | 2 +- arch/ia64/kernel/Makefile | 2 +- arch/ia64/kernel/gate-data.S | 2 +- arch/ia64/kernel/gate.S | 8 ++-- arch/ia64/kernel/gate.lds.S | 10 +++--- arch/ia64/kernel/head.S | 2 +- arch/ia64/kernel/init_task.c | 4 +- arch/ia64/kernel/ivt.S | 2 +- arch/ia64/kernel/minstate.h | 4 +- arch/ia64/kernel/paravirtentry.S | 2 +- arch/ia64/kernel/vmlinux.lds.S | 48 +++++++++++++------------- arch/ia64/kvm/vmm_ivt.S | 2 +- arch/ia64/xen/xensetup.S | 2 +- arch/m32r/kernel/head.S | 2 +- arch/m32r/kernel/init_task.c | 2 +- arch/m32r/kernel/vmlinux.lds.S | 8 ++-- arch/m68k/kernel/head.S | 2 +- arch/m68k/kernel/process.c | 2 +- arch/m68k/kernel/sun3-head.S | 2 +- arch/m68k/kernel/vmlinux-std.lds | 6 ++-- arch/m68k/kernel/vmlinux-sun3.lds | 4 +- arch/m68knommu/kernel/init_task.c | 2 +- arch/m68knommu/kernel/vmlinux.lds.S | 6 ++-- arch/m68knommu/platform/68360/head-ram.S | 2 +- arch/m68knommu/platform/68360/head-rom.S | 2 +- arch/mips/kernel/init_task.c | 2 +- arch/mips/kernel/vmlinux.lds.S | 8 ++-- arch/mips/lasat/image/head.S | 2 +- arch/mips/lasat/image/romscript.normal | 2 +- arch/mn10300/kernel/head.S | 2 +- arch/mn10300/kernel/init_task.c | 2 +- arch/mn10300/kernel/vmlinux.lds.S | 16 ++++---- arch/parisc/include/asm/cache.h | 2 +- arch/parisc/include/asm/system.h | 2 +- arch/parisc/kernel/head.S | 2 +- arch/parisc/kernel/init_task.c | 8 ++-- arch/parisc/kernel/vmlinux.lds.S | 26 +++++++------- arch/powerpc/include/asm/cache.h | 2 +- arch/powerpc/include/asm/page_64.h | 2 +- arch/powerpc/include/asm/ppc_asm.h | 4 +- arch/powerpc/kernel/head_32.S | 2 +- arch/powerpc/kernel/head_40x.S | 2 +- arch/powerpc/kernel/head_44x.S | 2 +- arch/powerpc/kernel/head_8xx.S | 2 +- arch/powerpc/kernel/head_fsl_booke.S | 2 +- arch/powerpc/kernel/init_task.c | 2 +- arch/powerpc/kernel/machine_kexec_64.c | 2 +- arch/powerpc/kernel/vdso.c | 2 +- arch/powerpc/kernel/vdso32/vdso32_wrapper.S | 2 +- arch/powerpc/kernel/vdso64/vdso64_wrapper.S | 2 +- arch/powerpc/kernel/vmlinux.lds.S | 28 ++++++++-------- arch/s390/include/asm/cache.h | 2 +- arch/s390/kernel/head.S | 2 +- arch/s390/kernel/init_task.c | 2 +- arch/s390/kernel/vdso.c | 2 +- arch/s390/kernel/vdso32/vdso32_wrapper.S | 2 +- arch/s390/kernel/vdso64/vdso64_wrapper.S | 2 +- arch/s390/kernel/vmlinux.lds.S | 20 +++++----- arch/sh/include/asm/cache.h | 2 +- arch/sh/kernel/cpu/sh5/entry.S | 4 +- arch/sh/kernel/head_32.S | 2 +- arch/sh/kernel/head_64.S | 2 +- arch/sh/kernel/init_task.c | 2 +- arch/sh/kernel/irq.c | 4 +- arch/sh/kernel/vmlinux_32.lds.S | 14 ++++---- arch/sh/kernel/vmlinux_64.lds.S | 14 ++++---- arch/sparc/boot/btfixupprep.c | 4 +- arch/sparc/include/asm/cache.h | 2 +- arch/sparc/kernel/head_32.S | 4 +- arch/sparc/kernel/head_64.S | 2 +- arch/sparc/kernel/init_task.c | 2 +- arch/sparc/kernel/vmlinux.lds.S | 14 ++++---- arch/um/include/asm/common.lds.S | 4 +- arch/um/kernel/dyn.lds.S | 4 +- arch/um/kernel/init_task.c | 4 +- arch/um/kernel/uml.lds.S | 4 +- arch/x86/boot/compressed/head_32.S | 2 +- arch/x86/boot/compressed/head_64.S | 2 +- arch/x86/boot/compressed/relocs.c | 2 +- arch/x86/boot/compressed/vmlinux.scr | 2 +- arch/x86/boot/compressed/vmlinux_32.lds | 14 +++++-- arch/x86/boot/compressed/vmlinux_64.lds | 10 +++-- arch/x86/include/asm/cache.h | 4 +- arch/x86/kernel/acpi/wakeup_32.S | 2 +- arch/x86/kernel/head_32.S | 6 ++-- arch/x86/kernel/head_64.S | 4 +- arch/x86/kernel/init_task.c | 4 +- arch/x86/kernel/traps.c | 2 +- arch/x86/kernel/vmlinux_32.lds.S | 36 ++++++++++---------- arch/x86/kernel/vmlinux_64.lds.S | 26 +++++++------- arch/xtensa/kernel/head.S | 2 +- arch/xtensa/kernel/init_task.c | 2 +- arch/xtensa/kernel/vmlinux.lds.S | 6 ++-- include/asm-frv/init.h | 8 ++-- include/asm-generic/vmlinux.lds.h | 14 ++++---- include/linux/cache.h | 2 +- include/linux/init.h | 8 ++-- include/linux/linkage.h | 4 +- include/linux/percpu.h | 10 +++--- include/linux/spinlock.h | 2 +- kernel/module.c | 2 +- scripts/mod/modpost.c | 12 +++--- scripts/recordmcount.pl | 6 ++-- 137 files changed, 355 insertions(+), 347 deletions(-)
Documentation/mutex-design.txt +2 -2
@@ -66,14 +66,14 @@ of advantages of mutexes: c0377ccb <mutex_lock>: c0377ccb: f0 ff 08 lock decl (%eax) - c0377cce: 78 0e js c0377cde <.text.lock.mutex> + c0377cce: 78 0e js c0377cde <.text..lock.mutex> c0377cd0: c3 ret the unlocking fastpath is equally tight: c0377cd1 <mutex_unlock>: c0377cd1: f0 ff 00 lock incl (%eax) - c0377cd4: 7e 0f jle c0377ce5 <.text.lock.mutex+0x7> + c0377cd4: 7e 0f jle c0377ce5 <.text..lock.mutex+0x7> c0377cd6: c3 ret - 'struct mutex' semantics are well-defined and are enforced if
arch/alpha/kernel/head.S +1 -1
@@ -10,7 +10,7 @@ #include <asm/system.h> #include <asm/asm-offsets.h> -.section .text.head, "ax" +.section .text..head, "ax" .globl swapper_pg_dir .globl _stext swapper_pg_dir=SWAPPER_PGD
arch/alpha/kernel/init_task.c +1 -1
@@ -17,5 +17,5 @@ EXPORT_SYMBOL(init_mm);EXPORT_SYMBOL (init_task); union thread_union init_thread_union - __attribute__((section(".data.init_thread"))) + __attribute__((section(".data..init_thread"))) = { INIT_THREAD_INFO(init_task) };
arch/alpha/kernel/vmlinux.lds.S +7 -7
@@ -16,7 +16,7 @@ SECTIONS _text = .; /* Text and read-only data */ .text : { - *(.text.head) + *(.text..head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -93,18 +93,18 @@ SECTIONS /* Freed after init ends here */ /* Note 2 page alignment above. */ - .data.init_thread : { - *(.data.init_thread) + .data..init_thread : { + *(.data..init_thread) } . = ALIGN(PAGE_SIZE); - .data.page_aligned : { - *(.data.page_aligned) + .data..page_aligned : { + *(.data..page_aligned) } . = ALIGN(64); - .data.cacheline_aligned : { - *(.data.cacheline_aligned) + .data..cacheline_aligned : { + *(.data..cacheline_aligned) } _data = .;
arch/arm/kernel/head-nommu.S +1 -1
@@ -32,7 +32,7 @@ * numbers for r1. * */ - .section ".text.head", "ax" + .section ".text..head", "ax" ENTRY(stext) msr cpsr_c, #PSR_F_BIT | PSR_I_BIT | SVC_MODE @ ensure svc mode @ and irqs disabled
arch/arm/kernel/head.S +1 -1
@@ -74,7 +74,7 @@ * crap here - that's what the boot loader (or in extreme, well justified * circumstances, zImage) is for. */ - .section ".text.head", "ax" + .section ".text..head", "ax" ENTRY(stext) msr cpsr_c, #PSR_F_BIT | PSR_I_BIT | SVC_MODE @ ensure svc mode @ and irqs disabled
arch/arm/kernel/init_task.c +1 -1
@@ -29,7 +29,7 @@ EXPORT_SYMBOL(init_mm);* The things we do for performance.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/arm/kernel/vmlinux.lds.S +7 -7
@@ -23,10 +23,10 @@ SECTIONS #else . = PAGE_OFFSET + TEXT_OFFSET; #endif - .text.head : { + .text..head : { _stext = .; _sinittext = .; - *(.text.head) + *(.text..head) } .init : { /* Init code and data */
@@ -65,8 +65,8 @@ SECTIONS #endif . = ALIGN(4096); __per_cpu_start = .; - *(.data.percpu) - *(.data.percpu.shared_aligned) + *(.data..percpu) + *(.data..percpu.shared_aligned) __per_cpu_end = .; #ifndef CONFIG_XIP_KERNEL __init_begin = _stext;
@@ -125,7 +125,7 @@ SECTIONS * first, the init task union, aligned * to an 8192 byte boundary. */ - *(.data.init_task) + *(.data..init_task) #ifdef CONFIG_XIP_KERNEL . = ALIGN(4096);
@@ -137,7 +137,7 @@ SECTIONS . = ALIGN(4096); __nosave_begin = .; - *(.data.nosave) + *(.data..nosave) . = ALIGN(4096); __nosave_end = .;
@@ -145,7 +145,7 @@ SECTIONS * then the cacheline aligned data */ . = ALIGN(32); - *(.data.cacheline_aligned) + *(.data..cacheline_aligned) /* * The exception fixup table (might need resorting at runtime)
arch/arm/mm/proc-v6.S +1 -1
@@ -132,7 +132,7 @@ cpu_v6_name: .asciz "ARMv6-compatible processor" .align - .section ".text.init", #alloc, #execinstr + .section ".text..init", #alloc, #execinstr /* * __v6_setup
arch/arm/mm/proc-v7.S +1 -1
@@ -153,7 +153,7 @@ cpu_v7_name: .ascii "ARMv7 Processor" .align - .section ".text.init", #alloc, #execinstr + .section ".text..init", #alloc, #execinstr /* * __v7_setup
arch/arm/mm/tlb-v6.S +1 -1
@@ -87,7 +87,7 @@ ENTRY(v6wbi_flush_kern_tlb_range) mcr p15, 0, r2, c7, c5, 4 @ prefetch flush mov pc, lr - .section ".text.init", #alloc, #execinstr + .section ".text..init", #alloc, #execinstr .type v6wbi_tlb_fns, #object ENTRY(v6wbi_tlb_fns)
arch/arm/mm/tlb-v7.S +1 -1
@@ -80,7 +80,7 @@ ENTRY(v7wbi_flush_kern_tlb_range) mov pc, lr ENDPROC(v7wbi_flush_kern_tlb_range) - .section ".text.init", #alloc, #execinstr + .section ".text..init", #alloc, #execinstr .type v7wbi_tlb_fns, #object ENTRY(v7wbi_tlb_fns)
arch/avr32/kernel/init_task.c +1 -1
@@ -23,7 +23,7 @@ EXPORT_SYMBOL(init_mm);* Initial thread structure. Must be aligned on an 8192-byte boundary. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/avr32/kernel/vmlinux.lds.S +3 -3
@@ -95,15 +95,15 @@ SECTIONS /* * First, the init task union, aligned to an 8K boundary. */ - *(.data.init_task) + *(.data..init_task) /* Then, the page-aligned data */ . = ALIGN(PAGE_SIZE); - *(.data.page_aligned) + *(.data..page_aligned) /* Then, the cacheline aligned data */ . = ALIGN(L1_CACHE_BYTES); - *(.data.cacheline_aligned) + *(.data..cacheline_aligned) /* And the rest... */ *(.data.rel*)
arch/avr32/mm/init.c +1 -1
@@ -24,7 +24,7 @@#include <asm/setup.h> #include <asm/sections.h> -#define __page_aligned __attribute__((section(".data.page_aligned"))) +#define __page_aligned __attribute__((section(".data..page_aligned"))) DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
arch/blackfin/kernel/vmlinux.lds.S +1 -1
@@ -94,7 +94,7 @@ SECTIONS __sdata = .; /* This gets done first, so the glob doesn't suck it in */ . = ALIGN(32); - *(.data.cacheline_aligned) + *(.data..cacheline_aligned) #if !L1_DATA_A_LENGTH . = ALIGN(32);
arch/cris/kernel/process.c +1 -1
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/cris/kernel/vmlinux.lds.S +1 -1
@@ -68,7 +68,7 @@ SECTIONS _edata = . ; . = ALIGN(PAGE_SIZE); /* init_task and stack, must be aligned. */ - .data.init_task : { *(.data.init_task) } + .data..init_task : { *(.data..init_task) } . = ALIGN(PAGE_SIZE); /* Init code and data. */ __init_begin = .;
arch/frv/kernel/break.S +2 -2
@@ -21,7 +21,7 @@ # # the break handler has its own stack # - .section .bss.stack + .section .bss..stack .globl __break_user_context .balign THREAD_SIZE __break_stack:
@@ -63,7 +63,7 @@ __break_trace_through_exceptions: # entry point for Break Exceptions/Interrupts # ############################################################################### - .section .text.break + .section .text..break .balign 4 .globl __entry_break __entry_break:
arch/frv/kernel/entry.S +1 -1
@@ -38,7 +38,7 @@ #define nr_syscalls ((syscall_table_size)/4) - .section .text.entry + .section .text..entry .balign 4 .macro LEDS val
arch/frv/kernel/head-mmu-fr451.S +1 -1
@@ -31,7 +31,7 @@ #define __400_LCR 0xfe000100 #define __400_LSBR 0xfe000c00 - .section .text.init,"ax" + .section .text..init,"ax" .balign 4 ###############################################################################
arch/frv/kernel/head-uc-fr401.S +1 -1
@@ -30,7 +30,7 @@ #define __400_LCR 0xfe000100 #define __400_LSBR 0xfe000c00 - .section .text.init,"ax" + .section .text..init,"ax" .balign 4 ###############################################################################
arch/frv/kernel/head-uc-fr451.S +1 -1
@@ -30,7 +30,7 @@ #define __400_LCR 0xfe000100 #define __400_LSBR 0xfe000c00 - .section .text.init,"ax" + .section .text..init,"ax" .balign 4 ###############################################################################
arch/frv/kernel/head-uc-fr555.S +1 -1
@@ -29,7 +29,7 @@ #define __551_LCR 0xfeff1100 #define __551_LSBR 0xfeff1c00 - .section .text.init,"ax" + .section .text..init,"ax" .balign 4 ###############################################################################
arch/frv/kernel/head.S +2 -2
@@ -27,7 +27,7 @@ # command line string # ############################################################################### - .section .text.head,"ax" + .section .text..head,"ax" .balign 4 .globl _boot, __head_reference
@@ -541,7 +541,7 @@ __head_end: .size _boot, .-_boot # provide a point for GDB to place a break - .section .text.start,"ax" + .section .text..start,"ax" .globl _start .balign 4 _start:
arch/frv/kernel/init_task.c +1 -1
@@ -24,7 +24,7 @@ EXPORT_SYMBOL(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/frv/kernel/vmlinux.lds.S +9 -9
@@ -26,7 +26,7 @@ SECTIONS _sinittext = .; .init.text : { - *(.text.head) + *(.text..head) #ifndef CONFIG_DEBUG_INFO INIT_TEXT EXIT_TEXT
@@ -71,13 +71,13 @@ SECTIONS /* put sections together that have massive alignment issues */ . = ALIGN(THREAD_SIZE); - .data.init_task : { + .data..init_task : { /* init task record & stack */ - *(.data.init_task) + *(.data..init_task) } . = ALIGN(L1_CACHE_BYTES); - .data.cacheline_aligned : { *(.data.cacheline_aligned) } + .data..cacheline_aligned : { *(.data..cacheline_aligned) } .trap : { /* trap table management - read entry-table.S before modifying */
@@ -94,10 +94,10 @@ SECTIONS _text = .; _stext = .; .text : { - *(.text.start) - *(.text.entry) - *(.text.break) - *(.text.tlbmiss) + *(.text..start) + *(.text..entry) + *(.text..break) + *(.text..tlbmiss) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -152,7 +152,7 @@ SECTIONS .sbss : { *(.sbss .sbss.*) } .bss : { *(.bss .bss.*) } - .bss.stack : { *(.bss) } + .bss..stack : { *(.bss) } __bss_stop = .; _end = . ;
arch/frv/mm/tlb-miss.S +1 -1
@@ -16,7 +16,7 @@ #include <asm/highmem.h> #include <asm/spr-regs.h> - .section .text.tlbmiss + .section .text..tlbmiss .balign 4 .globl __entry_insn_mmu_miss
arch/h8300/boot/compressed/head.S +1 -1
@@ -9,7 +9,7 @@ #define SRAM_START 0xff4000 - .section .text.startup + .section .text..startup .global startup startup: mov.l #SRAM_START+0x8000, sp
arch/h8300/boot/compressed/vmlinux.lds +1 -1
@@ -4,7 +4,7 @@ SECTIONS { __stext = . ; __text = .; - *(.text.startup) + *(.text..startup) *(.text) __etext = . ; }
arch/h8300/kernel/init_task.c +1 -1
@@ -36,6 +36,6 @@ EXPORT_SYMBOL(init_task);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };
arch/h8300/kernel/vmlinux.lds.S +1 -1
@@ -101,7 +101,7 @@ SECTIONS ___data_start = . ; . = ALIGN(0x2000) ; - *(.data.init_task) + *(.data..init_task) . = ALIGN(0x4) ; DATA_DATA . = ALIGN(0x4) ;
arch/ia64/include/asm/asmmacro.h +6 -6
@@ -70,12 +70,12 @@ name:* path (ivt.S - TLB miss processing) or in places where it might not be * safe to use a "tpa" instruction (mca_asm.S - error recovery). */ - .section ".data.patch.vtop", "a" // declare section & section attributes + .section ".data..patch.vtop", "a" // declare section & section attributes .previous#define LOAD_PHYSICAL (pr, reg, obj) \ [1:](pr)movl reg = obj; \ - .xdata4 ".data.patch.vtop", 1b-. + .xdata4 ".data..patch.vtop", 1b-./* * For now, we always put in the McKinley E9 workaround. On CPUs that don't need it,
@@ -84,11 +84,11 @@ name:#define DO_MCKINLEY_E9_WORKAROUND #ifdef DO_MCKINLEY_E9_WORKAROUND - .section ".data.patch.mckinley_e9", "a" + .section ".data..patch.mckinley_e9", "a" .previous/* workaround for Itanium 2 Errata 9: */ # define FSYS_RETURN \ - .xdata4 ".data.patch.mckinley_e9", 1f-.; \ + .xdata4 ".data..patch.mckinley_e9", 1f-.; \ 1:{ .mib; \ nop.m 0; \ mov r16=ar.pfs; \
@@ -107,11 +107,11 @@ name:* If physical stack register size is different from DEF_NUM_STACK_REG, * dynamically patch the kernel for correct size. */ - .section ".data.patch.phys_stack_reg", "a" + .section ".data..patch.phys_stack_reg", "a" .previous#define LOAD_PHYS_STACK_REG_SIZE (reg) \ [1:] adds reg=IA64_NUM_PHYS_STACK_REG*8+8,r0; \ - .xdata4 ".data.patch.phys_stack_reg", 1b-. + .xdata4 ".data..patch.phys_stack_reg", 1b-./* * Up until early 2004, use of .align within a function caused bad unwind info.
arch/ia64/include/asm/cache.h +1 -1
@@ -24,6 +24,6 @@# define SMP_CACHE_BYTES (1 << 3)#endif -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __read_mostly __attribute__((__section__(".data..read_mostly")))#endif /* _ASM_IA64_CACHE_H */
arch/ia64/include/asm/percpu.h +1 -1
@@ -27,7 +27,7 @@ extern void *per_cpu_init(void);#else /* ! SMP */ -#define PER_CPU_ATTRIBUTES __attribute__((__section__(".data.percpu"))) +#define PER_CPU_ATTRIBUTES __attribute__((__section__(".data..percpu")))#define per_cpu_init () (__phys_per_cpu_start)
arch/ia64/kernel/Makefile +1 -1
@@ -72,7 +72,7 @@ GATECFLAGS_gate-syms.o = -r $(obj)/gate-syms.o: $(obj)/gate.lds $(obj)/gate.o FORCE $(call if_changed,gate) -# gate-data.o contains the gate DSO image as data in section .data.gate. +# gate-data.o contains the gate DSO image as data in section .data..gate. # We must build gate.so before we can assemble it. # Note: kbuild does not track this dependency due to usage of .incbin $(obj)/gate-data.o: $(obj)/gate.so
arch/ia64/kernel/gate-data.S +1 -1
@@ -1,3 +1,3 @@ - .section .data.gate, "aw" + .section .data..gate, "aw" .incbin "arch/ia64/kernel/gate.so"
arch/ia64/kernel/gate.S +4 -4
@@ -20,18 +20,18 @@ * to targets outside the shared object) and to avoid multi-phase kernel builds, we * simply create minimalistic "patch lists" in special ELF sections. */ - .section ".data.patch.fsyscall_table", "a" + .section ".data..patch.fsyscall_table", "a" .previous #define LOAD_FSYSCALL_TABLE(reg) \ [1:] movl reg=0; \ - .xdata4 ".data.patch.fsyscall_table", 1b-. + .xdata4 ".data..patch.fsyscall_table", 1b-. - .section ".data.patch.brl_fsys_bubble_down", "a" + .section ".data..patch.brl_fsys_bubble_down", "a" .previous #define BRL_COND_FSYS_BUBBLE_DOWN(pr) \ [1:](pr)brl.cond.sptk 0; \ ;; \ - .xdata4 ".data.patch.brl_fsys_bubble_down", 1b-. + .xdata4 ".data..patch.brl_fsys_bubble_down", 1b-. GLOBAL_ENTRY(__kernel_syscall_via_break) .prologue
arch/ia64/kernel/gate.lds.S +5 -5
@@ -32,21 +32,21 @@ SECTIONS */ . = GATE_ADDR + 0x600; - .data.patch : { + .data..patch : { __start_gate_mckinley_e9_patchlist = .; - *(.data.patch.mckinley_e9) + *(.data..patch.mckinley_e9) __end_gate_mckinley_e9_patchlist = .; __start_gate_vtop_patchlist = .; - *(.data.patch.vtop) + *(.data..patch.vtop) __end_gate_vtop_patchlist = .; __start_gate_fsyscall_patchlist = .; - *(.data.patch.fsyscall_table) + *(.data..patch.fsyscall_table) __end_gate_fsyscall_patchlist = .; __start_gate_brl_fsys_bubble_down_patchlist = .; - *(.data.patch.brl_fsys_bubble_down) + *(.data..patch.brl_fsys_bubble_down) __end_gate_brl_fsys_bubble_down_patchlist = .; } :readable
arch/ia64/kernel/head.S +1 -1
@@ -181,7 +181,7 @@ swapper_pg_dir: halt_msg: stringz "Halting kernel\n" - .section .text.head,"ax" + .section .text..head,"ax" .global start_ap
arch/ia64/kernel/init_task.c +2 -2
@@ -27,7 +27,7 @@ EXPORT_SYMBOL(init_mm);* Initial task structure. * * We need to make sure that this is properly aligned due to the way process stacks are -* handled. This is done by having a special ".data.init_task" section... +* handled. This is done by having a special ".data..init_task" section... */ #define init_thread_info init_task_mem.s.thread_info
@@ -37,7 +37,7 @@ union {struct thread_info thread_info; } s;unsigned long stack[KERNEL_STACK_SIZE /sizeof (unsigned long )]; -} init_task_mem asm ("init_task") __attribute__((section(".data.init_task"))) = {{ +} init_task_mem asm ("init_task") __attribute__((section(".data..init_task"))) = {{ .task = INIT_TASK(init_task_mem.s.task), .thread_info = INIT_THREAD_INFO(init_task_mem.s.task) }};
arch/ia64/kernel/ivt.S +1 -1
@@ -83,7 +83,7 @@ mov r19=n;; /* prepare to save predicates */ \ br.sptk.many dispatch_to_fault_handler - .section .text.ivt,"ax" + .section .text..ivt,"ax" .align 32768 // align on 32KB boundary .global ia64_ivt
arch/ia64/kernel/minstate.h +2 -2
@@ -16,7 +16,7 @@#define ACCOUNT_SYS_ENTER #endif -.section ".data.patch.rse", "a" +.section ".data..patch.rse", "a" .previous/*
@@ -215,7 +215,7 @@ (pUStk) extr.u r17=r18,3,6; \ (pUStk) sub r16=r18,r22; \ [1:](pKStk) br.cond.sptk.many 1f; \ - .xdata4 ".data.patch.rse",1b-. \ + .xdata4 ".data..patch.rse",1b-. \ ;; \ cmp.ge p6,p7 = 33,r17; \ ;; \
arch/ia64/kernel/paravirtentry.S +1 -1
@@ -25,7 +25,7 @@ #include "entry.h" #define DATA8(sym, init_value) \ - .pushsection .data.read_mostly ; \ + .pushsection .data..read_mostly ; \ .align 8 ; \ .global sym ; \ sym: ; \
arch/ia64/kernel/vmlinux.lds.S +24 -24
112 lines not on this page · raw message
arch/ia64/kvm/vmm_ivt.S +1 -1
@@ -104,7 +104,7 @@ GLOBAL_ENTRY(kvm_vmm_panic) br.call.sptk.many b6=vmm_panic_handler; END(kvm_vmm_panic) - .section .text.ivt,"ax" + .section .text..ivt,"ax" .align 32768 // align on 32KB boundary .global kvm_ia64_ivt
arch/ia64/xen/xensetup.S +1 -1
@@ -14,7 +14,7 @@ #include <linux/init.h> #include <xen/interface/elfnote.h> - .section .data.read_mostly + .section .data..read_mostly .align 8 .global xen_domain_type xen_domain_type:
arch/m32r/kernel/head.S +1 -1
@@ -23,7 +23,7 @@ __INITDATA /* * References to members of the boot_cpu_data structure. */ -.section .text.head, "ax" +.section .text..head, "ax" .global start_kernel .global __bss_start .global _end
arch/m32r/kernel/init_task.c +1 -1
@@ -25,7 +25,7 @@ EXPORT_SYMBOL(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/m32r/kernel/vmlinux.lds.S +4 -4
@@ -27,7 +27,7 @@ SECTIONS _text = .; /* Text and read-only data */ .boot : { *(.boot) } = 0 .text : { - *(.text.head) + *(.text..head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -57,17 +57,17 @@ SECTIONS . = ALIGN(4096); __nosave_begin = .; - .data_nosave : { *(.data.nosave) } + .data_nosave : { *(.data..nosave) } . = ALIGN(4096); __nosave_end = .; . = ALIGN(32); - .data.cacheline_aligned : { *(.data.cacheline_aligned) } + .data..cacheline_aligned : { *(.data..cacheline_aligned) } _edata = .; /* End of data section */ . = ALIGN(8192); /* init_task */ - .data.init_task : { *(.data.init_task) } + .data..init_task : { *(.data..init_task) } /* will be freed after init */ . = ALIGN(4096); /* Init code and data */
arch/m68k/kernel/head.S +1 -1
@@ -577,7 +577,7 @@ func_define putn,1 #endif .endm -.section ".text.head","ax" +.section ".text..head","ax" ENTRY(_stext) /* * Version numbers of the bootinfo interface
arch/m68k/kernel/process.c +1 -1
@@ -47,7 +47,7 @@ struct mm_struct init_mm = INIT_MM(init_mm);EXPORT_SYMBOL (init_mm); union thread_union init_thread_union -__attribute__((section(".data.init_task"), aligned(THREAD_SIZE))) +__attribute__((section(".data..init_task"), aligned(THREAD_SIZE))) = { INIT_THREAD_INFO(init_task) };/* initial task structure */
arch/m68k/kernel/sun3-head.S +1 -1
@@ -29,7 +29,7 @@ kernel_pmd_table: .skip 0x2000 .globl kernel_pg_dir .equ kernel_pg_dir,kernel_pmd_table - .section .text.head + .section .text..head ENTRY(_stext) ENTRY(_start)
arch/m68k/kernel/vmlinux-std.lds +3 -3
@@ -12,7 +12,7 @@ SECTIONS . = 0x1000; _text = .; /* Text and read-only data */ .text : { - *(.text.head) + *(.text..head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -35,7 +35,7 @@ SECTIONS } . = ALIGN(16); - .data.cacheline_aligned : { *(.data.cacheline_aligned) } + .data..cacheline_aligned : { *(.data..cacheline_aligned) } .bss : { *(.bss) } /* BSS */
@@ -78,7 +78,7 @@ SECTIONS . = ALIGN(8192); __init_end = .; - .data.init_task : { *(.data.init_task) } /* The initial task and kernel stack */ + .data..init_task : { *(.data..init_task) } /* The initial task and kernel stack */ _end = . ;
arch/m68k/kernel/vmlinux-sun3.lds +2 -2
@@ -12,7 +12,7 @@ SECTIONS . = 0xE002000; _text = .; /* Text and read-only data */ .text : { - *(.text.head) + *(.text..head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -70,7 +70,7 @@ __init_begin = .; #endif . = ALIGN(PAGE_SIZE); __init_end = .; - .data.init.task : { *(.data.init_task) } + .data..init.task : { *(.data..init_task) } .bss : { *(.bss) } /* BSS */
arch/m68knommu/kernel/init_task.c +1 -1
@@ -36,6 +36,6 @@ EXPORT_SYMBOL(init_task);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };
arch/m68knommu/kernel/vmlinux.lds.S +3 -3
@@ -55,7 +55,7 @@ SECTIONS { .romvec : { __rom_start = . ; _romvec = .; - *(.data.initvect) + *(.data..initvect) } > romvec #endif
@@ -66,7 +66,7 @@ SECTIONS { TEXT_TEXT SCHED_TEXT LOCK_TEXT - *(.text.lock) + *(.text..lock) . = ALIGN(16); /* Exception table */ __start___ex_table = .;
@@ -148,7 +148,7 @@ SECTIONS { _sdata = . ; DATA_DATA . = ALIGN(8192) ; - *(.data.init_task) + *(.data..init_task) _edata = . ; } > DATA
arch/m68knommu/platform/68360/head-ram.S +1 -1
@@ -280,7 +280,7 @@ _dprbase: * and then overwritten as needed. */ -.section ".data.initvect","awx" +.section ".data..initvect","awx" .long RAMEND /* Reset: Initial Stack Pointer - 0. */ .long _start /* Reset: Initial Program Counter - 1. */ .long buserr /* Bus Error - 2. */
arch/m68knommu/platform/68360/head-rom.S +1 -1
@@ -291,7 +291,7 @@ _dprbase: * and then overwritten as needed. */ -.section ".data.initvect","awx" +.section ".data..initvect","awx" .long RAMEND /* Reset: Initial Stack Pointer - 0. */ .long _start /* Reset: Initial Program Counter - 1. */ .long buserr /* Bus Error - 2. */
arch/mips/kernel/init_task.c +1 -1
@@ -26,7 +26,7 @@ EXPORT_SYMBOL(init_mm);* The things we do for performance.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"), + __attribute__((__section__(".data..init_task"), __aligned__(THREAD_SIZE))) = { INIT_THREAD_INFO(init_task) };
arch/mips/kernel/vmlinux.lds.S +4 -4
@@ -77,7 +77,7 @@ SECTIONS * object file alignment. Using 32768 */ . = ALIGN(_PAGE_SIZE); - *(.data.init_task) + *(.data..init_task) DATA_DATA CONSTRUCTORS
@@ -99,14 +99,14 @@ SECTIONS . = ALIGN(_PAGE_SIZE); .data_nosave : { __nosave_begin = .; - *(.data.nosave) + *(.data..nosave) } . = ALIGN(_PAGE_SIZE); __nosave_end = .; . = ALIGN(1 << CONFIG_MIPS_L1_CACHE_SHIFT); - .data.cacheline_aligned : { - *(.data.cacheline_aligned) + .data..cacheline_aligned : { + *(.data..cacheline_aligned) } _edata = .; /* End of data section */
arch/mips/lasat/image/head.S +1 -1
@@ -1,7 +1,7 @@ #include <asm/lasat/head.h> .text - .section .text.start, "ax" + .section .text..start, "ax" .set noreorder .set mips3
arch/mips/lasat/image/romscript.normal +1 -1
@@ -4,7 +4,7 @@ SECTIONS { .text : { - *(.text.start) + *(.text..start) } /* Data in ROM */
arch/mn10300/kernel/head.S +1 -1
@@ -19,7 +19,7 @@ #include <asm/param.h> #include <asm/unit/serial.h> - .section .text.head,"ax" + .section .text..head,"ax" ############################################################################### #
arch/mn10300/kernel/init_task.c +1 -1
@@ -31,7 +31,7 @@ EXPORT_SYMBOL(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/mn10300/kernel/vmlinux.lds.S +8 -8
@@ -28,7 +28,7 @@ SECTIONS _text = .; /* Text and read-only data */ .text : { *( - .text.head + .text..head .text ) TEXT_TEXT
@@ -58,25 +58,25 @@ SECTIONS . = ALIGN(PAGE_SIZE); __nosave_begin = .; - .data_nosave : { *(.data.nosave) } + .data_nosave : { *(.data..nosave) } . = ALIGN(PAGE_SIZE); __nosave_end = .; . = ALIGN(PAGE_SIZE); - .data.page_aligned : { *(.data.idt) } + .data..page_aligned : { *(.data..idt) } . = ALIGN(32); - .data.cacheline_aligned : { *(.data.cacheline_aligned) } + .data..cacheline_aligned : { *(.data..cacheline_aligned) } /* rarely changed data like cpu maps */ . = ALIGN(32); - .data.read_mostly : AT(ADDR(.data.read_mostly)) { - *(.data.read_mostly) + .data..read_mostly : AT(ADDR(.data..read_mostly)) { + *(.data..read_mostly) _edata = .; /* End of data section */ } . = ALIGN(THREAD_SIZE); /* init_task */ - .data.init_task : { *(.data.init_task) } + .data..init_task : { *(.data..init_task) } /* might get freed after init */ . = ALIGN(PAGE_SIZE);
@@ -134,7 +134,7 @@ SECTIONS __bss_start = .; /* BSS */ .bss : { - *(.bss.page_aligned) + *(.bss..page_aligned) *(.bss) } . = ALIGN(4);
arch/parisc/include/asm/cache.h +1 -1
@@ -28,7 +28,7 @@#define SMP_CACHE_BYTES L1_CACHE_BYTES -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __read_mostly __attribute__((__section__(".data..read_mostly")))void parisc_cache_init (void );/* initializes cache-flushing */ void disable_sr_hashing_asm (int );/* low level support for above */
arch/parisc/include/asm/system.h +1 -1
@@ -174,7 +174,7 @@ static inline void set_eiem(unsigned long val) })#ifdef CONFIG_SMP -# define __lock_aligned __attribute__((__section__(".data.lock_aligned"))) +# define __lock_aligned __attribute__((__section__(".data..lock_aligned")))#endif #define arch_align_stack (x) (x)
arch/parisc/kernel/head.S +1 -1
@@ -345,7 +345,7 @@ smp_slave_stext: ENDPROC(stext) #ifndef CONFIG_64BIT - .section .data.read_mostly + .section .data..read_mostly .align 4 .export $global$,data
arch/parisc/kernel/init_task.c +4 -4
@@ -48,7 +48,7 @@ EXPORT_SYMBOL(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((aligned(128))) __attribute__((__section__(".data.init_task"))) = + __attribute__((aligned(128))) __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };#if PT_NLEVELS ==3
@@ -57,11 +57,11 @@ union thread_union init_thread_union* guarantee that global objects will be laid out in memory in the same order * as the order of declaration, so put these in different sections and use * the linker script to order them. */ -pmd_t pmd0[PTRS_PER_PMD] __attribute__ ((__section__ (".data.vm0.pmd"), aligned(PAGE_SIZE))); +pmd_t pmd0[PTRS_PER_PMD] __attribute__ ((__section__ (".data..vm0.pmd"), aligned(PAGE_SIZE)));#endif -pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__ ((__section__ (".data.vm0.pgd"), aligned(PAGE_SIZE))); -pte_t pg0[PT_INITIAL * PTRS_PER_PTE] __attribute__ ((__section__ (".data.vm0.pte"), aligned(PAGE_SIZE))); +pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__ ((__section__ (".data..vm0.pgd"), aligned(PAGE_SIZE))); +pte_t pg0[PT_INITIAL * PTRS_PER_PTE] __attribute__ ((__section__ (".data..vm0.pte"), aligned(PAGE_SIZE)));/* * Initial task structure.
arch/parisc/kernel/vmlinux.lds.S +13 -13
@@ -94,8 +94,8 @@ SECTIONS /* rarely changed data like cpu maps */ . = ALIGN(16); - .data.read_mostly : { - *(.data.read_mostly) + .data..read_mostly : { + *(.data..read_mostly) } . = ALIGN(L1_CACHE_BYTES);
@@ -106,14 +106,14 @@ SECTIONS } . = ALIGN(L1_CACHE_BYTES); - .data.cacheline_aligned : { - *(.data.cacheline_aligned) + .data..cacheline_aligned : { + *(.data..cacheline_aligned) } /* PA-RISC locks requires 16-byte alignment */ . = ALIGN(16); - .data.lock_aligned : { - *(.data.lock_aligned) + .data..lock_aligned : { + *(.data..lock_aligned) } /* nosave data is really only used for software suspend...it's here
@@ -122,7 +122,7 @@ SECTIONS . = ALIGN(PAGE_SIZE); __nosave_begin = .; .data_nosave : { - *(.data.nosave) + *(.data..nosave) } . = ALIGN(PAGE_SIZE); __nosave_end = .;
@@ -134,10 +134,10 @@ SECTIONS __bss_start = .; /* page table entries need to be PAGE_SIZE aligned */ . = ALIGN(PAGE_SIZE); - .data.vmpages : { - *(.data.vm0.pmd) - *(.data.vm0.pgd) - *(.data.vm0.pte) + .data..vmpages : { + *(.data..vm0.pmd) + *(.data..vm0.pgd) + *(.data..vm0.pte) } .bss : { *(.bss)
@@ -149,8 +149,8 @@ SECTIONS /* assembler code expects init_task to be 16k aligned */ . = ALIGN(16384); /* init_task */ - .data.init_task : { - *(.data.init_task) + .data..init_task : { + *(.data..init_task) } #ifdef CONFIG_64BIT
arch/powerpc/include/asm/cache.h +1 -1
@@ -38,7 +38,7 @@ extern struct ppc64_caches ppc64_caches;#endif /* __powerpc64__ && ! __ASSEMBLY__ */ #if !defined(__ASSEMBLY__) -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __read_mostly __attribute__((__section__(".data..read_mostly")))#endif #endif /* __KERNEL__ */
arch/powerpc/include/asm/page_64.h +1 -1
@@ -157,7 +157,7 @@ do { \#else #define __page_aligned \ __attribute__((__aligned__(PAGE_SIZE), \ - __section__(".data.page_aligned"))) + __section__(".data..page_aligned")))#endif #define VM_DATA_DEFAULT_FLAGS \
arch/powerpc/include/asm/ppc_asm.h +2 -2
@@ -193,7 +193,7 @@ name: \ GLUE(.,name):#define _INIT_GLOBAL (name) \ - .section ".text.init.refok"; \ + .section ".text..init.refok"; \ .align 2 ; \ .globl name; \ .globl GLUE(.,name); \
@@ -233,7 +233,7 @@ name: \ GLUE(.,name):#define _INIT_STATIC (name) \ - .section ".text.init.refok"; \ + .section ".text..init.refok"; \ .align 2 ; \ .section ".opd","aw"; \ name: \
arch/powerpc/kernel/head_32.S +1 -1
@@ -50,7 +50,7 @@ mtspr SPRN_DBAT##n##L,RB; \ 1: - .section .text.head, "ax" + .section .text..head, "ax" .stabs "arch/powerpc/kernel/",N_SO,0,0,0f .stabs "head_32.S",N_SO,0,0,0f 0:
arch/powerpc/kernel/head_40x.S +1 -1
@@ -52,7 +52,7 @@ * * This is all going to change RSN when we add bi_recs....... -- Dan */ - .section .text.head, "ax" + .section .text..head, "ax" _ENTRY(_stext); _ENTRY(_start);
arch/powerpc/kernel/head_44x.S +1 -1
@@ -50,7 +50,7 @@ * r7 - End of kernel command line string * */ - .section .text.head, "ax" + .section .text..head, "ax" _ENTRY(_stext); _ENTRY(_start); /*
arch/powerpc/kernel/head_8xx.S +1 -1
@@ -38,7 +38,7 @@ #else #define DO_8xx_CPU6(val, reg) #endif - .section .text.head, "ax" + .section .text..head, "ax" _ENTRY(_stext); _ENTRY(_start);
arch/powerpc/kernel/head_fsl_booke.S +1 -1
@@ -53,7 +53,7 @@ * r7 - End of kernel command line string * */ - .section .text.head, "ax" + .section .text..head, "ax" _ENTRY(_stext); _ENTRY(_start); /*
arch/powerpc/kernel/init_task.c +1 -1
@@ -21,7 +21,7 @@ EXPORT_SYMBOL(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/powerpc/kernel/machine_kexec_64.c +1 -1
@@ -250,7 +250,7 @@ static void kexec_prepare_cpus(void)* current, but that audit has not been performed. */ static union thread_union kexec_stack - __attribute__((__section__(".data.init_task"))) = { }; + __attribute__((__section__(".data..init_task"))) = { };/* Our assembly helper, in kexec_stub.S */ extern NORET_TYPE void kexec_sequence(void *newstack, unsigned long start,
arch/powerpc/kernel/vdso.c +1 -1
@@ -74,7 +74,7 @@ static int vdso_ready;static union {struct vdso_data data;u8 page[PAGE_SIZE ]; -} vdso_data_store __attribute__((__section__(".data.page_aligned"))); +} vdso_data_store __attribute__((__section__(".data..page_aligned")));struct vdso_data *vdso_data = &vdso_data_store.data;/* Format of the patch table */
arch/powerpc/kernel/vdso32/vdso32_wrapper.S +1 -1
@@ -1,7 +1,7 @@ #include <linux/init.h> #include <asm/page.h> - .section ".data.page_aligned" + .section ".data..page_aligned" .globl vdso32_start, vdso32_end .balign PAGE_SIZE
arch/powerpc/kernel/vdso64/vdso64_wrapper.S +1 -1
@@ -1,7 +1,7 @@ #include <linux/init.h> #include <asm/page.h> - .section ".data.page_aligned" + .section ".data..page_aligned" .globl vdso64_start, vdso64_end .balign PAGE_SIZE
arch/powerpc/kernel/vmlinux.lds.S +14 -14
@@ -52,9 +52,9 @@ SECTIONS /* Text and gots */ .text : AT(ADDR(.text) - LOAD_OFFSET) { ALIGN_FUNCTION(); - *(.text.head) + *(.text..head) _text = .; - *(.text .fixup .text.init.refok .exit.text.refok __ftr_alt_*) + *(.text .fixup .text..init.refok .text..exit.refok __ftr_alt_*) SCHED_TEXT LOCK_TEXT KPROBES_TEXT
@@ -182,10 +182,10 @@ SECTIONS } #endif . = ALIGN(PAGE_SIZE); - .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { + .data..percpu : AT(ADDR(.data..percpu) - LOAD_OFFSET) { __per_cpu_start = .; - *(.data.percpu) - *(.data.percpu.shared_aligned) + *(.data..percpu) + *(.data..percpu.shared_aligned) __per_cpu_end = .; }
@@ -259,28 +259,28 @@ SECTIONS #else . = ALIGN(16384); #endif - .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) { - *(.data.init_task) + .data..init_task : AT(ADDR(.data..init_task) - LOAD_OFFSET) { + *(.data..init_task) } . = ALIGN(PAGE_SIZE); - .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { - *(.data.page_aligned) + .data..page_aligned : AT(ADDR(.data..page_aligned) - LOAD_OFFSET) { + *(.data..page_aligned) } - .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) { - *(.data.cacheline_aligned) + .data..cacheline_aligned : AT(ADDR(.data..cacheline_aligned) - LOAD_OFFSET) { + *(.data..cacheline_aligned) } . = ALIGN(L1_CACHE_BYTES); - .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { - *(.data.read_mostly) + .data..read_mostly : AT(ADDR(.data..read_mostly) - LOAD_OFFSET) { + *(.data..read_mostly) } . = ALIGN(PAGE_SIZE); .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { __nosave_begin = .; - *(.data.nosave) + *(.data..nosave) . = ALIGN(PAGE_SIZE); __nosave_end = .; }
arch/s390/include/asm/cache.h +1 -1
@@ -14,6 +14,6 @@#define L1_CACHE_BYTES 256#define L1_CACHE_SHIFT 8 -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __read_mostly __attribute__((__section__(".data..read_mostly")))#endif
arch/s390/kernel/head.S +1 -1
@@ -35,7 +35,7 @@ #define ARCH_OFFSET 0 #endif -.section ".text.head","ax" +.section ".text..head","ax" #ifndef CONFIG_IPL .org 0 .long 0x00080000,0x80000000+startup # Just a restart PSW
arch/s390/kernel/init_task.c +1 -1
@@ -30,7 +30,7 @@ EXPORT_SYMBOL(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/s390/kernel/vdso.c +1 -1
@@ -64,7 +64,7 @@ __setup("vdso=", vdso_setup);static union {struct vdso_data data;u8 page[PAGE_SIZE ]; -} vdso_data_store __attribute__((__section__(".data.page_aligned"))); +} vdso_data_store __attribute__((__section__(".data..page_aligned")));struct vdso_data *vdso_data = &vdso_data_store.data;/*
arch/s390/kernel/vdso32/vdso32_wrapper.S +1 -1
@@ -1,7 +1,7 @@ #include <linux/init.h> #include <asm/page.h> - .section ".data.page_aligned" + .section ".data..page_aligned" .globl vdso32_start, vdso32_end .balign PAGE_SIZE
arch/s390/kernel/vdso64/vdso64_wrapper.S +1 -1
@@ -1,7 +1,7 @@ #include <linux/init.h> #include <asm/page.h> - .section ".data.page_aligned" + .section ".data..page_aligned" .globl vdso64_start, vdso64_end .balign PAGE_SIZE
arch/s390/kernel/vmlinux.lds.S +10 -10
@@ -29,7 +29,7 @@ SECTIONS . = 0x00000000; .text : { _text = .; /* Text and read-only data */ - *(.text.head) + *(.text..head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -66,30 +66,30 @@ SECTIONS . = ALIGN(PAGE_SIZE); .data_nosave : { __nosave_begin = .; - *(.data.nosave) + *(.data..nosave) } . = ALIGN(PAGE_SIZE); __nosave_end = .; . = ALIGN(PAGE_SIZE); - .data.page_aligned : { - *(.data.idt) + .data..page_aligned : { + *(.data..idt) } . = ALIGN(0x100); - .data.cacheline_aligned : { - *(.data.cacheline_aligned) + .data..cacheline_aligned : { + *(.data..cacheline_aligned) } . = ALIGN(0x100); - .data.read_mostly : { - *(.data.read_mostly) + .data..read_mostly : { + *(.data..read_mostly) } _edata = .; /* End of data section */ . = ALIGN(THREAD_SIZE); /* init_task */ - .data.init_task : { - *(.data.init_task) + .data..init_task : { + *(.data..init_task) } /* will be freed after init */
arch/sh/include/asm/cache.h +1 -1
@@ -14,7 +14,7 @@#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __read_mostly __attribute__((__section__(".data..read_mostly")))#ifndef __ASSEMBLY__ struct cache_info {
arch/sh/kernel/cpu/sh5/entry.S +2 -2
@@ -2058,10 +2058,10 @@ asm_uaccess_end: /* - * --- .text.init Section + * --- .text..init Section */ - .section .text.init, "ax" + .section .text..init, "ax" /* * void trap_init (void)
arch/sh/kernel/head_32.S +1 -1
@@ -40,7 +40,7 @@ ENTRY(empty_zero_page) 1: .skip PAGE_SIZE - empty_zero_page - 1b - .section .text.head, "ax" + .section .text..head, "ax" /* * Condition at the entry of _stext:
arch/sh/kernel/head_64.S +1 -1
@@ -110,7 +110,7 @@ empty_bad_pte_table: fpu_in_use: .quad 0 - .section .text.head, "ax" + .section .text..head, "ax" .balign L1_CACHE_BYTES /* * Condition at the entry of __stext:
arch/sh/kernel/init_task.c +1 -1
@@ -21,7 +21,7 @@ EXPORT_SYMBOL(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
arch/sh/kernel/irq.c +2 -2
@@ -158,10 +158,10 @@ asmlinkage int do_IRQ(unsigned int irq, struct pt_regs *regs)#ifdef CONFIG_IRQSTACKS static char softirq_stack[NR_CPUS * THREAD_SIZE] - __attribute__((__section__(".bss.page_aligned"))); + __attribute__((__section__(".bss..page_aligned"))); static char hardirq_stack[NR_CPUS * THREAD_SIZE] - __attribute__((__section__(".bss.page_aligned"))); + __attribute__((__section__(".bss..page_aligned")));/* * allocate per-cpu stacks for hardirq and for softirq processing
arch/sh/kernel/vmlinux_32.lds.S +7 -7
@@ -28,7 +28,7 @@ SECTIONS } = 0 .text : { - *(.text.head) + *(.text..head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -58,19 +58,19 @@ SECTIONS . = ALIGN(THREAD_SIZE); .data : { /* Data */ - *(.data.init_task) + *(.data..init_task) . = ALIGN(L1_CACHE_BYTES); - *(.data.cacheline_aligned) + *(.data..cacheline_aligned) . = ALIGN(L1_CACHE_BYTES); - *(.data.read_mostly) + *(.data..read_mostly) . = ALIGN(PAGE_SIZE); - *(.data.page_aligned) + *(.data..page_aligned) __nosave_begin = .; - *(.data.nosave) + *(.data..nosave) . = ALIGN(PAGE_SIZE); __nosave_end = .;
@@ -128,7 +128,7 @@ SECTIONS .bss : { __init_end = .; __bss_start = .; /* BSS */ - *(.bss.page_aligned) + *(.bss..page_aligned) *(.bss) *(COMMON) . = ALIGN(4);
arch/sh/kernel/vmlinux_64.lds.S +7 -7
@@ -42,7 +42,7 @@ SECTIONS } = 0 .text : C_PHYS(.text) { - *(.text.head) + *(.text..head) TEXT_TEXT *(.text64) *(.text..SHmedia32)
@@ -70,19 +70,19 @@ SECTIONS . = ALIGN(THREAD_SIZE); .data : C_PHYS(.data) { /* Data */ - *(.data.init_task) + *(.data..init_task) . = ALIGN(L1_CACHE_BYTES); - *(.data.cacheline_aligned) + *(.data..cacheline_aligned) . = ALIGN(L1_CACHE_BYTES); - *(.data.read_mostly) + *(.data..read_mostly) . = ALIGN(PAGE_SIZE); - *(.data.page_aligned) + *(.data..page_aligned) __nosave_begin = .; - *(.data.nosave) + *(.data..nosave) . = ALIGN(PAGE_SIZE); __nosave_end = .;
@@ -140,7 +140,7 @@ SECTIONS .bss : C_PHYS(.bss) { __init_end = .; __bss_start = .; /* BSS */ - *(.bss.page_aligned) + *(.bss..page_aligned) *(.bss) *(COMMON) . = ALIGN(4);
arch/sparc/boot/btfixupprep.c +2 -2
@@ -171,7 +171,7 @@ main1: } }else if (buffer[nbase+4 ] !='_' )continue ; -if (!strcmp (sect,".text.exit" )) +if (!strcmp (sect,".text..exit" ))continue ; if (strcmp (sect, ".text") && strcmp (sect, ".init.text") &&
@@ -325,7 +325,7 @@ main1: (*rr)->next =NULL ; }printf ("! Generated by btfixupprep. Do not edit.\n\n" ); -printf ("\t.section\t\".data.init\",#alloc,#write\n\t.align\t4\n\n" ); +printf ("\t.section\t\".data..init\",#alloc,#write\n\t.align\t4\n\n" );printf ("\t.global\t___btfixup_start\n___btfixup_start:\n\n" );for (i =0 ; i < last; i++) { f = array + i;
arch/sparc/include/asm/cache.h +1 -1
@@ -19,7 +19,7 @@#define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __read_mostly __attribute__((__section__(".data..read_mostly")))#ifdef CONFIG_SPARC32 #include <asm/asi.h>
arch/sparc/kernel/head_32.S +2 -2
@@ -72,7 +72,7 @@ sun4e_notsup: .align 4 /* The Sparc trap table, bootloader gives us control at _start. */ - .section .text.head,"ax" + .section .text..head,"ax" .globl start, _stext, _start, __stext .globl trapbase _start: /* danger danger */
@@ -735,7 +735,7 @@ go_to_highmem: nop /* The code above should be at beginning and we have to take care about - * short jumps, as branching to .text.init section from .text is usually + * short jumps, as branching to .text..init section from .text is usually * impossible */ __INIT /* Acquire boot time privileged register values, this will help debugging.
arch/sparc/kernel/head_64.S +1 -1
@@ -467,7 +467,7 @@ jump_to_sun4u_init: jmpl %g2 + %g0, %g0 nop - .section .text.init.refok + .section .text..init.refok sun4u_init: BRANCH_IF_SUN4V(g1, sun4v_init)
arch/sparc/kernel/init_task.c +1 -1
@@ -22,5 +22,5 @@ EXPORT_SYMBOL(init_task);* in etrap.S which assumes it. */ union thread_union init_thread_union - __attribute__((section (".data.init_task"))) + __attribute__((section (".data..init_task"))) = { INIT_THREAD_INFO(init_task) };
arch/sparc/kernel/vmlinux.lds.S +7 -7
@@ -41,7 +41,7 @@ SECTIONS .text TEXTSTART : { _text = .; - *(.text.head) + *(.text..head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -59,20 +59,20 @@ SECTIONS *(.data1) } . = ALIGN(SMP_CACHE_BYTES); - .data.cacheline_aligned : { - *(.data.cacheline_aligned) + .data..cacheline_aligned : { + *(.data..cacheline_aligned) } . = ALIGN(SMP_CACHE_BYTES); - .data.read_mostly : { - *(.data.read_mostly) + .data..read_mostly : { + *(.data..read_mostly) } /* End of data section */ _edata = .; /* init_task */ . = ALIGN(THREAD_SIZE); - .data.init_task : { - *(.data.init_task) + .data..init_task : { + *(.data..init_task) } .fixup : { __start___fixup = .;
arch/um/include/asm/common.lds.S +2 -2
@@ -49,9 +49,9 @@ } . = ALIGN(32); - .data.percpu : { + .data..percpu : { __per_cpu_start = . ; - *(.data.percpu) + *(.data..percpu) __per_cpu_end = . ; }
arch/um/kernel/dyn.lds.S +2 -2
@@ -97,9 +97,9 @@ SECTIONS .fini_array : { *(.fini_array) } .data : { . = ALIGN(KERNEL_STACK_SIZE); /* init_task */ - *(.data.init_task) + *(.data..init_task) . = ALIGN(KERNEL_STACK_SIZE); - *(.data.init_irqstack) + *(.data..init_irqstack) DATA_DATA *(.data.* .gnu.linkonce.d.*) SORT(CONSTRUCTORS)
arch/um/kernel/init_task.c +2 -2
@@ -34,9 +34,9 @@ EXPORT_SYMBOL(init_task);*/ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) }; union thread_union cpu0_irqstack - __attribute__((__section__(".data.init_irqstack"))) = + __attribute__((__section__(".data..init_irqstack"))) = { INIT_THREAD_INFO(init_task) };
arch/um/kernel/uml.lds.S +2 -2
@@ -53,9 +53,9 @@ SECTIONS .data : { . = ALIGN(KERNEL_STACK_SIZE); /* init_task */ - *(.data.init_task) + *(.data..init_task) . = ALIGN(KERNEL_STACK_SIZE); - *(.data.init_irqstack) + *(.data..init_irqstack) DATA_DATA *(.gnu.linkonce.d*) CONSTRUCTORS
arch/x86/boot/compressed/head_32.S +1 -1
@@ -29,7 +29,7 @@ #include <asm/boot.h> #include <asm/asm-offsets.h> -.section ".text.head","ax",@progbits +.section ".text..head","ax",@progbits .globl startup_32 startup_32:
arch/x86/boot/compressed/head_64.S +1 -1
@@ -33,7 +33,7 @@ #include <asm/processor-flags.h> #include <asm/asm-offsets.h> -.section ".text.head" +.section ".text..head" .code32 .globl startup_32
arch/x86/boot/compressed/relocs.c +1 -1
@@ -559,7 +559,7 @@ static void emit_relocs(int as_text)/* Print the relocations in a form suitable that * gas will like. */ -printf (".section \".data.reloc\",\"a\"\n" ); +printf (".section \".data..reloc\",\"a\"\n" );printf (".balign 4\n" );for (i =0 ; i < reloc_count; i++) {printf ("\t .long 0x%08lx\n" , relocs[i]);
arch/x86/boot/compressed/vmlinux.scr +1 -1
@@ -1,6 +1,6 @@ SECTIONS { - .rodata.compressed : { + .rodata..compressed : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data)
arch/x86/boot/compressed/vmlinux_32.lds +10 -4
@@ -7,13 +7,13 @@ SECTIONS * address 0. */ . = 0; - .text.head : { + .text..head : { _head = . ; - *(.text.head) + *(.text..head) _ehead = . ; } - .rodata.compressed : { - *(.rodata.compressed) + .rodata..compressed : { + *(.rodata..compressed) } .text : { _text = .; /* Text */
@@ -21,6 +21,10 @@ SECTIONS *(.text.*) _etext = . ; } + .got : { + *(.got) + *(.got.*) + } .rodata : { _rodata = . ; *(.rodata) /* read-only data */
@@ -40,4 +44,6 @@ SECTIONS *(COMMON) _end = . ; } + /* Be bold, and discard everything not explicitly mentioned */ + /DISCARD/ : { *(*) } }
arch/x86/boot/compressed/vmlinux_64.lds +6 -4
@@ -7,13 +7,13 @@ SECTIONS * address 0. */ . = 0; - .text.head : { + .text..head : { _head = . ; - *(.text.head) + *(.text..head) _ehead = . ; } - .rodata.compressed : { - *(.rodata.compressed) + .rodata..compressed : { + *(.rodata..compressed) } .text : { _text = .; /* Text */
@@ -45,4 +45,6 @@ SECTIONS . = . + 4096 * 6; _ebss = .; } + /* Be bold, and discard everything not explicitly mentioned */ + /DISCARD/ : { *(*) } }
arch/x86/include/asm/cache.h +2 -2
@@ -5,7 +5,7 @@#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __read_mostly __attribute__((__section__(".data..read_mostly")))#ifdef CONFIG_X86_VSMP /* vSMP Internode cacheline shift */
@@ -13,7 +13,7 @@#ifdef CONFIG_SMP #define __cacheline_aligned_in_smp \ __attribute__((__aligned__(1 << (INTERNODE_CACHE_SHIFT)))) \ - __attribute__((__section__(".data.page_aligned"))) + __attribute__((__section__(".data..page_aligned")))#endif #endif
arch/x86/kernel/acpi/wakeup_32.S +1 -1
@@ -1,4 +1,4 @@ - .section .text.page_aligned + .section .text..page_aligned #include <linux/linkage.h> #include <asm/segment.h> #include <asm/page.h>
arch/x86/kernel/head_32.S +3 -3
@@ -81,7 +81,7 @@ INIT_MAP_BEYOND_END = BOOTBITMAP_SIZE + (PAGE_TABLE_SIZE + ALLOCATOR_SLOP)*PAGE_ * any particular GDT layout, because we load our own as soon as we * can. */ -.section .text.head,"ax",@progbits +.section .text..head,"ax",@progbits ENTRY(startup_32) /* test KEEP_SEGMENTS flag to see if the bootloader is asking us to not reload segments */
@@ -609,7 +609,7 @@ ENTRY(_stext) /* * BSS section */ -.section ".bss.page_aligned","wa" +.section ".bss..page_aligned","wa" .align PAGE_SIZE_asm #ifdef CONFIG_X86_PAE swapper_pg_pmd:
@@ -626,7 +626,7 @@ ENTRY(empty_zero_page) * This starts the data section. */ #ifdef CONFIG_X86_PAE -.section ".data.page_aligned","wa" +.section ".data..page_aligned","wa" /* Page-aligned for the benefit of paravirt? */ .align PAGE_SIZE_asm ENTRY(swapper_pg_dir)
arch/x86/kernel/head_64.S +2 -2
@@ -40,7 +40,7 @@ L4_START_KERNEL = pgd_index(__START_KERNEL_map) L3_START_KERNEL = pud_index(__START_KERNEL_map) .text - .section .text.head + .section .text..head .code64 .globl startup_64 startup_64:
@@ -414,7 +414,7 @@ ENTRY(phys_base) ENTRY(idt_table) .skip 256 * 16 - .section .bss.page_aligned, "aw", @nobits + .section .bss..page_aligned, "aw", @nobits .align PAGE_SIZE ENTRY(empty_zero_page) .skip PAGE_SIZE
arch/x86/kernel/init_task.c +2 -2
@@ -22,7 +22,7 @@ struct mm_struct init_mm = INIT_MM(init_mm);* "init_task" linker map entry.. */ union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };/*
@@ -36,7 +36,7 @@ EXPORT_SYMBOL(init_task);/* * per-CPU TSS segments. Threads are completely 'soft' on Linux, * no more per-task TSS's. The TSS size is kept cacheline-aligned -* so they are allowed to end up in the .data.cacheline_aligned +* so they are allowed to end up in the .data..cacheline_aligned * section. Since TSS's are completely CPU-local, we want them * on exact cacheline boundaries, to eliminate cacheline ping-pong. */
arch/x86/kernel/traps.c +1 -1
@@ -78,7 +78,7 @@ char ignore_fpu_irq;* for this. */ gate_desc idt_table[256] - __attribute__((__section__(".data.idt"))) = { { { { 0, 0 } } }, }; + __attribute__((__section__(".data..idt"))) = { { { { 0, 0 } } }, };#endif DECLARE_BITMAP (used_vectors,NR_VECTORS );
arch/x86/kernel/vmlinux_32.lds.S +18 -18
@@ -31,15 +31,15 @@ SECTIONS . = LOAD_OFFSET + LOAD_PHYSICAL_ADDR; phys_startup_32 = startup_32 - LOAD_OFFSET; - .text.head : AT(ADDR(.text.head) - LOAD_OFFSET) { + .text..head : AT(ADDR(.text..head) - LOAD_OFFSET) { _text = .; /* Text and read-only data */ - *(.text.head) + *(.text..head) } :text = 0x9090 /* read-only */ .text : AT(ADDR(.text) - LOAD_OFFSET) { . = ALIGN(PAGE_SIZE); /* not really needed, already page aligned */ - *(.text.page_aligned) + *(.text..page_aligned) TEXT_TEXT SCHED_TEXT LOCK_TEXT
@@ -71,32 +71,32 @@ SECTIONS . = ALIGN(PAGE_SIZE); .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { __nosave_begin = .; - *(.data.nosave) + *(.data..nosave) . = ALIGN(PAGE_SIZE); __nosave_end = .; } . = ALIGN(PAGE_SIZE); - .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { - *(.data.page_aligned) - *(.data.idt) + .data..page_aligned : AT(ADDR(.data..page_aligned) - LOAD_OFFSET) { + *(.data..page_aligned) + *(.data..idt) } . = ALIGN(32); - .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) { - *(.data.cacheline_aligned) + .data..cacheline_aligned : AT(ADDR(.data..cacheline_aligned) - LOAD_OFFSET) { + *(.data..cacheline_aligned) } /* rarely changed data like cpu maps */ . = ALIGN(32); - .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { - *(.data.read_mostly) + .data..read_mostly : AT(ADDR(.data..read_mostly) - LOAD_OFFSET) { + *(.data..read_mostly) _edata = .; /* End of data section */ } . = ALIGN(THREAD_SIZE); /* init_task */ - .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) { - *(.data.init_task) + .data..init_task : AT(ADDR(.data..init_task) - LOAD_OFFSET) { + *(.data..init_task) } /* might get freed after init */
@@ -179,11 +179,11 @@ SECTIONS } #endif . = ALIGN(PAGE_SIZE); - .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { + .data..percpu : AT(ADDR(.data..percpu) - LOAD_OFFSET) { __per_cpu_start = .; - *(.data.percpu.page_aligned) - *(.data.percpu) - *(.data.percpu.shared_aligned) + *(.data..percpu.page_aligned) + *(.data..percpu) + *(.data..percpu.shared_aligned) __per_cpu_end = .; } . = ALIGN(PAGE_SIZE);
@@ -192,7 +192,7 @@ SECTIONS .bss : AT(ADDR(.bss) - LOAD_OFFSET) { __init_end = .; __bss_start = .; /* BSS */ - *(.bss.page_aligned) + *(.bss..page_aligned) *(.bss) . = ALIGN(4); __bss_stop = .;
arch/x86/kernel/vmlinux_64.lds.S +13 -13
@@ -28,7 +28,7 @@ SECTIONS _text = .; /* Text and read-only data */ .text : AT(ADDR(.text) - LOAD_OFFSET) { /* First the code that has to be first for bootstrapping */ - *(.text.head) + *(.text..head) _stext = .; /* Then the rest */ TEXT_TEXT
@@ -63,17 +63,17 @@ SECTIONS . = ALIGN(PAGE_SIZE); . = ALIGN(CONFIG_X86_L1_CACHE_BYTES); - .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) { - *(.data.cacheline_aligned) + .data..cacheline_aligned : AT(ADDR(.data..cacheline_aligned) - LOAD_OFFSET) { + *(.data..cacheline_aligned) } . = ALIGN(CONFIG_X86_INTERNODE_CACHE_BYTES); - .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { - *(.data.read_mostly) + .data..read_mostly : AT(ADDR(.data..read_mostly) - LOAD_OFFSET) { + *(.data..read_mostly) } #define VSYSCALL_ADDR (-10*1024*1024) -#define VSYSCALL_PHYS_ADDR ((LOADADDR(.data.read_mostly) + SIZEOF(.data.read_mostly) + 4095) & ~(4095)) -#define VSYSCALL_VIRT_ADDR ((ADDR(.data.read_mostly) + SIZEOF(.data.read_mostly) + 4095) & ~(4095)) +#define VSYSCALL_PHYS_ADDR ((LOADADDR(.data..read_mostly) + SIZEOF(.data..read_mostly) + 4095) & ~(4095)) +#define VSYSCALL_VIRT_ADDR ((ADDR(.data..read_mostly) + SIZEOF(.data..read_mostly) + 4095) & ~(4095)) #define VLOAD_OFFSET (VSYSCALL_ADDR - VSYSCALL_PHYS_ADDR) #define VLOAD(x) (ADDR(x) - VLOAD_OFFSET)
@@ -122,13 +122,13 @@ SECTIONS #undef VVIRT . = ALIGN(THREAD_SIZE); /* init_task */ - .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) { - *(.data.init_task) + .data..init_task : AT(ADDR(.data..init_task) - LOAD_OFFSET) { + *(.data..init_task) }:data.init . = ALIGN(PAGE_SIZE); - .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { - *(.data.page_aligned) + .data..page_aligned : AT(ADDR(.data..page_aligned) - LOAD_OFFSET) { + *(.data..page_aligned) } /* might get freed after init */
@@ -215,13 +215,13 @@ SECTIONS . = ALIGN(PAGE_SIZE); __nosave_begin = .; - .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { *(.data.nosave) } + .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { *(.data..nosave) } . = ALIGN(PAGE_SIZE); __nosave_end = .; __bss_start = .; /* BSS */ .bss : AT(ADDR(.bss) - LOAD_OFFSET) { - *(.bss.page_aligned) + *(.bss..page_aligned) *(.bss) } __bss_stop = .;
arch/xtensa/kernel/head.S +1 -1
@@ -234,7 +234,7 @@ should_never_return: * BSS section */ -.section ".bss.page_aligned", "w" +.section ".bss..page_aligned", "w" ENTRY(swapper_pg_dir) .fill PAGE_SIZE, 1, 0 ENTRY(empty_zero_page)
arch/xtensa/kernel/init_task.c +1 -1
@@ -28,7 +28,7 @@ struct mm_struct init_mm = INIT_MM(init_mm);EXPORT_SYMBOL (init_mm); union thread_union init_thread_union - __attribute__((__section__(".data.init_task"))) = + __attribute__((__section__(".data..init_task"))) = { INIT_THREAD_INFO(init_task) };struct task_struct init_task =INIT_TASK (init_task);
arch/xtensa/kernel/vmlinux.lds.S +3 -3
@@ -121,14 +121,14 @@ SECTIONS DATA_DATA CONSTRUCTORS . = ALIGN(XCHAL_ICACHE_LINESIZE); - *(.data.cacheline_aligned) + *(.data..cacheline_aligned) } _edata = .; /* The initial task */ . = ALIGN(8192); - .data.init_task : { *(.data.init_task) } + .data..init_task : { *(.data..init_task) } /* Initialization code and data: */
@@ -259,7 +259,7 @@ SECTIONS /* BSS section */ _bss_start = .; - .bss : { *(.bss.page_aligned) *(.bss) } + .bss : { *(.bss..page_aligned) *(.bss) } _bss_end = .; _end = .;
include/asm-frv/init.h +4 -4
@@ -1,12 +1,12 @@#ifndef _ASM_INIT_H#define _ASM_INIT_H -#define __init __attribute__ ((__section__ (".text.init"))) -#define __initdata __attribute__ ((__section__ (".data.init"))) +#define __init __attribute__ ((__section__ (".text..init"))) +#define __initdata __attribute__ ((__section__ (".data..init")))/* For assembly routines */ -#define __INIT .section ".text.init",#alloc,#execinstr +#define __INIT .section ".text..init",#alloc,#execinstr#define __FINIT .previous -#define __INITDATA .section ".data.init",#alloc,#write +#define __INITDATA .section ".data..init",#alloc,#write#endif
include/asm-generic/vmlinux.lds.h +7 -7
@@ -64,7 +64,7 @@/* .data section */ #define DATA_DATA \ *(.data) \ - *(.data.init.refok) \ + *(.data..init.refok) \ *(.ref.data) \ DEV_KEEP(init.data) \ DEV_KEEP(exit.data) \
@@ -255,8 +255,8 @@ *(.text.hot) \ *(.text) \ *(.ref.text) \ - *(.text.init.refok) \ - *(.exit.text.refok) \ + *(.text..init.refok) \ + *(.text..exit.refok) \ DEV_KEEP(init.text) \ DEV_KEEP(exit.text) \CPU_KEEP (init.text) \
@@ -433,9 +433,9 @@#define PERCPU (align) \ . = ALIGN(align); \ VMLINUX_SYMBOL(__per_cpu_start) = .; \ - .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { \ - *(.data.percpu.page_aligned) \ - *(.data.percpu) \ - *(.data.percpu.shared_aligned) \ + .data..percpu : AT(ADDR(.data..percpu) - LOAD_OFFSET) { \ + *(.data..percpu.page_aligned) \ + *(.data..percpu) \ + *(.data..percpu.shared_aligned) \ } \ VMLINUX_SYMBOL(__per_cpu_end) = .;
include/linux/cache.h +1 -1
@@ -31,7 +31,7 @@#ifndef __cacheline_aligned#define __cacheline_aligned \ __attribute__((__aligned__(SMP_CACHE_BYTES), \ - __section__(".data.cacheline_aligned"))) + __section__(".data..cacheline_aligned")))#endif /* __cacheline_aligned */ #ifndef __cacheline_aligned_in_smp
include/linux/init.h +4 -4
@@ -62,9 +62,9 @@/* backward compatibility note * A few places hardcode the old section names: -* .text.init.refok -* .data.init.refok -* .exit.text.refok +* .text..init.refok +* .data..init.refok +* .text..exit.refok * They should be converted to use the defines from this file */
@@ -301,7 +301,7 @@ void __init parse_early_param(void);#endif /* Data marked not to be saved by software suspend */ -#define __nosavedata __section(.data.nosave) +#define __nosavedata __section(.data..nosave)/* This means "can be init if no module support, otherwise module load may call it." */
include/linux/linkage.h +2 -2
@@ -18,8 +18,8 @@# define asmregparm#endif -#define __page_aligned_data __section(.data.page_aligned) __aligned(PAGE_SIZE) -#define __page_aligned_bss __section(.bss.page_aligned) __aligned(PAGE_SIZE) +#define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE) +#define __page_aligned_bss __section(.bss..page_aligned) __aligned(PAGE_SIZE)/* * This is used by architectures to keep arguments on the stack
include/linux/percpu.h +5 -5
@@ -10,13 +10,13 @@#ifdef CONFIG_SMP #define DEFINE_PER_CPU (type, name) \ - __attribute__((__section__(".data.percpu"))) \ + __attribute__((__section__(".data..percpu"))) \ PER_CPU_ATTRIBUTES __typeof__(type) per_cpu__##name#ifdef MODULE -#define SHARED_ALIGNED_SECTION ".data.percpu" +#define SHARED_ALIGNED_SECTION ".data..percpu"#else -#define SHARED_ALIGNED_SECTION ".data.percpu.shared_aligned" +#define SHARED_ALIGNED_SECTION ".data..percpu.shared_aligned"#endif #define DEFINE_PER_CPU_SHARED_ALIGNED (type, name) \
@@ -24,8 +24,8 @@ PER_CPU_ATTRIBUTES __typeof__(type) per_cpu__##name \ ____cacheline_aligned_in_smp -#define DEFINE_PER_CPU_PAGE_ALIGNED (type, name) \ - __attribute__((__section__(".data.percpu.page_aligned"))) \ +#define DEFINE_PER_CPU_PAGE_ALIGNED (type, name) \ + __attribute__((__section__(".data..percpu.page_aligned"))) \ PER_CPU_ATTRIBUTES __typeof__(type) per_cpu__##name#else #define DEFINE_PER_CPU (type, name) \
include/linux/spinlock.h +1 -1
@@ -60,7 +60,7 @@/* * Must define these before including other files, inline functions need them */ -#define LOCK_SECTION_NAME ".text.lock."KBUILD_BASENAME +#define LOCK_SECTION_NAME ".text..lock."KBUILD_BASENAME#define LOCK_SECTION_START (extra) \ ".subsection 1\n\t" \
kernel/module.c +1 -1
@@ -475,7 +475,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)
scripts/mod/modpost.c +6 -6
@@ -794,9 +794,9 @@ static const char *data_sections[] = { DATA_SECTIONS, NULL };/* sections that may refer to an init/exit section with no warning */ static const char *initref_sections[] = { -".text.init.refok*" , -".exit.text.refok*" , -".data.init.refok*" , +".text..init.refok*" , +".text..exit.refok*" , +".data..init.refok*" ,NULL };
@@ -915,7 +915,7 @@ static int section_mismatch(const char *fromsec, const char *tosec)* Pattern 0: * Do not warn if funtion/data are marked with __init_refok/__initdata_refok. * The pattern is identified by: -* fromsec = .text.init.refok* | .data.init.refok* +* fromsec = .text..init.refok* | .data..init.refok* * * Pattern 1: * If a module parameter is declared __initdata and permissions=0
@@ -939,8 +939,8 @@ static int section_mismatch(const char *fromsec, const char *tosec)* *probe_one, *_console, *_timer * * Pattern 3: -* Whitelist all refereces from .text.head to .init.data -* Whitelist all refereces from .text.head to .init.text +* Whitelist all references from .text..head to .init.data +* Whitelist all references from .text..head to .init.text * * Pattern 4: * Some symbols belong to init section but still it is ok to reference
scripts/recordmcount.pl +3 -3
@@ -26,7 +26,7 @@ # which will also be the location of that section after final link. # e.g. # -# .section ".text.sched" +# .section ".text..sched" # .globl my_func # my_func: # [...]
@@ -39,7 +39,7 @@ # [...] # # Both relocation offsets for the mcounts in the above example will be -# offset from .text.sched. If we make another file called tmp.s with: +# offset from .text..sched. If we make another file called tmp.s with: # # .section __mcount_loc # .quad my_func + 0x5
@@ -51,7 +51,7 @@ # But this gets hard if my_func is not globl (a static function). # In such a case we have: # -# .section ".text.sched" +# .section ".text..sched" # my_func: # [...] # call mcount (offset: 0x5)
Signature · 1 line
1.6.2
cover Add support for compiling with -ffunction-sections -fdata-sections
Hi Linus,
I'd like to see this patch series merged for 2.6.30. It applies on top of your current master (aka v2.6.29). Patch 1/4 would benefit from special treatment during the merge window, since it makes many small changes in lots of files, and thus is likely to conflict with other changes; the other patches are fairly small.
The purpose of this patch series is to make it possible to build the kernel with "gcc -ffunction-sections -fdata-sections". There are two major applications for this functionality: decreasing vmlinux image size with --gc-sections, and Ksplice.
The original motivation for this functionality was to allow using the linker's unused section garbage collection support (ld --gc-sections) in order to get a smaller vmlinux image for embedded systems. People have been developing patches for supporting building the kernel with -ffunction-sections -fdata-sections for this purpose for a few years now (e.g. [1]). The most recent previous set of patches for --gc-sections was by Denys Vlasenko, and saved 10% on vmlinux size with CONFIG_MODULES=n and 1% with CONFIG_MODULES=y [2,3,4]. The primary source of complexity in the various patch series for doing section garbage collection has been in the patches adding support for compiling the kernel with -ffunction-sections -fdata-sections, so merging this patch series should be a big step towards those significant savings in kernel image size.
[1] <http://lkml.org/lkml/2006/6/4/169>
[2] <http://lkml.org/lkml/2007/9/5/90>
[3] <http://lkml.org/lkml/2007/9/7/110>
[4] <http://lkml.org/lkml/2008/7/1/499>
Support for building the kernel with -ffunction-sections -fdata-sections is the only significant prerequisite change currently required by Ksplice. Ksplice is a system for updating the Linux kernel without rebooting [5].
[5] <http://lkml.org/lkml/2009/2/24/362> is the latest version of the Ksplice patch series
Patches 1/4, 2/4, and 3/4 are independent of each other, but all three are prerequisites for patch 4/4.
--
Anders Kaseorg (1):
modpost: Check the section flags, not name, to catch missing
"ax"/"aw"
Denys Vlasenko (1):
modpost: support objects with more than 64k sections
Tim Abbott (1):
Make section names compatible with -ffunction-sections
-fdata-sections
Waseem Daher (1):
x86: Add an option to compile with -ffunction-sections
-fdata-sections
Documentation/mutex-design.txt | 4 +- Makefile | 4 + arch/alpha/kernel/head.S | 2 +- arch/alpha/kernel/init_task.c | 2 +- arch/alpha/kernel/vmlinux.lds.S | 14 ++-- arch/arm/kernel/head-nommu.S | 2 +- arch/arm/kernel/head.S | 2 +- arch/arm/kernel/init_task.c | 2 +- arch/arm/kernel/vmlinux.lds.S | 14 ++-- arch/arm/mm/proc-v6.S | 2 +- arch/arm/mm/proc-v7.S | 2 +- arch/arm/mm/tlb-v6.S | 2 +- arch/arm/mm/tlb-v7.S | 2 +- arch/avr32/kernel/init_task.c | 2 +- arch/avr32/kernel/vmlinux.lds.S | 6 +- arch/avr32/mm/init.c | 2 +- arch/blackfin/kernel/vmlinux.lds.S | 2 +- arch/cris/kernel/process.c | 2 +- arch/cris/kernel/vmlinux.lds.S | 2 +- arch/frv/kernel/break.S | 4 +- arch/frv/kernel/entry.S | 2 +- arch/frv/kernel/head-mmu-fr451.S | 2 +- arch/frv/kernel/head-uc-fr401.S | 2 +- arch/frv/kernel/head-uc-fr451.S | 2 +- arch/frv/kernel/head-uc-fr555.S | 2 +- arch/frv/kernel/head.S | 4 +- arch/frv/kernel/init_task.c | 2 +- arch/frv/kernel/vmlinux.lds.S | 18 ++-- arch/frv/mm/tlb-miss.S | 2 +- arch/h8300/boot/compressed/head.S | 2 +- arch/h8300/boot/compressed/vmlinux.lds | 2 +- arch/h8300/kernel/init_task.c | 2 +- arch/h8300/kernel/vmlinux.lds.S | 2 +- arch/ia64/include/asm/asmmacro.h | 12 +- arch/ia64/include/asm/cache.h | 2 +- arch/ia64/include/asm/percpu.h | 2 +- arch/ia64/kernel/Makefile | 2 +- arch/ia64/kernel/gate-data.S | 2 +- arch/ia64/kernel/gate.S | 8 +- arch/ia64/kernel/gate.lds.S | 10 +- arch/ia64/kernel/head.S | 2 +- arch/ia64/kernel/init_task.c | 4 +- arch/ia64/kernel/ivt.S | 2 +- arch/ia64/kernel/minstate.h | 4 +- arch/ia64/kernel/paravirtentry.S | 2 +- arch/ia64/kernel/vmlinux.lds.S | 48 ++++---- arch/ia64/kvm/vmm_ivt.S | 2 +- arch/ia64/xen/xensetup.S | 2 +- arch/m32r/kernel/head.S | 2 +- arch/m32r/kernel/init_task.c | 2 +- arch/m32r/kernel/vmlinux.lds.S | 8 +- arch/m68k/kernel/head.S | 2 +- arch/m68k/kernel/process.c | 2 +- arch/m68k/kernel/sun3-head.S | 2 +- arch/m68k/kernel/vmlinux-std.lds | 6 +- arch/m68k/kernel/vmlinux-sun3.lds | 4 +- arch/m68knommu/kernel/init_task.c | 2 +- arch/m68knommu/kernel/vmlinux.lds.S | 6 +- arch/m68knommu/platform/68360/head-ram.S | 2 +- arch/m68knommu/platform/68360/head-rom.S | 2 +- arch/mips/kernel/init_task.c | 2 +- arch/mips/kernel/vmlinux.lds.S | 8 +- arch/mips/lasat/image/head.S | 2 +- arch/mips/lasat/image/romscript.normal | 2 +- arch/mn10300/kernel/head.S | 2 +- arch/mn10300/kernel/init_task.c | 2 +- arch/mn10300/kernel/vmlinux.lds.S | 16 ++-- arch/parisc/include/asm/cache.h | 2 +- arch/parisc/include/asm/system.h | 2 +- arch/parisc/kernel/head.S | 2 +- arch/parisc/kernel/init_task.c | 8 +- arch/parisc/kernel/vmlinux.lds.S | 26 +++--- arch/powerpc/include/asm/cache.h | 2 +- arch/powerpc/include/asm/page_64.h | 2 +- arch/powerpc/include/asm/ppc_asm.h | 4 +- arch/powerpc/kernel/head_32.S | 2 +- arch/powerpc/kernel/head_40x.S | 2 +- arch/powerpc/kernel/head_44x.S | 2 +- arch/powerpc/kernel/head_8xx.S | 2 +- arch/powerpc/kernel/head_fsl_booke.S | 2 +- arch/powerpc/kernel/init_task.c | 2 +- arch/powerpc/kernel/machine_kexec_64.c | 2 +- arch/powerpc/kernel/vdso.c | 2 +- arch/powerpc/kernel/vdso32/vdso32_wrapper.S | 2 +- arch/powerpc/kernel/vdso64/vdso64_wrapper.S | 2 +- arch/powerpc/kernel/vmlinux.lds.S | 28 +++--- arch/s390/include/asm/cache.h | 2 +- arch/s390/kernel/head.S | 2 +- arch/s390/kernel/init_task.c | 2 +- arch/s390/kernel/vdso.c | 2 +- arch/s390/kernel/vdso32/vdso32_wrapper.S | 2 +- arch/s390/kernel/vdso64/vdso64_wrapper.S | 2 +- arch/s390/kernel/vmlinux.lds.S | 20 ++-- arch/sh/include/asm/cache.h | 2 +- arch/sh/kernel/cpu/sh5/entry.S | 4 +- arch/sh/kernel/head_32.S | 2 +- arch/sh/kernel/head_64.S | 2 +- arch/sh/kernel/init_task.c | 2 +- arch/sh/kernel/irq.c | 4 +- arch/sh/kernel/vmlinux_32.lds.S | 14 ++-- arch/sh/kernel/vmlinux_64.lds.S | 14 ++-- arch/sparc/boot/btfixupprep.c | 4 +- arch/sparc/include/asm/cache.h | 2 +- arch/sparc/kernel/head_32.S | 4 +- arch/sparc/kernel/head_64.S | 2 +- arch/sparc/kernel/init_task.c | 2 +- arch/sparc/kernel/vmlinux.lds.S | 14 ++-- arch/um/include/asm/common.lds.S | 4 +- arch/um/kernel/dyn.lds.S | 4 +- arch/um/kernel/init_task.c | 4 +- arch/um/kernel/uml.lds.S | 4 +- arch/x86/Kconfig | 1 + arch/x86/boot/compressed/head_32.S | 2 +- arch/x86/boot/compressed/head_64.S | 2 +- arch/x86/boot/compressed/relocs.c | 2 +- arch/x86/boot/compressed/vmlinux.scr | 2 +- arch/x86/boot/compressed/vmlinux_32.lds | 14 ++- arch/x86/boot/compressed/vmlinux_64.lds | 10 +- arch/x86/include/asm/cache.h | 4 +- arch/x86/kernel/acpi/wakeup_32.S | 2 +- arch/x86/kernel/head_32.S | 6 +- arch/x86/kernel/head_64.S | 4 +- arch/x86/kernel/init_task.c | 4 +- arch/x86/kernel/traps.c | 2 +- arch/x86/kernel/vmlinux_32.lds.S | 37 ++++--- arch/x86/kernel/vmlinux_64.lds.S | 27 +++--- arch/xtensa/kernel/head.S | 2 +- arch/xtensa/kernel/init_task.c | 2 +- arch/xtensa/kernel/vmlinux.lds.S | 6 +- include/asm-frv/init.h | 8 +- include/asm-generic/vmlinux.lds.h | 19 ++-- include/linux/cache.h | 2 +- include/linux/init.h | 8 +- include/linux/linkage.h | 4 +- include/linux/percpu.h | 10 +- include/linux/spinlock.h | 2 +- kernel/module.c | 2 +- lib/Kconfig.debug | 18 +++ scripts/mod/file2alias.c | 6 +- scripts/mod/modpost.c | 155 ++++++++++++++++----------- scripts/mod/modpost.h | 43 ++++++++ scripts/recordmcount.pl | 6 +- 142 files changed, 515 insertions(+), 409 deletions(-)
Hi Tim,
Quoted 6 lines · On Tue, 24 Mar 2009 01:28:41 -0400 Tim Abbott <[email protected]> wrote:
I'd like to see this patch series merged for 2.6.30. It applies on top of your current master (aka v2.6.29). Patch 1/4 would benefit from special treatment during the merge window, since it makes many small changes in lots of files, and thus is likely to conflict with other changes; the other patches are fairly small.
Indeed. I just did a merge of your changes with next-20090323 and it conflicted with changes in 10 files across 4 architectures. There has been work on several areas that you are changing here (some of which will make your life easier - like the percpu changes). I suspect that at least some of patch 1/4 could have bee split out and sent to the appropriate maintainers.
As it is, It looks like this will need to be rebased on top of (say) 2.6.30-rc1 (at least) in order not to inflict too much pain on others.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 8 lines · Stephen Rothwell
Quoted 6 lines · On Tue, 24 Mar 2009 01:28:41 -0400 Tim Abbott <[email protected]> wrote:
I'd like to see this patch series merged for 2.6.30. It applies on top of your current master (aka v2.6.29). Patch 1/4 would benefit from special treatment during the merge window, since it makes many small changes in lots of files, and thus is likely to conflict with other changes; the other patches are fairly small.
Quoted 4 lines
Indeed. I just did a merge of your changes with next-20090323 and it conflicted with changes in 10 files across 4 architectures. There has been work on several areas that you are changing here (some of which will make your life easier - like the percpu changes).
Yeah, unfortunately, because people are always modifying the kernel's "magic" sections, a version of the patch that applies to master will basically always conflict with something in linux-next (at least, this has been my experience updating it during the 2.6.29 release cycle). As Rusty Russell said last month about this patch, there's no good time for this kind of change.
I'm happy to rebase this patch again to merge it late in the merge window if that makes life easier for others. Merge conflicts with this patch are hard to avoid but fairly easy to resolve -- you just replace .data.foo with .data..foo (etc.).
Quoted 2 lines
I suspect that at least some of patch 1/4 could have bee split out and sent to the appropriate maintainers.
Because the change is actually renaming sections, it needs to be made on all the architectures at the same time as changes are made to the architecture-independent code. So, changes in, say, include/linux/init.h:
-#define __nosavedata __section(.data.nosave)
+#define __nosavedata __section(.data..nosave)
must be synchronized with, say, arch/arm/kernel/vmlinux.lds.S:
. = ALIGN(4096);
__nosave_begin = .;- *(.data.nosave)
+ *(.data..nosave)
So, while it might have been useful to split out and send individual per-architecture patches to arch maintainers for review, that would not avoid the need to merge it as a single giant patch.
-Tim Abbott
H. Peter Anvin
reviewerQuoted 3 lines · Tim Abbott
Yeah, unfortunately, because people are always modifying the kernel's "magic" sections, a version of the patch that applies to master will basically always conflict with something in linux-next (at least, this has been my experience updating it during the 2.6.29 release cycle). As Rusty Russell said last month about this patch, there's no good time for this kind of change.
"Just before -rc1" is pretty much the only time to do this kind of changes. It's not the first time we have had this issue.
-hpa
Quoted 2 lines · H. Peter Anvin
"Just before -rc1" is pretty much the only time to do this kind of changes. It's not the first time we have had this issue.
OK. Merging this patch just before -rc1 would be fine with me; I'll keep the patch series updated as the merge window proceeds.
How should I help this patch be merged "just before -rc1"? In particular, how will I know when is the right time to send the updated patch?
-Tim Abbott