kbuild: allow to use GCC toolchain not in Clang search path
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / scripts / sortextable.h
index ba8700428e21dd1612d8c6ae4ddde0e0e964433e..77275563978739d4e9427b69d65f2d0ba403aca0 100644 (file)
@@ -207,5 +207,7 @@ do_func(Elf_Ehdr *ehdr, char const *const fname, table_sort_t custom_sort)
               (unsigned long)((char *)sort_done_location - (char *)ehdr));
 #endif
        /* We sorted it, clear the flag. */
+#ifndef CONFIG_RELOCATABLE_KERNEL
        w(0, sort_done_location);
+#endif
 }