Lines Matching refs:elf
61 Elf *
62 elf_clone (Elf *elf, Elf_Cmd cmd)
64 Elf *retval = NULL;
66 if (elf == NULL)
71 rwlock_rdlock (elf->lock);
77 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset,
78 elf->maximum_size, elf->cmd, elf->parent, elf->kind,
79 elf->state.elf32.scns.max * sizeof (Elf_Scn));
86 retval->state.elf.scnincr = 10;
89 assert (offsetof (struct Elf, state.elf32.scns)
90 == offsetof (struct Elf, state.elf64.scns));
91 retval->state.elf.scns_last = &retval->state.elf32.scns;
92 retval->state.elf32.scns.max = elf->state.elf32.scns.max;
94 retval->class = elf->class;
99 rwlock_unlock (elf->lock);