Home
last modified time | relevance | path

Searched refs:phsize (Results 1 – 6 of 6) sorted by relevance

/third_party/musl/porting/linux/user/ldso/
Ddynlink_rand.h54 size_t phsize; member
Ddynlink.c1359 size_t phsize; in map_library() local
1381 phsize = eh->e_phentsize * eh->e_phnum; in map_library()
1382 if (phsize > sizeof buf - sizeof *eh) { in map_library()
1383 allocated_buf = malloc(phsize); in map_library()
1385 l = pread(fd, allocated_buf, phsize, eh->e_phoff); in map_library()
1387 if (l != phsize) goto noexec; in map_library()
1389 } else if (eh->e_phoff + phsize > l) { in map_library()
1390 l = pread(fd, buf+1, phsize, eh->e_phoff); in map_library()
1392 if (l != phsize) goto noexec; in map_library()
1554 && eh->e_phoff+phsize <= ph->p_offset+ph->p_filesz) { in map_library()
[all …]
/third_party/musl/porting/liteos_a/user/ldso/
Ddynlink.c625 size_t phsize; in map_library() local
643 phsize = eh->e_phentsize * eh->e_phnum; in map_library()
644 if (phsize > sizeof buf - sizeof *eh) { in map_library()
645 allocated_buf = malloc(phsize); in map_library()
647 l = pread(fd, allocated_buf, phsize, eh->e_phoff); in map_library()
649 if (l != phsize) goto noexec; in map_library()
651 } else if (eh->e_phoff + phsize > l) { in map_library()
652 l = pread(fd, buf+1, phsize, eh->e_phoff); in map_library()
654 if (l != phsize) goto noexec; in map_library()
762 && eh->e_phoff+phsize <= ph->p_offset+ph->p_filesz) { in map_library()
/third_party/musl/porting/liteos_a/user_debug/ldso/
Ddynlink.c625 size_t phsize; in map_library() local
643 phsize = eh->e_phentsize * eh->e_phnum; in map_library()
644 if (phsize > sizeof buf - sizeof *eh) { in map_library()
645 allocated_buf = malloc(phsize); in map_library()
647 l = pread(fd, allocated_buf, phsize, eh->e_phoff); in map_library()
649 if (l != phsize) goto noexec; in map_library()
651 } else if (eh->e_phoff + phsize > l) { in map_library()
652 l = pread(fd, buf+1, phsize, eh->e_phoff); in map_library()
654 if (l != phsize) goto noexec; in map_library()
762 && eh->e_phoff+phsize <= ph->p_offset+ph->p_filesz) { in map_library()
/third_party/musl/ldso/
Ddynlink.c627 size_t phsize; in map_library() local
645 phsize = eh->e_phentsize * eh->e_phnum; in map_library()
646 if (phsize > sizeof buf - sizeof *eh) { in map_library()
647 allocated_buf = malloc(phsize); in map_library()
649 l = pread(fd, allocated_buf, phsize, eh->e_phoff); in map_library()
651 if (l != phsize) goto noexec; in map_library()
653 } else if (eh->e_phoff + phsize > l) { in map_library()
654 l = pread(fd, buf+1, phsize, eh->e_phoff); in map_library()
656 if (l != phsize) goto noexec; in map_library()
764 && eh->e_phoff+phsize <= ph->p_offset+ph->p_filesz) { in map_library()
/third_party/elfutils/src/
Dunstrip.c1160 size_t phsize = gelf_fsize (main, ELF_T_PHDR, phnum, EV_CURRENT); in find_alloc_sections_prelink() local
1161 src.d_buf += src.d_size + phsize; in find_alloc_sections_prelink()