1
0

310-arm_module_unresolved_weak_sym.patch 354 B

12345678910111213
  1. --- a/arch/arm/kernel/module.c
  2. +++ b/arch/arm/kernel/module.c
  3. @@ -83,6 +83,10 @@ apply_relocate(Elf32_Shdr *sechdrs, cons
  4. return -ENOEXEC;
  5. }
  6. + if ((IS_ERR_VALUE(sym->st_value) || !sym->st_value) &&
  7. + ELF_ST_BIND(sym->st_info) == STB_WEAK)
  8. + continue;
  9. +
  10. loc = dstsec->sh_addr + rel->r_offset;
  11. switch (ELF32_R_TYPE(rel->r_info)) {