Lines Matching refs:sect
33 static void* zend_elf_read_sect(int fd, zend_elf_sectheader *sect) in zend_elf_read_sect() argument
35 void *s = emalloc(sect->size); in zend_elf_read_sect()
37 if (lseek(fd, sect->ofs, SEEK_SET) < 0) { in zend_elf_read_sect()
41 if (read(fd, s, sect->size) != (ssize_t)sect->size) { in zend_elf_read_sect()
52 zend_elf_sectheader sect; in zend_elf_load_symbols() local
90 if (read(fd, §, sizeof(sect)) == sizeof(sect) in zend_elf_load_symbols()
91 && sect.type == ELFSECT_TYPE_SYMTAB) { in zend_elf_load_symbols()
92 uint32_t n, count = sect.size / sizeof(zend_elf_symbol); in zend_elf_load_symbols()
93 zend_elf_symbol *syms = zend_elf_read_sect(fd, §); in zend_elf_load_symbols()
97 if (lseek(fd, hdr.shofs + sect.link * sizeof(sect), SEEK_SET) >= 0 in zend_elf_load_symbols()
98 && read(fd, §, sizeof(sect)) == sizeof(sect) in zend_elf_load_symbols()
99 && (str_tbl = (char*)zend_elf_read_sect(fd, §)) != NULL) { in zend_elf_load_symbols()
113 if (lseek(fd, hdr.shofs + (i + 1) * sizeof(sect), SEEK_SET) < 0) { in zend_elf_load_symbols()