kernel: add support for 3.8-rc2

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 35055
This commit is contained in:
Florian Fainelli
2013-01-08 22:19:31 +00:00
parent c38cb63808
commit 8dbed04ec9
150 changed files with 29125 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
--- a/arch/arm/kernel/module.c
+++ b/arch/arm/kernel/module.c
@@ -81,6 +81,10 @@ apply_relocate(Elf32_Shdr *sechdrs, cons
return -ENOEXEC;
}
+ if ((IS_ERR_VALUE(sym->st_value) || !sym->st_value) &&
+ ELF_ST_BIND(sym->st_info) == STB_WEAK)
+ continue;
+
loc = dstsec->sh_addr + rel->r_offset;
switch (ELF32_R_TYPE(rel->r_info)) {