Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
[sfrench/cifs-2.6.git] / scripts / link-vmlinux.sh
index 1f4c27bd5d2af1c04408ab638d87807e0d78c87b..cd9c6c6bb4c9d9dba4f9c80fc5edbb67170beef8 100644 (file)
@@ -93,6 +93,11 @@ mksysmap()
        ${CONFIG_SHELL} "${srctree}/scripts/mksysmap" ${1} ${2}
 }
 
+sortextable()
+{
+       ${objtree}/scripts/sortextable ${1}
+}
+
 # Delete output files in case of error
 trap cleanup SIGHUP SIGINT SIGQUIT SIGTERM ERR
 cleanup()
@@ -192,6 +197,11 @@ fi
 info LD vmlinux
 vmlinux_link "${kallsymso}" vmlinux
 
+if [ -n "${CONFIG_BUILDTIME_EXTABLE_SORT}" ]; then
+       info SORTEX vmlinux
+       sortextable vmlinux
+fi
+
 info SYSMAP System.map
 mksysmap vmlinux System.map