| 143 | }; |
| 144 | |
| 145 | static int relocation_for_absolute_symbol(struct rmod_context *ctx, Elf64_Rela *r) |
| 146 | { |
| 147 | Elf64_Sym *s = &ctx->pelf.syms[ELF64_R_SYM(r->r_info)]; |
| 148 | |
| 149 | if (s->st_shndx == SHN_ABS) { |
| 150 | DEBUG("Omitting relocation for absolute symbol: %s\n", |
| 151 | &ctx->strtab[s->st_name]); |
| 152 | return 1; |
| 153 | } |
| 154 | |
| 155 | return 0; |
| 156 | } |
| 157 | |
| 158 | static int relocation_for_weak_extern_symbols(struct rmod_context *ctx, Elf64_Rela *r) |
| 159 | { |