summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>2009-11-07 21:03:56 +0000
committerStephen Rothwell <sfr@canb.auug.org.au>2009-11-25 13:16:25 +1100
commit215143067b9bfacdfd475c5b2fa5536ee30f50ec (patch)
treefc3e69b73e3d7b1f5daedd9156ad9d6565db39f3 /init
parentdbc16ef98e5d5d8e1114d420e81be36ba080b0d9 (diff)
kbuild: sort the list of symbols exported by the kernel (__ksymtab)
modpost of vmlinux.o now extracts the ksymtab sections and outputs sorted versions of them as .tmp_exports-asm.S. These sorted sections are linked into vmlinux and the original unsorted sections are discarded. This will allow modules to be loaded faster, resolving symbols using binary search, without any increase in the memory needed for the symbol tables. This does not affect the building of modules, so hopefully it won't affect compile times too much. Minimally tested on ARM under QEMU emulator. Build tested on blackfin; output of "size -A" unchanged. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk> CC: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 9e03ef8b311e..d3a5db8fb011 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1118,6 +1118,11 @@ config BASE_SMALL
default 0 if BASE_FULL
default 1 if !BASE_FULL
+config HAVE_SYMBOL_PREFIX
+ bool
+ help
+ Some arch toolchains use a `_' prefix for all user symbols.
+
menuconfig MODULES
bool "Enable loadable module support"
help