• Home
  • Raw
  • Download

Lines Matching refs:elf

45 decompress (int fd __attribute__ ((unused)), Elf **elf)  in decompress()  argument
51 const off_t offset = (*elf)->start_offset; in decompress()
52 void *const mapped = ((*elf)->map_address == NULL ? NULL in decompress()
53 : (*elf)->map_address + offset); in decompress()
54 const size_t mapped_size = (*elf)->maximum_size; in decompress()
82 elf_end (*elf); in decompress()
83 *elf = memelf; in decompress()
120 Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL); in __libdw_open_file() local
123 Dwfl_Error error = what_kind (*fdp, &elf, &kind, &close_fd); in __libdw_open_file()
129 off_t offset = elf->start_offset; in __libdw_open_file()
131 (elf->map_address == NULL ? NULL in __libdw_open_file()
132 : elf->map_address + offset), in __libdw_open_file()
133 elf->maximum_size); in __libdw_open_file()
137 elf->kind = ELF_K_AR; in __libdw_open_file()
138 elf->state.ar.elf_ar_hdr.ar_name = "libdwfl is faking you out"; in __libdw_open_file()
139 elf->state.ar.elf_ar_hdr.ar_size = elf->maximum_size - offset; in __libdw_open_file()
140 elf->state.ar.offset = offset - sizeof (struct ar_hdr); in __libdw_open_file()
141 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in __libdw_open_file()
142 elf->kind = ELF_K_NONE; in __libdw_open_file()
148 subelf->flags |= elf->flags & (ELF_F_MMAPPED | ELF_F_MALLOCED); in __libdw_open_file()
149 elf->flags &= ~(ELF_F_MMAPPED | ELF_F_MALLOCED); in __libdw_open_file()
150 elf_end (elf); in __libdw_open_file()
151 elf = subelf; in __libdw_open_file()
152 error = what_kind (*fdp, &elf, &kind, &close_fd); in __libdw_open_file()
164 elf_end (elf); in __libdw_open_file()
165 elf = NULL; in __libdw_open_file()
174 *elfp = elf; in __libdw_open_file()