|
@@ -141,7 +141,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
|
|
|
--- a/scripts/mod/modpost.c
|
|
|
+++ b/scripts/mod/modpost.c
|
|
|
-@@ -1781,7 +1781,9 @@ static void read_symbols(const char *mod
|
|
|
+@@ -1785,7 +1785,9 @@ static void read_symbols(const char *mod
|
|
|
symname = remove_dot(info.strtab + sym->st_name);
|
|
|
|
|
|
handle_symbol(mod, &info, sym, symname);
|
|
@@ -151,7 +151,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
}
|
|
|
|
|
|
for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {
|
|
|
-@@ -1944,8 +1946,10 @@ static void add_header(struct buffer *b,
|
|
|
+@@ -1948,8 +1950,10 @@ static void add_header(struct buffer *b,
|
|
|
buf_printf(b, "BUILD_SALT;\n");
|
|
|
buf_printf(b, "BUILD_LTO_INFO;\n");
|
|
|
buf_printf(b, "\n");
|
|
@@ -162,7 +162,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
buf_printf(b, "\n");
|
|
|
buf_printf(b, "__visible struct module __this_module\n");
|
|
|
buf_printf(b, "__section(\".gnu.linkonce.this_module\") = {\n");
|
|
|
-@@ -1959,8 +1963,10 @@ static void add_header(struct buffer *b,
|
|
|
+@@ -1963,8 +1967,10 @@ static void add_header(struct buffer *b,
|
|
|
buf_printf(b, "\t.arch = MODULE_ARCH_INIT,\n");
|
|
|
buf_printf(b, "};\n");
|
|
|
|
|
@@ -173,7 +173,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
|
|
|
buf_printf(b,
|
|
|
"\n"
|
|
|
-@@ -1968,8 +1974,10 @@ static void add_header(struct buffer *b,
|
|
|
+@@ -1972,8 +1978,10 @@ static void add_header(struct buffer *b,
|
|
|
"MODULE_INFO(retpoline, \"Y\");\n"
|
|
|
"#endif\n");
|
|
|
|
|
@@ -184,7 +184,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
|
|
|
if (strstarts(mod->name, "tools/testing"))
|
|
|
buf_printf(b, "\nMODULE_INFO(test, \"Y\");\n");
|
|
|
-@@ -2065,11 +2073,13 @@ static void add_depends(struct buffer *b
|
|
|
+@@ -2069,11 +2077,13 @@ static void add_depends(struct buffer *b
|
|
|
|
|
|
static void add_srcversion(struct buffer *b, struct module *mod)
|
|
|
{
|
|
@@ -198,7 +198,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
}
|
|
|
|
|
|
static void write_buf(struct buffer *b, const char *fname)
|
|
|
-@@ -2155,7 +2165,9 @@ static void write_mod_c_file(struct modu
|
|
|
+@@ -2159,7 +2169,9 @@ static void write_mod_c_file(struct modu
|
|
|
add_exported_symbols(&buf, mod);
|
|
|
add_versions(&buf, mod);
|
|
|
add_depends(&buf, mod);
|