Lines Matching defs:shsize
1478 size_t shsize;
1491 shsize = eh_buf->e_shentsize * eh_buf->e_shnum;
1497 if (shsize > en_size - sizeof(Ehdr)) {
1498 sh_buf = malloc(shsize);
1502 len = pread(fd, sh_buf, shsize, eh_buf->e_shoff);
1503 if (len != shsize) {
1508 } else if (eh_buf->e_shoff + shsize > len) {
1509 len = pread(fd, eh_buf + 1, shsize, eh_buf->e_shoff);
1510 if (len != shsize) {
5164 task->shsize = task->eh->e_shentsize * task->eh->e_shnum;
5167 task->shsize += task->eh->e_shoff - off_start;
5168 task->shdr_allocated_buf = mmap(0, task->shsize, PROT_READ, MAP_PRIVATE, task->fd, off_start + task->file_offset);
5196 munmap(task->shdr_allocated_buf, task->shsize);
5206 munmap(task->shdr_allocated_buf, task->shsize);