Make the ksymtab symbols for EXPORT_SYMBOL visible. This prevents the LTO compiler from adding a .NUMBER prefix, which avoids various problems in later export processing.
Showing the changes to scripts (1 of 2 files). Show all
Unified · Split
| @@ -1861,7 +1861,7 @@ static void add_header(struct buffer *b, struct module *mod) · 1860 unmodified lines | ||
| 1861 | 1861 | buf_printf(b, "\n"); |
| 1862 | 1862 | buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); |
| 1863 | 1863 | buf_printf(b, "\n"); |
| 1864 | − buf_printf(b, "struct module __this_module\n"); | |
| 1864 | + buf_printf(b, "__visible struct module __this_module\n"); | |
| 1865 | 1865 | buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n"); |
| 1866 | 1866 | buf_printf(b, "\t.name = KBUILD_MODNAME,\n"); |
| 1867 | 1867 | if (mod->has_init) |