[x86] Allow gzipping of squashfs images with padded jffs2 partition
[openwrt.git] / target / linux / generic / patches-3.2 / 310-arm_module_unresolved_weak_sym.patch
1 --- a/arch/arm/kernel/module.c
2 +++ b/arch/arm/kernel/module.c
3 @@ -81,6 +81,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.052606 seconds and 5 git commands to generate.