Lines Matching defs:elf
1215 * Fills state.elf with the necessary information for the open file.
1225 Elf *elf;
1247 elf = elf_begin(fd, ELF_C_RDWR, NULL);
1248 if (elf == NULL) {
1255 switch (elf_kind(elf)) {
1277 (void) elf_flagelf(elf, ELF_C_SET, ELF_F_LAYOUT);
1279 /* Fill in state.elf.obj_state */
1280 state.elf.elfclass = gelf_getclass(elf);
1281 switch (state.elf.elfclass) {
1283 elfedit32_init_obj_state(file, fd, elf);
1286 elfedit64_init_obj_state(file, fd, elf);
1805 if (state.elf.elfclass == ELFCLASS32) {
2178 if (state.elf.elfclass == ELFCLASS32) {
2183 cmd_ret = (* cmd_func)(state.elf.obj_state.s32,
2190 cmd_ret = (* cmd_func)(state.elf.obj_state.s64,
2204 state.elf.elfconst_ehdr_change = 1;
3359 if (state.elf.elfclass == ELFCLASS32) {
3364 (* cmdcpl_func)(state.elf.obj_state.s32,
3371 (* cmdcpl_func)(state.elf.obj_state.s64,
3556 state.elf.elfclass = ELFCLASS32;