HomeSort by: relevance | last modified time | path
    Searched defs:shnum (Results 1 - 19 of 19) sorted by relevancy

  /src/external/bsd/elftoolchain/dist/libelf/
libelf_ehdr.c 120 uint16_t phnum, shnum, strndx; local
190 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum;
195 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum;
200 if (shnum >= SHN_LORESERVE ||
201 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM ||
211 if ((shnum == 0 && shoff != 0) || phnum == PN_XNUM || strndx == SHN_XINDEX) {
217 e->e_u.e_elf.e_nscn = shnum;
elf_scn.c 63 size_t fsz, i, shnum; local
74 shnum > SIZE_MAX / fsz || \
75 fsz * shnum > rawsize - shoff) { \
85 shnum = e->e_u.e_elf.e_nscn;
117 for (; i < shnum; i++, src += fsz) {
elf_update.c 525 size_t phnum, shnum; local
583 shnum = e->e_u.e_elf.e_nscn;
679 if (shnum) {
680 fsz = _libelf_fsize(ELF_T_SHDR, ec, eh_version, shnum);
705 _libelf_setshnum(e, ehdr, ec, shnum);
  /src/sys/arch/i386/stand/lib/
exec_multiboot1.c 51 uint64_t shnum; local
59 shnum = ehdr32->e_shnum;
63 shnum = ehdr64->e_shnum;
70 for (i = 0; i < shnum; i++) {
exec_multiboot2.c 986 uint64_t shnum, shentsize, shstrndx, shoff; local
1005 shnum = ehdr32->e_shnum;
1012 shnum = ehdr64->e_shnum;
1021 shdr_len = shnum * shentsize;
1031 mbt->num = shnum;
  /src/external/cddl/osnet/dist/lib/libctf/common/
ctf_lib.c 223 size_t shstrndx, shnum; local
306 shnum = hdr.e64.e_shnum;
310 if ((shstrndx == SHN_XINDEX) || (shnum == 0)) {
319 shnum = x32.sh_size;
329 shnum = x64.sh_size;
334 if (shstrndx >= shnum)
337 nbytes = sizeof (GElf_Shdr) * shnum;
349 nbytes = sizeof (Elf32_Shdr) * shnum;
358 for (i = 0; i < shnum; i++)
393 for (i = 0; i < shnum; i++)
    [all...]
  /src/external/bsd/file/dist/src/
readelf.c 1837 uint16_t type, phnum, shnum, notecount; local
  /src/external/gpl3/binutils/dist/libiberty/
simple-object-elf.c 390 unsigned int shnum; member in struct:simple_object_elf_read
496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr,
501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX)
518 if (eor->shnum == 0)
519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr,
538 if (eor->shstrndx >= eor->shnum
544 if (eor->shstrndx >= eor->shnum)
546 *errmsg = "invalid ELF shstrndx >= shnum";
577 unsigned int shnum; local
593 shnum = eor->shnum
779 unsigned int shnum; local
905 unsigned int shnum; local
1098 unsigned int shnum; local
    [all...]
  /src/external/gpl3/binutils.old/dist/libiberty/
simple-object-elf.c 390 unsigned int shnum; member in struct:simple_object_elf_read
496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr,
501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX)
518 if (eor->shnum == 0)
519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr,
538 if (eor->shstrndx >= eor->shnum
544 if (eor->shstrndx >= eor->shnum)
546 *errmsg = "invalid ELF shstrndx >= shnum";
577 unsigned int shnum; local
593 shnum = eor->shnum
779 unsigned int shnum; local
905 unsigned int shnum; local
1098 unsigned int shnum; local
    [all...]
  /src/external/gpl3/gcc/dist/libiberty/
simple-object-elf.c 390 unsigned int shnum; member in struct:simple_object_elf_read
496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr,
501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX)
518 if (eor->shnum == 0)
519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr,
538 if (eor->shstrndx >= eor->shnum
544 if (eor->shstrndx >= eor->shnum)
546 *errmsg = "invalid ELF shstrndx >= shnum";
577 unsigned int shnum; local
593 shnum = eor->shnum
779 unsigned int shnum; local
905 unsigned int shnum; local
1098 unsigned int shnum; local
    [all...]
  /src/external/gpl3/gcc.old/dist/libiberty/
simple-object-elf.c 390 unsigned int shnum; member in struct:simple_object_elf_read
496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr,
501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX)
518 if (eor->shnum == 0)
519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr,
538 if (eor->shstrndx >= eor->shnum
544 if (eor->shstrndx >= eor->shnum)
546 *errmsg = "invalid ELF shstrndx >= shnum";
577 unsigned int shnum; local
593 shnum = eor->shnum
779 unsigned int shnum; local
905 unsigned int shnum; local
1098 unsigned int shnum; local
    [all...]
  /src/external/gpl3/gdb.old/dist/libiberty/
simple-object-elf.c 390 unsigned int shnum; member in struct:simple_object_elf_read
496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr,
501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX)
518 if (eor->shnum == 0)
519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr,
538 if (eor->shstrndx >= eor->shnum
544 if (eor->shstrndx >= eor->shnum)
546 *errmsg = "invalid ELF shstrndx >= shnum";
577 unsigned int shnum; local
593 shnum = eor->shnum
779 unsigned int shnum; local
905 unsigned int shnum; local
1098 unsigned int shnum; local
    [all...]
  /src/external/gpl3/gdb/dist/libiberty/
simple-object-elf.c 390 unsigned int shnum; member in struct:simple_object_elf_read
496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr,
501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX)
518 if (eor->shnum == 0)
519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr,
538 if (eor->shstrndx >= eor->shnum
544 if (eor->shstrndx >= eor->shnum)
546 *errmsg = "invalid ELF shstrndx >= shnum";
577 unsigned int shnum; local
593 shnum = eor->shnum
779 unsigned int shnum; local
905 unsigned int shnum; local
1098 unsigned int shnum; local
    [all...]
  /src/external/gpl3/gcc/dist/gcc/cp/
module.cc 1243 uint16_t shnum; /* Section Header NUM */ member in struct:elf::header
1836 unsigned shnum = h->shnum; local
1837 if (shnum == SHN_XINDEX)
1845 shnum = get_section (0)->size;
1851 if (!shnum)
1854 if (!read (&sectab, h->shoff, shnum * sizeof (section)))
1872 strtab.pos = shnum * sizeof (section);
2229 unsigned shnum = sectab.pos / sizeof (section); local
2230 if (shnum >= SHN_LORESERVE
    [all...]
  /src/external/gpl3/gcc.old/dist/gcc/cp/
module.cc 1207 uint16_t shnum; /* Section Header NUM */ member in struct:elf::header
1800 unsigned shnum = h->shnum; local
1801 if (shnum == SHN_XINDEX)
1809 shnum = get_section (0)->size;
1815 if (!shnum)
1818 if (!read (&sectab, h->shoff, shnum * sizeof (section)))
1836 strtab.pos = shnum * sizeof (section);
2184 unsigned shnum = sectab.pos / sizeof (section); local
2185 if (shnum >= SHN_LORESERVE
    [all...]
  /src/external/gpl3/gcc/dist/libbacktrace/
elf.c 6518 unsigned int shnum; local
6644 shnum = ehdr.e_shnum;
6647 if ((shnum == 0 || shstrndx == SHN_XINDEX)
6659 if (shnum == 0)
6660 shnum = shdr->sh_size;
6677 if (shstrndx >= shnum && shstrndx >= SHN_LORESERVE + 0x100)
6684 if (shnum == 0 || shstrndx == 0)
6694 (shnum - 1) * sizeof (b_elf_shdr),
6719 for (i = 1; i < shnum; ++i)
6898 if (strtab_shndx >= shnum)
    [all...]
  /src/external/gpl3/gcc.old/dist/libbacktrace/
elf.c 3995 unsigned int shnum; local
4119 shnum = ehdr.e_shnum;
4122 if ((shnum == 0 || shstrndx == SHN_XINDEX)
4134 if (shnum == 0)
4135 shnum = shdr->sh_size;
4152 if (shstrndx >= shnum && shstrndx >= SHN_LORESERVE + 0x100)
4159 if (shnum == 0 || shstrndx == 0)
4169 (shnum - 1) * sizeof (b_elf_shdr),
4194 for (i = 1; i < shnum; ++i)
4367 if (strtab_shndx >= shnum)
    [all...]
  /src/external/gpl3/gdb/dist/libbacktrace/
elf.c 6518 unsigned int shnum; local
6644 shnum = ehdr.e_shnum;
6647 if ((shnum == 0 || shstrndx == SHN_XINDEX)
6659 if (shnum == 0)
6660 shnum = shdr->sh_size;
6677 if (shstrndx >= shnum && shstrndx >= SHN_LORESERVE + 0x100)
6684 if (shnum == 0 || shstrndx == 0)
6694 (shnum - 1) * sizeof (b_elf_shdr),
6719 for (i = 1; i < shnum; ++i)
6898 if (strtab_shndx >= shnum)
    [all...]
  /src/external/gpl3/gdb.old/dist/libbacktrace/
elf.c 6518 unsigned int shnum; local
6644 shnum = ehdr.e_shnum;
6647 if ((shnum == 0 || shstrndx == SHN_XINDEX)
6659 if (shnum == 0)
6660 shnum = shdr->sh_size;
6677 if (shstrndx >= shnum && shstrndx >= SHN_LORESERVE + 0x100)
6684 if (shnum == 0 || shstrndx == 0)
6694 (shnum - 1) * sizeof (b_elf_shdr),
6719 for (i = 1; i < shnum; ++i)
6898 if (strtab_shndx >= shnum)
    [all...]

Completed in 35 milliseconds