@@ -183,6 +183,11 @@ sortextable()
${objtree}/scripts/sortextable ${1}
}
+sortorctable()
+{
+ ${objtree}/scripts/sortorctable ${1}
+}
+
# Delete output files in case of error
cleanup()
{
@@ -303,6 +308,15 @@ if [ -n "${CONFIG_BUILDTIME_EXTABLE_SORT}" ]; then
sortextable vmlinux
fi
+if [ -n "${CONFIG_UNWINDER_ORC}" ]; then
+ info SORTORC vmlinux
+ if ! sortorctable vmlinux; then
+ echo >&2 Failed to sort ORC unwind tables
+ echo >&2 Check what is wrong and try again
+ exit 1
+ fi
+fi
+
info SYSMAP System.map
mksysmap vmlinux System.map