rtl8366_smi: implement a function for detecting whether the attached switch is RTL836...
[openwrt.git] / target / linux / generic / patches-2.6.32 / 029-arm_module_unresolved_weak_sym.patch
1 --- a/arch/arm/kernel/module.c
2 +++ b/arch/arm/kernel/module.c
3 @@ -121,6 +121,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.041467 seconds and 5 git commands to generate.