| 169 | } |
| 170 | |
| 171 | static int relocation_for_undefined_symbol(struct rmod_context *ctx, Elf64_Rela *r) |
| 172 | { |
| 173 | Elf64_Sym *s = &ctx->pelf.syms[ELF64_R_SYM(r->r_info)]; |
| 174 | |
| 175 | if (s->st_shndx == SHN_UNDEF) { |
| 176 | DEBUG("Omitting relocation for undefined symbol: %s\n", |
| 177 | &ctx->strtab[s->st_name]); |
| 178 | return 1; |
| 179 | } |
| 180 | |
| 181 | return 0; |
| 182 | } |
| 183 | |
| 184 | /* |
| 185 | * Relocation processing loops. |