[generic/3.1]: add missing symbols
[openwrt.git] / target / linux / generic / patches-2.6.38 / 310-arm_module_unresolved_weak_sym.patch
1 --- a/arch/arm/kernel/module.c
2 +++ b/arch/arm/kernel/module.c
3 @@ -98,6 +98,10 @@ apply_relocate(Elf32_Shdr *sechdrs, cons
4 return -ENOEXEC;
5 }
6
7 + if ((IS_ERR_VALUE(sym->st_value) || !sym->st_value) &&
8 + ELF_ST_BIND(sym->st_info) == STB_WEAK)
9 + continue;
10 +
11 loc = dstsec->sh_addr + rel->r_offset;
12
13 switch (ELF32_R_TYPE(rel->r_info)) {
This page took 0.052216 seconds and 5 git commands to generate.