Searched refs:fsz (Results 1 - 6 of 6) sorted by relevance

/gem5/ext/libelf/
H A Dlibelf_xlate.c48 size_t cnt, dsz, fsz, msz; local
79 if ((fsz = (elfclass == ELFCLASS32 ? elf32_fsize : elf64_fsize)(src->d_type,
87 if (src->d_size % (direction == ELF_TOMEMORY ? fsz : msz)) {
98 cnt = src->d_size / fsz;
102 dsz = cnt * fsz;
134 fsz == msz)
H A Dlibelf_ehdr.c45 size_t fsz; local
51 fsz = _libelf_fsize(ELF_T_SHDR, ec, e->e_version, 1);
52 assert(fsz > 0);
54 if (e->e_rawsize < shoff + fsz) { /* raw file too small */
102 size_t fsz, msz; local
135 fsz = _libelf_fsize(ELF_T_EHDR, ec, e->e_version, (size_t) 1);
136 assert(fsz > 0);
138 if (e->e_cmd != ELF_C_WRITE && e->e_rawsize < fsz) {
H A Delf_scn.c44 size_t fsz, i, shnum; local
57 if (fsz != (EH)->e_shentsize || \
58 shoff + fsz * shnum > e->e_rawsize) { \
65 fsz = _libelf_fsize(ELF_T_SHDR, ec, e->e_version, (size_t) 1);
66 assert(fsz > 0);
96 src += fsz;
99 for (; i < shnum; i++, src += fsz) {
H A Dlibelf_phdr.c40 size_t fsz, msz; local
78 fsz = gelf_fsize(e, ELF_T_PHDR, phnum, e->e_version);
80 assert(fsz > 0);
82 if ((uint64_t) e->e_rawsize < (phoff + fsz)) {
H A Delf_update.c325 size_t align, fsz; local
416 fsz = _libelf_fsize(ELF_T_PHDR, ec, eh_version, phnum);
436 rc = phoff + fsz;
453 fsz = _libelf_fsize(ELF_T_SHDR, ec, eh_version, (size_t) 1);
469 rc = shoff + fsz * shnum;
505 size_t fsz, msz, nobjects; local
587 fsz = _libelf_fsize(elftype, ec, e->e_version, nobjects);
590 dst.d_size = fsz;
596 rc += fsz;
624 size_t fsz, ms local
[all...]
H A Delf_data.c41 size_t fsz, msz, count; local
87 if ((fsz = (elfclass == ELFCLASS32 ? elf32_fsize : elf64_fsize)(elftype,
94 if (sh_size % fsz) {
99 count = sh_size / fsz;

Completed in 10 milliseconds