projects/linux·commit 5ea293a9

Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild

5ea293a9 · Linus Torvalds <[email protected]> · 2008-01-29 22:46:14 +11:00

* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (79 commits)
  Remove references to "make dep"
  kconfig: document use of HAVE_*
  Introduce new section reference annotations tags: __ref, __refdata, __refconst
  kbuild: warn about ld added unique sections
  kbuild: add verbose option to Section mismatch reporting in modpost
  kconfig: tristate choices with mixed tristate and boolean values
  asm-generic/vmlix.lds.h: simplify __mem{init,exit}* dependencies
  remove __attribute_used__
  kbuild: support ARCH=x86 in buildtar
  kconfig: remove "enable"
  kbuild: simplified warning report in modpost
  kbuild: introduce a few helpers in modpost
  kbuild: use simpler section mismatch warnings in modpost
  kbuild: link vmlinux.o before kallsyms passes
  kbuild: introduce new option to enhance section mismatch analysis
  Use separate sections for __dev/__cpu/__mem code/data
  compiler.h: introduce __section()
  all archs: consolidate init and exit sections in vmlinux.lds.h
  kbuild: check section names consistently in modpost
  kbuild: introduce blacklisting in modpost
  ...
Commit
5ea293a9048d3a58cb0c840fa719d85ad14cba47
Parents
03bc26cf · d3883ece

Merge commit. Changes below are compared with the first parent: 03bc26cf.

Changes

110 files changed · +1833 −1143

