Searched refs:shoff (Results 1 - 3 of 3) sorted by relevance

/gem5/ext/libelf/
H A Dlibelf_ehdr.c41 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, argument
54 if (e->e_rawsize < shoff + fsz) { /* raw file too small */
63 (*xlator)((char *) &scn->s_shdr, e->e_rawfile + shoff, (size_t) 1,
104 uint64_t shoff; local
177 shoff = ((Elf32_Ehdr *) ehdr)->e_shoff;
182 shoff = ((Elf64_Ehdr *) ehdr)->e_shoff;
187 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM ||
193 if (shnum != 0 || shoff == 0LL) { /* not using extended numbering */
197 } else if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0)
H A Delf_scn.c45 uint64_t shoff; local
58 shoff + fsz * shnum > e->e_rawsize) { \
72 shoff = (uint64_t) eh32->e_shoff;
76 shoff = eh64->e_shoff;
83 src = e->e_rawfile + shoff;
H A Delf_update.c327 off_t rc, phoff, shoff; local
351 shoff = (uint64_t) eh32->e_shoff;
358 shoff = eh64->e_shoff;
457 if (rc > shoff) {
462 if (shoff % align) {
467 shoff = roundup(rc, align);
469 rc = shoff + fsz * shnum;
471 shoff = 0;
487 eh32->e_shoff = (uint32_t) shoff;
490 eh64->e_shoff = (uint64_t) shoff;
625 uint64_t phoff, shoff; local
[all...]

Completed in 7 milliseconds