diff options
Diffstat (limited to 'scripts/link-vmlinux.sh')
-rw-r--r-- | scripts/link-vmlinux.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 1f4c27bd5d2a..cd9c6c6bb4c9 100644 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh | |||
@@ -93,6 +93,11 @@ mksysmap() | |||
93 | ${CONFIG_SHELL} "${srctree}/scripts/mksysmap" ${1} ${2} | 93 | ${CONFIG_SHELL} "${srctree}/scripts/mksysmap" ${1} ${2} |
94 | } | 94 | } |
95 | 95 | ||
96 | sortextable() | ||
97 | { | ||
98 | ${objtree}/scripts/sortextable ${1} | ||
99 | } | ||
100 | |||
96 | # Delete output files in case of error | 101 | # Delete output files in case of error |
97 | trap cleanup SIGHUP SIGINT SIGQUIT SIGTERM ERR | 102 | trap cleanup SIGHUP SIGINT SIGQUIT SIGTERM ERR |
98 | cleanup() | 103 | cleanup() |
@@ -192,6 +197,11 @@ fi | |||
192 | info LD vmlinux | 197 | info LD vmlinux |
193 | vmlinux_link "${kallsymso}" vmlinux | 198 | vmlinux_link "${kallsymso}" vmlinux |
194 | 199 | ||
200 | if [ -n "${CONFIG_BUILDTIME_EXTABLE_SORT}" ]; then | ||
201 | info SORTEX vmlinux | ||
202 | sortextable vmlinux | ||
203 | fi | ||
204 | |||
195 | info SYSMAP System.map | 205 | info SYSMAP System.map |
196 | mksysmap vmlinux System.map | 206 | mksysmap vmlinux System.map |
197 | 207 | ||