FileStatusAddDelContent
.gitignoremodified+1−0View file
Documentation/kbuild/kconfig-language.txtmodified+105−6View file
Makefilemodified+22−6View file
arch/alpha/kernel/vmlinux.lds.Smodified+4−4View file
arch/alpha/lib/dec_and_lock.cmodified+1−2View file
arch/arm/kernel/vmlinux.lds.Smodified+5−5View file
arch/arm/mach-imx/Makefilemodified+0−3View file
arch/arm/mach-netx/Makefilemodified+0−3View file
arch/avr32/kernel/vmlinux.lds.Smodified+4−4View file
arch/blackfin/kernel/vmlinux.lds.Smodified+4−4View file
arch/cris/arch-v10/vmlinux.lds.Smodified+4−4View file
arch/cris/arch-v32/boot/compressed/Makefilemodified+1−1View file
arch/cris/arch-v32/vmlinux.lds.Smodified+4−4View file
arch/frv/boot/Makefilemodified+4−4View file
arch/frv/kernel/gdb-stub.cmodified+1−1View file
arch/frv/kernel/vmlinux.lds.Smodified+7−7View file
arch/h8300/kernel/vmlinux.lds.Smodified+4−4View file
arch/ia64/kernel/vmlinux.lds.Smodified+4−4View file
arch/m32r/kernel/vmlinux.lds.Smodified+6−6View file
arch/m68k/kernel/vmlinux-std.ldsmodified+4−4View file
arch/m68k/kernel/vmlinux-sun3.ldsmodified+4−4View file
arch/m68knommu/kernel/vmlinux.lds.Smodified+4−4View file
arch/mips/kernel/vmlinux.lds.Smodified+4−4View file
arch/mips/tx4927/common/Makefilemodified+0−4View file
arch/mips/tx4938/common/Makefilemodified+0−4View file
arch/mips/tx4938/toshiba_rbtx4938/Makefilemodified+0−4View file
arch/parisc/kernel/vmlinux.lds.Smodified+4−4View file
arch/powerpc/boot/Makefilemodified+1−1View file
arch/powerpc/kernel/sysfs.cmodified+1−1View file
arch/powerpc/kernel/vmlinux.lds.Smodified+6−4View file
arch/powerpc/oprofile/op_model_power4.cmodified+3−3View file
arch/ppc/kernel/vmlinux.lds.Smodified+4−4View file
arch/s390/kernel/vmlinux.lds.Smodified+4−4View file
arch/sh/kernel/vmlinux_32.lds.Smodified+4−4View file
arch/sh/kernel/vmlinux_64.lds.Smodified+4−4View file
arch/sparc/kernel/vmlinux.lds.Smodified+4−4View file
arch/sparc64/kernel/unaligned.cmodified+1−1View file
arch/sparc64/kernel/vmlinux.lds.Smodified+4−4View file
arch/um/include/init.hmodified+13−13View file
arch/um/kernel/dyn.lds.Smodified+2−2View file
arch/um/kernel/uml.lds.Smodified+2−2View file
arch/v850/kernel/vmlinux.lds.Smodified+5−5View file
arch/x86/kernel/vmlinux_32.lds.Smodified+10−4View file
arch/x86/kernel/vmlinux_64.lds.Smodified+13−6View file
arch/xtensa/kernel/vmlinux.lds.Smodified+5−4View file
arch/xtensa/mm/Makefilemodified+0−4View file
arch/xtensa/platform-iss/Makefilemodified+0−5View file
drivers/base/power/Makefilemodified+2−6View file
drivers/infiniband/hw/cxgb3/Makefilemodified+1−2View file
drivers/rapidio/rio.hmodified+2−2View file
fs/compat_ioctl.cmodified+1−1View file
fs/smbfs/Makefilemodified+0−20View file
include/asm-avr32/setup.hmodified+1−1View file
include/asm-generic/vmlinux.lds.hmodified+87−2View file
include/asm-ia64/gcc_intrin.hmodified+1−1View file
include/asm-sh/machvec.hmodified+1−1View file
include/asm-sh/thread_info.hmodified+1−1View file
include/asm-x86/thread_info_32.hmodified+1−1View file
include/linux/Kbuildmodified+4−4View file
include/linux/compiler-gcc3.hmodified+0−2View file
include/linux/compiler-gcc4.hmodified+0−1View file
include/linux/compiler.hmodified+5−4View file
include/linux/elfnote.hmodified+1−1View file
include/linux/init.hmodified+74−56View file
include/linux/module.hmodified+2−2View file
include/linux/moduleparam.hmodified+2−2View file
include/linux/pci.hmodified+1−1View file
init/Kconfigmodified+8−0View file
lib/Kconfig.debugmodified+32−0View file
scripts/Makefile.buildmodified+23−3View file
scripts/Makefile.libmodified+6−0View file
scripts/Makefile.modinstmodified+1−1View file
scripts/Makefile.modpostmodified+1−0View file
scripts/basic/docproc.cmodified+42−2View file
scripts/decodecodemodified+15−2View file
scripts/gcc-version.shmodified+4−1View file
scripts/genksyms/genksyms.cmodified+7−3View file
scripts/kconfig/Makefilemodified+24−15View file
scripts/kconfig/POTFILES.inmodified+7−0View file
scripts/kconfig/conf.cmodified+36−33View file
scripts/kconfig/confdata.cmodified+10−14View file
scripts/kconfig/expr.cmodified+19−13View file
scripts/kconfig/expr.hmodified+9−7View file
scripts/kconfig/gconf.cmodified+9−7View file
scripts/kconfig/lex.zconf.c_shippedmodified+5−0View file
scripts/kconfig/lkc.hmodified+5−0View file
scripts/kconfig/lxdialog/check-lxdialog.shmodified+9−7View file
scripts/kconfig/lxdialog/checklist.cmodified+2−2View file
scripts/kconfig/lxdialog/dialog.hmodified+8−3View file
scripts/kconfig/lxdialog/inputbox.cmodified+2−2View file
scripts/kconfig/lxdialog/menubox.cmodified+3−3View file
scripts/kconfig/lxdialog/textbox.cmodified+1−1View file
scripts/kconfig/lxdialog/util.cmodified+21−11View file
scripts/kconfig/lxdialog/yesno.cmodified+2−2View file
scripts/kconfig/mconf.cmodified+35−77View file
scripts/kconfig/menu.cmodified+42−7View file
scripts/kconfig/qconf.ccmodified+54−55View file
scripts/kconfig/symbol.cmodified+55−24View file
scripts/kconfig/util.cmodified+21−2View file
scripts/kconfig/zconf.gperfmodified+1−1View file
scripts/kconfig/zconf.hash.c_shippedmodified+11−8View file
scripts/kconfig/zconf.lmodified+5−0View file
scripts/kernel-docmodified+59−26View file
scripts/mkmakefilemodified+7−3View file
scripts/mod/modpost.cmodified+715−495View file
scripts/mod/modpost.hmodified+2−0View file
scripts/package/Makefilemodified+2−3View file
scripts/package/buildtarmodified+2−2View file
scripts/patch-kernelmodified+10−12View file
scripts/setlocalversionmodified+27−2View file

Only the first 600 diff lines are shown. Download the complete patch.

.gitignore

View file
diff --git a/.gitignore b/.gitignore
index 8d14531..8363e48 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@
*.i
*.lst
*.symtypes
+*.order
#
# Top-level generic files

