2
0
forked from Ivasoft/openwrt

add 3.7-rc6 support (patch 820 still has to be fixed)

SVN-Revision: 34247
This commit is contained in:
Imre Kaloz
2012-11-18 18:52:38 +00:00
parent d0226aff1d
commit 935ca3f3eb
152 changed files with 26445 additions and 3 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)) {