| 1238 | } |
| 1239 | |
| 1240 | static const char * |
| 1241 | symbol_name(elf_file_t ef, Elf_Size r_info) |
| 1242 | { |
| 1243 | const Elf_Sym *ref; |
| 1244 | |
| 1245 | if (ELF_R_SYM(r_info)) { |
| 1246 | ref = ef->ddbsymtab + ELF_R_SYM(r_info); |
| 1247 | return ef->ddbstrtab + ref->st_name; |
| 1248 | } else |
| 1249 | return NULL; |
| 1250 | } |
| 1251 | |
| 1252 | static Elf_Addr |
| 1253 | findbase(elf_file_t ef, int sec) |