Home | History | Annotate | Download | only in libelf

Lines Matching refs:map_address

74 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize,
80 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent,
96 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset,
172 if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA
174 || (((size_t) ((char *) map_address + offset))
177 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff
183 if (likely (map_address != NULL))
186 memcpy (&size, &((Elf32_Shdr *) ((char *) map_address
221 if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA
223 || (((size_t) ((char *) map_address + offset))
226 size = ((Elf64_Shdr *) ((char *) map_address + ehdr.e64->e_shoff
230 if (likely (map_address != NULL))
233 memcpy (&size, &((Elf64_Shdr *) ((char *) map_address
267 file_read_elf (int fildes, void *map_address, unsigned char *e_ident,
283 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize);
292 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent,
314 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) ((char *) map_address + offset);
317 if (map_address != NULL && e_ident[EI_DATA] == MY_ELFDATA
344 ((char *) map_address + offset
400 Elf64_Ehdr *ehdr = (Elf64_Ehdr *) ((char *) map_address + offset);
403 if (map_address != NULL && e_ident[EI_DATA] == MY_ELFDATA
430 ((char *) map_address + offset
489 __libelf_read_mmaped_file (int fildes, void *map_address, off_t offset,
496 unsigned char *e_ident = (unsigned char *) map_address + offset;
504 return file_read_elf (fildes, map_address, e_ident, offset, maxsize,
508 return file_read_ar (fildes, map_address, offset, maxsize, cmd, parent);
516 return allocate_elf (fildes, map_address, offset, maxsize, cmd, parent,
584 void *map_address = NULL;
611 map_address = mmap (NULL, maxsize, (cmd == ELF_C_READ_MMAP
619 if (map_address == MAP_FAILED)
620 map_address = NULL;
627 map_address = parent->map_address;
632 if (map_address != NULL)
634 assert (map_address != MAP_FAILED);
636 struct Elf *result = __libelf_read_mmaped_file (fildes, map_address,
644 || parent->map_address != map_address))
645 munmap (map_address, maxsize);
671 if (elf->map_address != NULL)
677 hdr = (struct ar_hdr *) (elf->map_address + offset);
706 if (elf->map_address != NULL)
709 elf->map_address + offset
764 if (elf->map_address != NULL)
774 ar_hdr = (struct ar_hdr *) (elf->map_address + elf->state.ar.offset);