Home | History | Annotate | Download | only in libelf

Lines Matching refs:elf

28 Elf *
29 elf_clone (Elf *elf, Elf_Cmd cmd)
31 Elf *retval = NULL;
33 if (elf == NULL)
38 rwlock_rdlock (elf->lock);
44 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset,
45 elf->maximum_size, elf->cmd, elf->parent, elf->kind,
46 elf->state.elf32.scns.max * sizeof (Elf_Scn));
53 retval->state.elf.scnincr = 10;
56 assert (offsetof (struct Elf, state.elf32.scns)
57 == offsetof (struct Elf, state.elf64.scns));
58 retval->state.elf.scns_last = &retval->state.elf32.scns;
59 retval->state.elf32.scns.max = elf->state.elf32.scns.max;
61 retval->class = elf->class;
66 rwlock_unlock (elf->lock);