summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/patches-2.6.30/007-modules.diff
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
committerRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
commitfbe1bac79e8f4adb451cfe7c159ecb42f5657091 (patch)
treecb9a8f5666988233985ff75cb0db7bfaacc6d063 /target/linux/realtek/patches-2.6.30/007-modules.diff
parent52f88693e1f8af3e918165252b9b852ebe23f233 (diff)
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/patches-2.6.30/007-modules.diff')
-rw-r--r--target/linux/realtek/patches-2.6.30/007-modules.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/realtek/patches-2.6.30/007-modules.diff b/target/linux/realtek/patches-2.6.30/007-modules.diff
new file mode 100644
index 000000000..a7148c260
--- /dev/null
+++ b/target/linux/realtek/patches-2.6.30/007-modules.diff
@@ -0,0 +1,17 @@
+Index: linux-2.6.30.9/arch/rlx/kernel/module.c
+===================================================================
+--- linux-2.6.30.9.orig/arch/rlx/kernel/module.c
++++ linux-2.6.30.9/arch/rlx/kernel/module.c
+@@ -387,10 +387,11 @@ int module_finalize(const Elf_Ehdr *hdr,
+ {
+ const Elf_Shdr *s;
+ char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
++ char dbe_table[]="__dbe_table";
+
+ INIT_LIST_HEAD(&me->arch.dbe_list);
+ for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
+- if (strcmp("__dbe_table", secstrings + s->sh_name) != 0)
++ if (strcmp(dbe_table, secstrings + s->sh_name) != 0)
+ continue;
+ me->arch.dbe_start = (void *)s->sh_addr;
+ me->arch.dbe_end = (void *)s->sh_addr + s->sh_size;