Lines Matching refs:strtab
41 add_strtab_entry (Elf_Scn *strtab, const char *str)
46 Elf_Data *data = elf_newdata (strtab);
68 // Create strtab section.
83 printf ("cannot get header for new strtab section: %s\n",
95 shdr->sh_name = add_strtab_entry (scn, ".strtab");
97 // We have to store the section strtab index in the ELF header.
116 // Finished strtab section, update the header.
130 add_data_section (Elf *elf, Elf_Scn *strtab, const char *sname)
156 shdr->sh_name = add_strtab_entry (strtab, sname);
203 stridx = 0; // Reset strtab strings index
247 Elf_Scn *strtab = create_strtab (elf);
248 add_data_section (elf, strtab, ".data1");
249 add_data_section (elf, strtab, ".data2");
250 add_data_section (elf, strtab, ".data3");
251 add_data_section (elf, strtab, ".data4");