Searched refs:strtab (Results 1 – 2 of 2) sorted by relevance
941 static int elf_add_string(struct elf *elf, struct section *strtab, char *str) in elf_add_string() argument947 if (!strtab) in elf_add_string()948 strtab = find_section_by_name(elf, ".strtab"); in elf_add_string()949 if (!strtab) { in elf_add_string()954 s = elf_getscn(elf->elf, strtab->idx); in elf_add_string()971 len = strtab->len; in elf_add_string()972 strtab->len += data->d_size; in elf_add_string()973 strtab->changed = true; in elf_add_string()
262 def str2int(strtab): argument264 for i in strtab:267 if len(strtab) == 4:269 elif len(strtab) == 8:273 (len(strtab)))