linux-atm: headroom/padding fixes
[openwrt.git] / target / linux / generic / patches-3.0 / 310-arm_module_unresolved_weak_sym.patch
1 --- a/arch/arm/kernel/module.c
2 +++ b/arch/arm/kernel/module.c
3 @@ -99,6 +99,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.042243 seconds and 5 git commands to generate.