Documentation/kbuild/kconfig-language.txt

View file
diff --git a/Documentation/kbuild/kconfig-language.txt b/Documentation/kbuild/kconfig-language.txt
index 616043a..649cb87 100644
--- a/Documentation/kbuild/kconfig-language.txt
+++ b/Documentation/kbuild/kconfig-language.txt
@@ -24,7 +24,7 @@ visible if its parent entry is also visible.
Menu entries
------------
-Most entries define a config option, all other entries help to organize
+Most entries define a config option; all other entries help to organize
them. A single configuration option is defined like this:
config MODVERSIONS
@@ -50,7 +50,7 @@ applicable everywhere (see syntax).
- type definition: "bool"/"tristate"/"string"/"hex"/"int"
Every config option must have a type. There are only two basic types:
- tristate and string, the other types are based on these two. The type
+ tristate and string; the other types are based on these two. The type
definition optionally accepts an input prompt, so these two examples
are equivalent:
@@ -108,7 +108,7 @@ applicable everywhere (see syntax).
equal to 'y' without visiting the dependencies. So abusing
select you are able to select a symbol FOO even if FOO depends
on BAR that is not set. In general use select only for
- non-visible symbols (no promts anywhere) and for symbols with
+ non-visible symbols (no prompts anywhere) and for symbols with
no dependencies. That will limit the usefulness but on the
other hand avoid the illegal configurations all over. kconfig
should one day warn about such things.
@@ -127,6 +127,27 @@ applicable everywhere (see syntax).
used to help visually separate configuration logic from help within
the file as an aid to developers.
+- misc options: "option" <symbol>[=<value>]
+ Various less common options can be defined via this option syntax,
+ which can modify the behaviour of the menu entry and its config
+ symbol. These options are currently possible:
+
+ - "defconfig_list"
+ This declares a list of default entries which can be used when
+ looking for the default configuration (which is used when the main
+ .config doesn't exists yet.)
+
+ - "modules"
+ This declares the symbol to be used as the MODULES symbol, which
+ enables the third modular state for all config symbols.
+
+ - "env"=<value>
+ This imports the environment variable into Kconfig. It behaves like
+ a default, except that the value comes from the environment, this
+ also means that the behaviour when mixing it with normal defaults is
+ undefined at this point. The symbol is currently not exported back
+ to the build environment (if this is desired, it can be done via
+ another symbol).
Menu dependencies
-----------------
@@ -162,9 +183,9 @@ An expression can have a value of 'n', 'm' or 'y' (or 0, 1, 2
respectively for calculations). A menu entry becomes visible when it's
expression evaluates to 'm' or 'y'.
-There are two types of symbols: constant and nonconstant symbols.
-Nonconstant symbols are the most common ones and are defined with the
-'config' statement. Nonconstant symbols consist entirely of alphanumeric
+There are two types of symbols: constant and non-constant symbols.
+Non-constant symbols are the most common ones and are defined with the
+'config' statement. Non-constant symbols consist entirely of alphanumeric
characters or underscores.
Constant symbols are only part of expressions. Constant symbols are
always surrounded by single or double quotes. Within the quote, any
@@ -301,3 +322,81 @@ mainmenu:
This sets the config program's title bar if the config program chooses
to use it.
+
+
+Kconfig hints
+-------------
+This is a collection of Kconfig tips, most of which aren't obvious at
+first glance and most of which have become idioms in several Kconfig
+files.
+
+Adding common features and make the usage configurable
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+It is a common idiom to implement a feature/functionality that are
+relevant for some architectures but not all.
+The recommended way to do so is to use a config variable named HAVE_*
+that is defined in a common Kconfig file and selected by the relevant
+architectures.
+An example is the generic IOMAP functionality.
+
+We would in lib/Kconfig see:
+
+# Generic IOMAP is used to ...
+config HAVE_GENERIC_IOMAP
+
+config GENERIC_IOMAP
+ depends on HAVE_GENERIC_IOMAP && FOO
+
+And in lib/Makefile we would see:
+obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
+
+For each architecture using the generic IOMAP functionality we would see:
+
+config X86
+ select ...
+ select HAVE_GENERIC_IOMAP
+ select ...
+
+Note: we use the existing config option and avoid creating a new
+config variable to select HAVE_GENERIC_IOMAP.
+
+Note: the use of the internal config variable HAVE_GENERIC_IOMAP, it is
+introduced to overcome the limitation of select which will force a
+config option to 'y' no matter the dependencies.
+The dependencies are moved to the symbol GENERIC_IOMAP and we avoid the
+situation where select forces a symbol equals to 'y'.
+
+Build as module only
+~~~~~~~~~~~~~~~~~~~~
+To restrict a component build to module-only, qualify its config symbol
+with "depends on m". E.g.:
+
+config FOO
+ depends on BAR && m
+
+limits FOO to module (=m) or disabled (=n).
+
+
+Build limited by a third config symbol which may be =y or =m
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+A common idiom that we see (and sometimes have problems with) is this:
+
+When option C in B (module or subsystem) uses interfaces from A (module
+or subsystem), and both A and B are tristate (could be =y or =m if they
+were independent of each other, but they aren't), then we need to limit
+C such that it cannot be built statically if A is built as a loadable
+module. (C already depends on B, so there is no dependency issue to
+take care of here.)
+
+If A is linked statically into the kernel image, C can be built
+statically or as loadable module(s). However, if A is built as loadable
+module(s), then C must be restricted to loadable module(s) also. This
+can be expressed in kconfig language as:
+
+config C
+ depends on A = y || A = B
+
+or for real examples, use this command in a kernel tree:
+
+$ find . -name Kconfig\* | xargs grep -ns "depends on.*=.*||.*=" | grep -v orig
+

Makefile

View file
diff --git a/Makefile b/Makefile
index 6d419f6..0f84c74 100644
--- a/Makefile
+++ b/Makefile
@@ -520,6 +520,11 @@ KBUILD_CFLAGS += -g
KBUILD_AFLAGS += -gdwarf-2
endif
+# We trigger additional mismatches with less inlining
+ifdef CONFIG_DEBUG_SECTION_MISMATCH
+KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
+endif
+
# Force gcc to behave correct even for buggy distributions
KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
@@ -793,7 +798,7 @@ define rule_vmlinux-modpost
endef
# vmlinux image - including updated kernel symbols
-vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) vmlinux.o FORCE
+vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) vmlinux.o $(kallsyms.o) FORCE
ifdef CONFIG_HEADERS_CHECK
$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
endif
@@ -804,7 +809,9 @@ endif
$(call if_changed_rule,vmlinux__)
$(Q)rm -f .old_version
-vmlinux.o: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) FORCE
+# build vmlinux.o first to catch section mismatch errors early
+$(kallsyms.o): vmlinux.o
+vmlinux.o: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) FORCE
$(call if_changed_rule,vmlinux-modpost)
# The actual objects are generated when descending,
@@ -1021,9 +1028,14 @@ ifdef CONFIG_MODULES
all: modules
# Build modules
+#
+# A module can be listed more than once in obj-m resulting in
+# duplicate lines in modules.order files. Those are removed
+# using awk while concatenating to the final file.
PHONY += modules
modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux)
+ $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
@echo ' Building modules, stage 2.';
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
@@ -1051,6 +1063,7 @@ _modinst_:
rm -f $(MODLIB)/build ; \
ln -s $(objtree) $(MODLIB)/build ; \
fi
+ @cp -f $(objtree)/modules.order $(MODLIB)/
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
# This depmod is only for convenience to give the initial
@@ -1110,7 +1123,7 @@ clean: archclean $(clean-dirs)
@find . $(RCS_FIND_IGNORE) \
\( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
- -o -name '*.symtypes' \) \
+ -o -name '*.symtypes' -o -name 'modules.order' \) \
-type f -print | xargs rm -f
# mrproper - Delete all generated files, including .config
@@ -1175,7 +1188,7 @@ help:
@echo ' dir/ - Build all files in dir and below'
@echo ' dir/file.[ois] - Build specified target only'
@echo ' dir/file.ko - Build module including final link'
- @echo ' rpm - Build a kernel as an RPM package'
+ @echo ' prepare - Set up for building external modules'
@echo ' tags/TAGS - Generate tags file for editors'
@echo ' cscope - Generate cscope index'
@echo ' kernelrelease - Output the release version string'
@@ -1188,6 +1201,8 @@ help:
@echo 'Static analysers'
@echo ' checkstack - Generate a list of stack hogs'
@echo ' namespacecheck - Name space analysis on compiled kernel'
+ @echo ' versioncheck - Sanity check on version.h usage'
+ @echo ' includecheck - Check for duplicate included header files'
@echo ' export_report - List the usages of all exported symbols'
@if [ -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \
echo ' headers_check - Sanity check on exported headers'; \
@@ -1371,6 +1386,7 @@ define xtags
if $1 --version 2>&1 | grep -iq exuberant; then \
$(all-sources) | xargs $1 -a \
-I __initdata,__exitdata,__acquires,__releases \
+ -I __read_mostly,____cacheline_aligned,____cacheline_aligned_in_smp,____cacheline_internodealigned_in_smp \
-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
--extra=+f --c-kinds=+px \
--regex-asm='/^ENTRY\(([^)]*)\).*/\1/'; \
@@ -1428,12 +1444,12 @@ tags: FORCE
includecheck:
find * $(RCS_FIND_IGNORE) \
-name '*.[hcS]' -type f -print | sort \
- | xargs $(PERL) -w scripts/checkincludes.pl
+ | xargs $(PERL) -w $(srctree)/scripts/checkincludes.pl
versioncheck:
find * $(RCS_FIND_IGNORE) \
-name '*.[hcS]' -type f -print | sort \
- | xargs $(PERL) -w scripts/checkversion.pl
+ | xargs $(PERL) -w $(srctree)/scripts/checkversion.pl
namespacecheck:
$(PERL) $(srctree)/scripts/namespace.pl

arch/alpha/kernel/vmlinux.lds.S

View file
diff --git a/arch/alpha/kernel/vmlinux.lds.S b/arch/alpha/kernel/vmlinux.lds.S
index 55c05b5..f13249b 100644
--- a/arch/alpha/kernel/vmlinux.lds.S
+++ b/arch/alpha/kernel/vmlinux.lds.S
@@ -46,11 +46,11 @@ SECTIONS
__init_begin = .;
.init.text : {
_sinittext = .;
- *(.init.text)
+ INIT_TEXT
_einittext = .;
}
.init.data : {
- *(.init.data)
+ INIT_DATA
}
. = ALIGN(16);
@@ -136,8 +136,8 @@ SECTIONS
/* Sections to be discarded */
/DISCARD/ : {
- *(.exit.text)
- *(.exit.data)
+ EXIT_TEXT
+ EXIT_DATA
*(.exitcall.exit)
}

arch/alpha/lib/dec_and_lock.c

View file
diff --git a/arch/alpha/lib/dec_and_lock.c b/arch/alpha/lib/dec_and_lock.c
index 6ae2500..0f5520d 100644
--- a/arch/alpha/lib/dec_and_lock.c
+++ b/arch/alpha/lib/dec_and_lock.c
@@ -30,8 +30,7 @@ _atomic_dec_and_lock: \n\
.previous \n\
.end _atomic_dec_and_lock");
-static int __attribute_used__
-atomic_dec_and_lock_1(atomic_t *atomic, spinlock_t *lock)
+static int __used atomic_dec_and_lock_1(atomic_t *atomic, spinlock_t *lock)
{
/* Slow path */
spin_lock(lock);

arch/arm/kernel/vmlinux.lds.S

View file
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index 30f732c..4898bdc 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -30,7 +30,7 @@ SECTIONS
}
.init : { /* Init code and data */
- *(.init.text)
+ INIT_TEXT
_einittext = .;
__proc_info_begin = .;
*(.proc.info.init)
@@ -70,15 +70,15 @@ SECTIONS
__per_cpu_end = .;
#ifndef CONFIG_XIP_KERNEL
__init_begin = _stext;
- *(.init.data)
+ INIT_DATA
. = ALIGN(4096);
__init_end = .;
#endif
}
/DISCARD/ : { /* Exit code and data */
- *(.exit.text)
- *(.exit.data)
+ EXIT_TEXT
+ EXIT_DATA
*(.exitcall.exit)
#ifndef CONFIG_MMU
*(.fixup)
@@ -130,7 +130,7 @@ SECTIONS
#ifdef CONFIG_XIP_KERNEL
. = ALIGN(4096);
__init_begin = .;
- *(.init.data)
+ INIT_DATA
. = ALIGN(4096);
__init_end = .;
#endif

arch/arm/mach-imx/Makefile

View file
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile
index 02272aa..88d5e61 100644
--- a/arch/arm/mach-imx/Makefile
+++ b/arch/arm/mach-imx/Makefile
@@ -1,9 +1,6 @@
#
# Makefile for the linux kernel.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
# Object file lists.

arch/arm/mach-netx/Makefile

View file
diff --git a/arch/arm/mach-netx/Makefile b/arch/arm/mach-netx/Makefile
index 18785ff..7ce4ba9 100644
--- a/arch/arm/mach-netx/Makefile
+++ b/arch/arm/mach-netx/Makefile
@@ -1,9 +1,6 @@
#
# Makefile for the linux kernel.
#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
# Object file lists.

arch/avr32/kernel/vmlinux.lds.S

View file
diff --git a/arch/avr32/kernel/vmlinux.lds.S b/arch/avr32/kernel/vmlinux.lds.S
index 11f08e3..481cfd4 100644
--- a/arch/avr32/kernel/vmlinux.lds.S
+++ b/arch/avr32/kernel/vmlinux.lds.S
@@ -27,19 +27,19 @@ SECTIONS
__init_begin = .;
_sinittext = .;
*(.text.reset)
- *(.init.text)
+ INIT_TEXT
/*
* .exit.text is discarded at runtime, not
* link time, to deal with references from
* __bug_table
*/
- *(.exit.text)
+ EXIT_TEXT
_einittext = .;
. = ALIGN(4);
__tagtable_begin = .;
*(.taglist.init)
__tagtable_end = .;
- *(.init.data)
+ INIT_DATA
. = ALIGN(16);
__setup_start = .;
*(.init.setup)
@@ -135,7 +135,7 @@ SECTIONS
* thrown away, as cleanup code is never called unless it's a module.
*/
/DISCARD/ : {
- *(.exit.data)
+ EXIT_DATA
*(.exitcall.exit)
}

arch/blackfin/kernel/vmlinux.lds.S

View file
diff --git a/arch/blackfin/kernel/vmlinux.lds.S b/arch/blackfin/kernel/vmlinux.lds.S
index 9b75bc8..8587224 100644
--- a/arch/blackfin/kernel/vmlinux.lds.S
+++ b/arch/blackfin/kernel/vmlinux.lds.S
@@ -91,13 +91,13 @@ SECTIONS
{
. = ALIGN(PAGE_SIZE);
__sinittext = .;
- *(.init.text)
+ INIT_TEXT
__einittext = .;
}
.init.data :
{
. = ALIGN(16);
- *(.init.data)
+ INIT_DATA
}
.init.setup :
{
@@ -198,8 +198,8 @@ SECTIONS
/DISCARD/ :
{
- *(.exit.text)
- *(.exit.data)
+ EXIT_TEXT
+ EXIT_DATA
*(.exitcall.exit)
}
}

arch/cris/arch-v10/vmlinux.lds.S

View file
diff --git a/arch/cris/arch-v10/vmlinux.lds.S b/arch/cris/arch-v10/vmlinux.lds.S
index 97a7876..93c9f0e 100644
--- a/arch/cris/arch-v10/vmlinux.lds.S
+++ b/arch/cris/arch-v10/vmlinux.lds.S
@@ -57,10 +57,10 @@ SECTIONS
__init_begin = .;
.init.text : {
_sinittext = .;
- *(.init.text)
+ INIT_TEXT
_einittext = .;
}
- .init.data : { *(.init.data) }
+ .init.data : { INIT_DATA }
. = ALIGN(16);
__setup_start = .;
.init.setup : { *(.init.setup) }
@@ -109,8 +109,8 @@ SECTIONS
/* Sections to be discarded */
/DISCARD/ : {
- *(.text.exit)
- *(.data.exit)
+ EXIT_TEXT
+ EXIT_DATA
*(.exitcall.exit)
}

arch/cris/arch-v32/boot/compressed/Makefile

View file
diff --git a/arch/cris/arch-v32/boot/compressed/Makefile b/arch/cris/arch-v32/boot/compressed/Makefile
index 9f77eda..609692f 100644
--- a/arch/cris/arch-v32/boot/compressed/Makefile
+++ b/arch/cris/arch-v32/boot/compressed/Makefile
@@ -7,7 +7,7 @@
target = $(target_compressed_dir)
src = $(src_compressed_dir)
-CC = gcc-cris -mlinux -march=v32 -I $(TOPDIR)/include
+CC = gcc-cris -mlinux -march=v32 $(LINUXINCLUDE)
CFLAGS = -O2
LD = gcc-cris -mlinux -march=v32 -nostdlib
OBJCOPY = objcopy-cris

arch/cris/arch-v32/vmlinux.lds.S

View file
diff --git a/arch/cris/arch-v32/vmlinux.lds.S b/arch/cris/arch-v32/vmlinux.lds.S
index b076c13..fead8c5 100644
--- a/arch/cris/arch-v32/vmlinux.lds.S
+++ b/arch/cris/arch-v32/vmlinux.lds.S
@@ -61,10 +61,10 @@ SECTIONS
__init_begin = .;
.init.text : {
_sinittext = .;
- *(.init.text)
+ INIT_TEXT
_einittext = .;
}
- .init.data : { *(.init.data) }
+ .init.data : { INIT_DATA }
. = ALIGN(16);
__setup_start = .;
.init.setup : { *(.init.setup) }
@@ -124,8 +124,8 @@ SECTIONS
/* Sections to be discarded */
/DISCARD/ : {
- *(.text.exit)
- *(.data.exit)
+ EXIT_TEXT
+ EXIT_DATA
*(.exitcall.exit)
}

arch/frv/boot/Makefile

View file
diff --git a/arch/frv/boot/Makefile b/arch/frv/boot/Makefile
index dc6f038..6ae3254 100644
--- a/arch/frv/boot/Makefile
+++ b/arch/frv/boot/Makefile
@@ -10,7 +10,7 @@
targets := Image zImage bootpImage
-SYSTEM =$(TOPDIR)/$(LINUX)
+SYSTEM =$(LINUX)
ZTEXTADDR = 0x02080000
PARAMS_PHYS = 0x0207c000
@@ -45,7 +45,7 @@ zImage: $(CONFIGURE) compressed/$(LINUX)
bootpImage: bootp/bootp
$(OBJCOPY) -O binary -R .note -R .comment -S bootp/bootp $@
-compressed/$(LINUX): $(TOPDIR)/$(LINUX) dep
+compressed/$(LINUX): $(LINUX) dep
@$(MAKE) -C compressed $(LINUX)
bootp/bootp: zImage initrd
@@ -59,10 +59,10 @@ initrd:
# installation
#
install: $(CONFIGURE) Image
- sh ./install.sh $(KERNELRELEASE) Image $(TOPDIR)/System.map "$(INSTALL_PATH)"
+ sh ./install.sh $(KERNELRELEASE) Image System.map "$(INSTALL_PATH)"
zinstall: $(CONFIGURE) zImage
- sh ./install.sh $(KERNELRELEASE) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)"
+ sh ./install.sh $(KERNELRELEASE) zImage System.map "$(INSTALL_PATH)"
#
# miscellany

arch/frv/kernel/gdb-stub.c

View file
diff --git a/arch/frv/kernel/gdb-stub.c b/arch/frv/kernel/gdb-stub.c
index e89cad1..48a0393 100644
--- a/arch/frv/kernel/gdb-stub.c
+++ b/arch/frv/kernel/gdb-stub.c
@@ -87,7 +87,7 @@
* Example:
* $ cd ~/linux
* $ make menuconfig <go to "Kernel Hacking" and turn on remote debugging>
- * $ make dep; make vmlinux
+ * $ make vmlinux
*
* Step 3:
* Download the kernel to the remote target and start

arch/frv/kernel/vmlinux.lds.S

View file
diff --git a/arch/frv/kernel/vmlinux.lds.S b/arch/frv/kernel/vmlinux.lds.S
index a17a81d..f42b328 100644
--- a/arch/frv/kernel/vmlinux.lds.S
+++ b/arch/frv/kernel/vmlinux.lds.S
@@ -28,14 +28,14 @@ SECTIONS
.init.text : {
*(.text.head)
#ifndef CONFIG_DEBUG_INFO
- *(.init.text)
- *(.exit.text)
- *(.exit.data)
+ INIT_TEXT
+ EXIT_TEXT
+ EXIT_DATA
*(.exitcall.exit)
#endif
}
_einittext = .;
- .init.data : { *(.init.data) }
+ .init.data : { INIT_DATA }
. = ALIGN(8);
__setup_start = .;
@@ -106,8 +106,8 @@ SECTIONS
LOCK_TEXT
#ifdef CONFIG_DEBUG_INFO
*(
- .init.text
- .exit.text

This diff is incomplete. Download the complete patch.

arch/h8300/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/ia64/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/m32r/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/m68k/kernel/vmlinux-std.lds

View file

This diff is incomplete. Download the complete patch.

arch/m68k/kernel/vmlinux-sun3.lds

View file

This diff is incomplete. Download the complete patch.

arch/m68knommu/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/mips/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/mips/tx4927/common/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/mips/tx4938/common/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/mips/tx4938/toshiba_rbtx4938/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/parisc/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/boot/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/kernel/sysfs.c

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/oprofile/op_model_power4.c

View file

This diff is incomplete. Download the complete patch.

arch/ppc/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/s390/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/sh/kernel/vmlinux_32.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/sh/kernel/vmlinux_64.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc64/kernel/unaligned.c

View file

This diff is incomplete. Download the complete patch.

arch/sparc64/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/um/include/init.h

View file

This diff is incomplete. Download the complete patch.

arch/um/kernel/dyn.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/um/kernel/uml.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/v850/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/x86/kernel/vmlinux_32.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/x86/kernel/vmlinux_64.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/xtensa/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/xtensa/mm/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/xtensa/platform-iss/Makefile

View file

This diff is incomplete. Download the complete patch.

drivers/base/power/Makefile

View file

This diff is incomplete. Download the complete patch.

drivers/infiniband/hw/cxgb3/Makefile

View file

This diff is incomplete. Download the complete patch.

drivers/rapidio/rio.h

View file

This diff is incomplete. Download the complete patch.

fs/compat_ioctl.c

View file

This diff is incomplete. Download the complete patch.

fs/smbfs/Makefile

View file

This diff is incomplete. Download the complete patch.

include/asm-avr32/setup.h

View file

This diff is incomplete. Download the complete patch.

include/asm-generic/vmlinux.lds.h

View file

This diff is incomplete. Download the complete patch.

include/asm-ia64/gcc_intrin.h

View file

This diff is incomplete. Download the complete patch.

include/asm-sh/machvec.h

View file

This diff is incomplete. Download the complete patch.

include/asm-sh/thread_info.h

View file

This diff is incomplete. Download the complete patch.

include/asm-x86/thread_info_32.h

View file

This diff is incomplete. Download the complete patch.

include/linux/Kbuild

View file

This diff is incomplete. Download the complete patch.

include/linux/compiler-gcc3.h

View file

This diff is incomplete. Download the complete patch.

include/linux/compiler-gcc4.h

View file

This diff is incomplete. Download the complete patch.

include/linux/compiler.h

View file

This diff is incomplete. Download the complete patch.

include/linux/elfnote.h

View file

This diff is incomplete. Download the complete patch.

include/linux/init.h

View file

This diff is incomplete. Download the complete patch.

include/linux/module.h

View file

This diff is incomplete. Download the complete patch.

include/linux/moduleparam.h

View file

This diff is incomplete. Download the complete patch.

include/linux/pci.h

View file

This diff is incomplete. Download the complete patch.

init/Kconfig

View file

This diff is incomplete. Download the complete patch.

lib/Kconfig.debug

View file

This diff is incomplete. Download the complete patch.

scripts/Makefile.build

View file

This diff is incomplete. Download the complete patch.

scripts/Makefile.lib

View file

This diff is incomplete. Download the complete patch.

scripts/Makefile.modinst

View file

This diff is incomplete. Download the complete patch.

scripts/Makefile.modpost

View file

This diff is incomplete. Download the complete patch.

scripts/basic/docproc.c

View file

This diff is incomplete. Download the complete patch.

scripts/decodecode

View file

This diff is incomplete. Download the complete patch.

scripts/gcc-version.sh

View file

This diff is incomplete. Download the complete patch.

scripts/genksyms/genksyms.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/Makefile

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/POTFILES.in

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/conf.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/confdata.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/expr.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/expr.h

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/gconf.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lex.zconf.c_shipped

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lkc.h

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lxdialog/check-lxdialog.sh

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lxdialog/checklist.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lxdialog/dialog.h

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lxdialog/inputbox.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lxdialog/menubox.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lxdialog/textbox.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lxdialog/util.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/lxdialog/yesno.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/mconf.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/menu.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/qconf.cc

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/symbol.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/util.c

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/zconf.gperf

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/zconf.hash.c_shipped

View file

This diff is incomplete. Download the complete patch.

scripts/kconfig/zconf.l

View file

This diff is incomplete. Download the complete patch.

scripts/kernel-doc

View file

This diff is incomplete. Download the complete patch.

scripts/mkmakefile

View file

This diff is incomplete. Download the complete patch.

scripts/mod/modpost.c

View file

This diff is incomplete. Download the complete patch.

scripts/mod/modpost.h

View file

This diff is incomplete. Download the complete patch.

scripts/package/Makefile

View file

This diff is incomplete. Download the complete patch.

scripts/package/buildtar

View file

This diff is incomplete. Download the complete patch.

scripts/patch-kernel

View file

This diff is incomplete. Download the complete patch.

scripts/setlocalversion

View file

This diff is incomplete. Download the complete patch.