• Home
  • Raw
  • Download

Lines Matching refs:elf

53 decompress (int fd __attribute__ ((unused)), Elf **elf)  in decompress()  argument
59 const off_t offset = (*elf)->start_offset; in decompress()
60 void *const mapped = ((*elf)->map_address == NULL ? NULL in decompress()
61 : (*elf)->map_address + offset); in decompress()
62 const size_t mapped_size = (*elf)->maximum_size; in decompress()
92 elf_end (*elf); in decompress()
93 *elf = memelf; in decompress()
131 Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL); in libdw_open_elf() local
134 Dwfl_Error error = what_kind (*fdp, &elf, &kind, &may_close_fd); in libdw_open_elf()
140 off_t offset = elf->start_offset; in libdw_open_elf()
142 (elf->map_address == NULL ? NULL in libdw_open_elf()
143 : elf->map_address + offset), in libdw_open_elf()
144 elf->maximum_size); in libdw_open_elf()
148 elf->kind = ELF_K_AR; in libdw_open_elf()
149 elf->state.ar.elf_ar_hdr.ar_name = "libdwfl is faking you out"; in libdw_open_elf()
150 elf->state.ar.elf_ar_hdr.ar_size = elf->maximum_size - offset; in libdw_open_elf()
151 elf->state.ar.offset = offset - sizeof (struct ar_hdr); in libdw_open_elf()
152 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in libdw_open_elf()
153 elf->kind = ELF_K_NONE; in libdw_open_elf()
159 subelf->flags |= elf->flags & (ELF_F_MMAPPED | ELF_F_MALLOCED); in libdw_open_elf()
160 elf->flags &= ~(ELF_F_MMAPPED | ELF_F_MALLOCED); in libdw_open_elf()
161 elf_end (elf); in libdw_open_elf()
162 elf = subelf; in libdw_open_elf()
163 error = what_kind (*fdp, &elf, &kind, &may_close_fd); in libdw_open_elf()
179 elf_end (elf); in libdw_open_elf()
180 elf = NULL; in libdw_open_elf()
190 *elfp = elf; in libdw_open_elf()