projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rebase from upstream commit : 3bb9dcf44627ffdd313fe92c563ae454b6ff8aa6
[librecmc/librecmc.git]
/
target
/
linux
/
generic
/
hack-4.19
/
204-module_strip.patch
diff --git
a/target/linux/generic/hack-4.19/204-module_strip.patch
b/target/linux/generic/hack-4.19/204-module_strip.patch
index 9a62a812cd224afc566b9332d87387808cf57547..7fa5d8ddbc02da96762659fe0c027870a9fd8b8d 100644
(file)
--- a/
target/linux/generic/hack-4.19/204-module_strip.patch
+++ b/
target/linux/generic/hack-4.19/204-module_strip.patch
@@
-98,7
+98,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/init/Kconfig
+++ b/init/Kconfig
--- a/init/Kconfig
+++ b/init/Kconfig
-@@ -199
3,6 +1993
,13 @@ config TRIM_UNUSED_KSYMS
+@@ -199
4,6 +1994
,13 @@ config TRIM_UNUSED_KSYMS
If unsure, or if you need to build out-of-tree modules, say N.
If unsure, or if you need to build out-of-tree modules, say N.
@@
-114,7
+114,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
config MODULES_TREE_LOOKUP
--- a/kernel/module.c
+++ b/kernel/module.c
config MODULES_TREE_LOOKUP
--- a/kernel/module.c
+++ b/kernel/module.c
-@@ -300
2,9 +3002
,11 @@ static int setup_load_info(struct load_i
+@@ -300
4,9 +3004
,11 @@ static int setup_load_info(struct load_i
static int check_modinfo(struct module *mod, struct load_info *info, int flags)
{
static int check_modinfo(struct module *mod, struct load_info *info, int flags)
{
@@
-127,7
+127,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
if (flags & MODULE_INIT_IGNORE_VERMAGIC)
modmagic = NULL;
if (flags & MODULE_INIT_IGNORE_VERMAGIC)
modmagic = NULL;
-@@ -302
5,6 +3027
,7 @@ static int check_modinfo(struct module *
+@@ -302
7,6 +3029
,7 @@ static int check_modinfo(struct module *
mod->name);
add_taint_module(mod, TAINT_OOT_MODULE, LOCKDEP_STILL_OK);
}
mod->name);
add_taint_module(mod, TAINT_OOT_MODULE, LOCKDEP_STILL_OK);
}
@@
-137,7
+137,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
-@@ -19
69,7 +1969
,9 @@ static void read_symbols(const char *mod
+@@ -19
71,7 +1971
,9 @@ static void read_symbols(const char *mod
symname = remove_dot(info.strtab + sym->st_name);
handle_modversions(mod, &info, sym, symname);
symname = remove_dot(info.strtab + sym->st_name);
handle_modversions(mod, &info, sym, symname);
@@
-147,7
+147,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
}
if (!is_vmlinux(modname) || vmlinux_section_warnings)
check_sec_ref(mod, modname, &info);
}
if (!is_vmlinux(modname) || vmlinux_section_warnings)
check_sec_ref(mod, modname, &info);
-@@ -213
2,8 +2134
,10 @@ static void add_header(struct buffer *b,
+@@ -213
4,8 +2136
,10 @@ static void add_header(struct buffer *b,
buf_printf(b, "\n");
buf_printf(b, "BUILD_SALT;\n");
buf_printf(b, "\n");
buf_printf(b, "\n");
buf_printf(b, "BUILD_SALT;\n");
buf_printf(b, "\n");
@@
-158,7
+158,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
buf_printf(b, "\n");
buf_printf(b, "__visible struct module __this_module\n");
buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n");
buf_printf(b, "\n");
buf_printf(b, "__visible struct module __this_module\n");
buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n");
-@@ -215
0,8 +2154
,10 @@ static void add_header(struct buffer *b,
+@@ -215
2,8 +2156
,10 @@ static void add_header(struct buffer *b,
static void add_intree_flag(struct buffer *b, int is_intree)
{
static void add_intree_flag(struct buffer *b, int is_intree)
{
@@
-169,7
+169,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
}
/* Cannot check for assembler */
}
/* Cannot check for assembler */
-@@ -216
4,8 +2170
,10 @@ static void add_retpoline(struct buffer
+@@ -216
6,8 +2172
,10 @@ static void add_retpoline(struct buffer
static void add_staging_flag(struct buffer *b, const char *name)
{
static void add_staging_flag(struct buffer *b, const char *name)
{
@@
-180,7
+180,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
}
/**
}
/**
-@@ -226
4,11 +2272
,13 @@ static void add_depends(struct buffer *b
+@@ -226
6,11 +2274
,13 @@ static void add_depends(struct buffer *b
static void add_srcversion(struct buffer *b, struct module *mod)
{
static void add_srcversion(struct buffer *b, struct module *mod)
{
@@
-194,7
+194,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
}
static void write_if_changed(struct buffer *b, const char *fname)
}
static void write_if_changed(struct buffer *b, const char *fname)
-@@ -250
5,7 +2515
,9 @@ int main(int argc, char **argv)
+@@ -250
7,7 +2517
,9 @@ int main(int argc, char **argv)
add_staging_flag(&buf, mod->name);
err |= add_versions(&buf, mod);
add_depends(&buf, mod, modules);
add_staging_flag(&buf, mod->name);
err |= add_versions(&buf, mod);
add_depends(&buf, mod, modules);