Searched refs:shnum (Results 1 - 5 of 5) sorted by relevance
/gem5/ext/libelf/ |
H A D | elf_shnum.c | 34 elf_getshnum(Elf *e, size_t *shnum) argument 48 *shnum = e->e_u.e_elf.e_nscn;
|
H A D | libelf_extended.c | 47 _libelf_setshnum(Elf *e, void *eh, int ec, size_t shnum) argument 51 if (shnum >= SHN_LORESERVE) { 58 scn->s_shdr.s_shdr32.sh_size = shnum; 60 scn->s_shdr.s_shdr64.sh_size = shnum; 64 shnum = 0; 68 ((Elf32_Ehdr *) eh)->e_shnum = shnum; 70 ((Elf64_Ehdr *) eh)->e_shnum = shnum;
|
H A D | libelf_ehdr.c | 103 uint16_t phnum, shnum, strndx; local 176 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum; 181 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum; 186 if (shnum >= SHN_LORESERVE || 187 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || 193 if (shnum != 0 || shoff == 0LL) { /* not using extended numbering */ 195 e->e_u.e_elf.e_nscn = shnum;
|
H A D | elf_scn.c | 44 size_t fsz, i, shnum; local 58 shoff + fsz * shnum > e->e_rawsize) { \ 68 shnum = e->e_u.e_elf.e_nscn; 99 for (; i < shnum; i++, src += fsz) {
|
H A D | elf_update.c | 326 size_t phnum, shnum; local 381 shnum = e->e_u.e_elf.e_nscn; 452 if (shnum) { 469 rc = shoff + fsz * shnum; 478 _libelf_setshnum(e, ehdr, ec, shnum); 624 size_t fsz, msz, phnum, shnum; local 653 shnum = eh32->e_shnum; 659 shnum = eh64->e_shnum; 735 if (shnum != 0 && shoff != 0) {
|
Completed in 9 milliseconds