Lines Matching defs:unstripped

1157 new_shstrtab (Elf *unstripped, size_t unstripped_shnum,
1185 Elf_Scn *scn = elf_getscn (unstripped, i + 1);
1197 Elf_Data *strtab_data = elf_getdata (elf_getscn (unstripped,
1207 Elf_Scn *scn = elf_getscn (unstripped, i + 1);
1222 copy_elided_sections (Elf *unstripped, Elf *stripped,
1226 ELF_CHECK (elf_getshdrstrndx (unstripped, &unstripped_shstrndx) == 0,
1234 ELF_CHECK (elf_getshdrnum (unstripped, &unstripped_shnum) == 0,
1298 Elf_Data *shstrtab = elf_getdata (elf_getscn (unstripped,
1308 while ((scn = elf_nextscn (unstripped, scn)) != NULL)
1392 split_bss = find_alloc_sections_prelink (unstripped, shstrtab,
1447 sec->outscn = elf_newscn (unstripped);
1465 Elf_Data *strtab_data = new_shstrtab (unstripped, unstripped_shnum,
1471 ELF_CHECK (elf_getshdrnum (unstripped, &unstripped_shnum) == 0,
1586 /* Merge the stripped file's symbol table into the unstripped one. */
1603 collect_symbols (unstripped, stripped_ehdr->e_type == ET_REL,
1609 Elf_Scn *unstripped_strtab = elf_getscn (unstripped, shdr->sh_link);
1610 collect_symbols (unstripped, stripped_ehdr->e_type == ET_REL,
1739 adjust_all_relocs (unstripped, unstripped_symtab, shdr,
1743 check_symtab_section_symbols (unstripped,
1752 (void) check_symtab_section_symbols (unstripped,
1765 elf_flagelf (unstripped, ELF_C_SET, ELF_F_LAYOUT);
1769 offset = gelf_fsize (unstripped, ELF_T_EHDR, 1, EV_CURRENT);
1778 scn = elf_getscn (unstripped, 1 + i);
1811 GElf_Ehdr *ehdr = gelf_getehdr (unstripped, &ehdr_mem);
1814 GElf_Off sh_align = gelf_getclass (unstripped) * 4;
1819 ELF_CHECK (gelf_update_ehdr (unstripped, ehdr),
1829 ELF_CHECK (gelf_newphdr (unstripped, stripped_ehdr->e_phnum),
1839 ELF_CHECK (gelf_update_phdr (unstripped, i, phdr),
1844 ELF_CHECK (elf_update (unstripped, ELF_C_WRITE) > 0,
1866 Elf *unstripped)
1871 if (unstripped != NULL)
1880 GElf_Phdr *unstripped_phdr = gelf_getphdr (unstripped, i,
1902 /* Modify the unstripped file in place. */
1903 copy_elided_sections (unstripped, stripped, stripped_ehdr, bias);
1909 /* Copy the unstripped file and then modify it. */
1917 if (unstripped == NULL)
1928 copy_elf (outelf, unstripped);
1958 Elf *unstripped = NULL;
1962 unstripped = elf_begin (unstripped_fd,
1966 ELF_CHECK (gelf_getehdr (unstripped, &unstripped_ehdr),
1977 handle_file (output_file, create_dirs, stripped, &stripped_ehdr, unstripped);
1982 elf_end (unstripped);