|
|
@@ -141,7 +141,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
if (err)
|
|
|
--- a/scripts/mod/modpost.c
|
|
|
+++ b/scripts/mod/modpost.c
|
|
|
-@@ -1745,7 +1745,9 @@ static void read_symbols(const char *mod
|
|
|
+@@ -1690,7 +1690,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]>
|
|
|
}
|
|
|
|
|
|
check_sec_ref(mod, &info);
|
|
|
-@@ -1918,8 +1920,10 @@ static void add_header(struct buffer *b,
|
|
|
+@@ -1863,8 +1865,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");
|
|
|
-@@ -1933,8 +1937,10 @@ static void add_header(struct buffer *b,
|
|
|
+@@ -1878,8 +1882,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"
|
|
|
-@@ -1942,8 +1948,10 @@ static void add_header(struct buffer *b,
|
|
|
+@@ -1887,8 +1893,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");
|
|
|
-@@ -2053,11 +2061,13 @@ static void add_depends(struct buffer *b
|
|
|
+@@ -1998,11 +2006,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)
|
|
|
-@@ -2140,7 +2150,9 @@ static void write_mod_c_file(struct modu
|
|
|
+@@ -2085,7 +2095,9 @@ static void write_mod_c_file(struct modu
|
|
|
add_exported_symbols(&buf, mod);
|
|
|
add_versions(&buf, mod);
|
|
|
add_depends(&buf, mod);
|