• Home
  • Raw
  • Download

Lines Matching refs:map_address

53 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize,  in file_read_ar()  argument
59 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar()
75 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, in get_shnum() argument
152 if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA in get_shnum()
154 || (((size_t) ((char *) map_address + ehdr.e32->e_shoff)) in get_shnum()
157 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff in get_shnum()
163 if (likely (map_address != NULL)) in get_shnum()
166 memcpy (&size, &((Elf32_Shdr *) ((char *) map_address in get_shnum()
202 if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA in get_shnum()
204 || (((size_t) ((char *) map_address + ehdr.e64->e_shoff)) in get_shnum()
207 size = ((Elf64_Shdr *) ((char *) map_address + ehdr.e64->e_shoff in get_shnum()
211 if (likely (map_address != NULL)) in get_shnum()
214 memcpy (&size, &((Elf64_Shdr *) ((char *) map_address in get_shnum()
248 file_read_elf (int fildes, void *map_address, unsigned char *e_ident, in file_read_elf() argument
264 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf()
282 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf()
304 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) ((char *) map_address + offset); in file_read_elf()
307 if (map_address != NULL && e_ident[EI_DATA] == MY_ELFDATA in file_read_elf()
342 if (map_address != NULL && e_ident[EI_DATA] == MY_ELFDATA in file_read_elf()
371 ((char *) map_address + offset in file_read_elf()
406 Elf64_Ehdr *ehdr = (Elf64_Ehdr *) ((char *) map_address + offset); in file_read_elf()
409 if (map_address != NULL && e_ident[EI_DATA] == MY_ELFDATA in file_read_elf()
444 if (map_address != NULL && e_ident[EI_DATA] == MY_ELFDATA in file_read_elf()
468 ((char *) map_address + offset in file_read_elf()
506 __libelf_read_mmaped_file (int fildes, void *map_address, off_t offset, in __libelf_read_mmaped_file() argument
513 unsigned char *e_ident = (unsigned char *) map_address + offset; in __libelf_read_mmaped_file()
521 return file_read_elf (fildes, map_address, e_ident, offset, maxsize, in __libelf_read_mmaped_file()
525 return file_read_ar (fildes, map_address, offset, maxsize, cmd, parent); in __libelf_read_mmaped_file()
533 return allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in __libelf_read_mmaped_file()
604 void *map_address = NULL; in read_file() local
626 map_address = mmap (NULL, maxsize, (cmd == ELF_C_READ_MMAP in read_file()
634 if (map_address == MAP_FAILED) in read_file()
635 map_address = NULL; in read_file()
642 map_address = parent->map_address; in read_file()
647 if (map_address != NULL) in read_file()
649 assert (map_address != MAP_FAILED); in read_file()
651 struct Elf *result = __libelf_read_mmaped_file (fildes, map_address, in read_file()
659 || parent->map_address != map_address)) in read_file()
660 munmap (map_address, maxsize); in read_file()
686 if (elf->map_address != NULL) in read_long_names()
693 hdr = (struct ar_hdr *) (elf->map_address + offset); in read_long_names()
722 if (elf->map_address != NULL) in read_long_names()
728 elf->map_address + offset in read_long_names()
785 if (elf->map_address != NULL) in __libelf_next_arhdr_wrlock()
797 ar_hdr = (struct ar_hdr *) (elf->map_address + elf->state.ar.offset); in __libelf_next_arhdr_wrlock()