|
@@ -66,7 +66,16 @@ extern struct module __this_module;
|
|
|
__attribute__((section("___ksymtab" sec "+" #sym), used)) \
|
|
|
= { (unsigned long)&sym, __kstrtab_##sym }
|
|
|
|
|
|
-#if defined(__KSYM_DEPS__)
|
|
|
+#if defined(__DISABLE_EXPORTS)
|
|
|
+
|
|
|
+/*
|
|
|
+ * Allow symbol exports to be disabled completely so that C code may
|
|
|
+ * be reused in other execution contexts such as the UEFI stub or the
|
|
|
+ * decompressor.
|
|
|
+ */
|
|
|
+#define __EXPORT_SYMBOL(sym, sec)
|
|
|
+
|
|
|
+#elif defined(__KSYM_DEPS__)
|
|
|
|
|
|
/*
|
|
|
* For fine grained build dependencies, we want to tell the build system
|