HomeSort by: relevance | last modified time | path
    Searched refs:e_shnum (Results 1 - 25 of 48) sorted by relevancy

1 2

  /src/sys/arch/amd64/stand/prekern/
elf.c 129 for (i = 0; i < eif.ehdr->e_shnum; i++) {
181 if (sym->st_shndx >= eif.ehdr->e_shnum) {
283 size = (vaddr_t)shdr + (vaddr_t)(ehdr->e_shnum * sizeof(Elf_Shdr)) -
313 for (i = 0; i < eif.ehdr->e_shnum; i++) {
344 for (i = 0; i < eif.ehdr->e_shnum; i++) {
386 if (j >= eif.ehdr->e_shnum) {
393 for (i = 0; i < eif.ehdr->e_shnum; i++) {
397 if (i == eif.ehdr->e_shnum) {
408 if (j == SHN_UNDEF || j >= eif.ehdr->e_shnum) {
434 for (i = 0; i < eif.ehdr->e_shnum; i++)
    [all...]
  /src/sys/arch/hpcmips/stand/pbsdboot/
elf.c 153 (shtbl = (Elf_Shdr *)alloc(sizeof(*shtbl) * elf->e_shnum)) == NULL) {
176 if (read(fd, (void *)shtbl, sizeof(Elf_Shdr) * elf->e_shnum)
177 != (int)(sizeof(Elf_Shdr) * elf->e_shnum)) {
245 for (i = 0; i < elf->e_shnum; i++) {
275 dbg_eh.e_shnum = 2;
350 if (shtbl) dealloc(shtbl, sizeof(*shtbl) * elf->e_shnum);
359 if (shtbl) dealloc(shtbl, sizeof(*shtbl) * elf->e_shnum);
  /src/sys/compat/linux/common/
linux_exec_elf32.c 106 shsize = eh->e_shnum * sizeof(Elf_Shdr);
115 if (shstrndx == SHN_UNDEF || shstrndx >= eh->e_shnum) {
122 for (i = 0; i < eh->e_shnum; i++) {
171 shsize = eh->e_shnum * sizeof(Elf_Shdr);
178 for (i = 0; i < eh->e_shnum; i++) {
231 shsize = eh->e_shnum * sizeof(Elf_Shdr);
240 if (shstrndx == SHN_UNDEF || shstrndx >= eh->e_shnum) {
247 for (i = 0; i < eh->e_shnum; i++) {
292 shsize = eh->e_shnum * sizeof(Elf_Shdr);
301 if (shstrndx == SHN_UNDEF || shstrndx >= eh->e_shnum) {
    [all...]
  /src/sys/arch/i386/stand/lib/
exec_multiboot1.c 59 shnum = ehdr32->e_shnum;
63 shnum = ehdr64->e_shnum;
175 shlen = ehdr.e_shnum * ehdr.e_shentsize;
185 mbi->mi_elfshdr_num = ehdr.e_shnum;
  /src/sys/arch/x68k/stand/common/
exec_sub.c 170 for (u = 0; sh++, ++u < hdr->e_shnum; ) {
181 xarg->ehdr.e_shnum = 0; /* no symbol */
191 xarg->ehdr.e_shnum = 3;
207 xarg->ehdr.e_shnum++;
  /src/sys/lib/libsa/
lookup_elf32.c 69 for (i = 0; i < elf->e_shnum; i++) {
loadfile_elf32.c 104 I16(ehdr->e_shnum);
118 I16(ehdr->e_shnum);
141 E16(ehdr->e_shnum);
155 E16(ehdr->e_shnum);
367 shdrsz = elf->e_shnum * sizeof(Elf_Shdr);
389 for (i = 0; i < elf->e_shnum; i++)
401 for (i = 0; i < elf->e_shnum; i++) {
444 for (i = 0; i < elf->e_shnum; i++) {
450 for (j = 0; j < elf->e_shnum; j++)
482 for (i = 0; i < elf->e_shnum; i++
    [all...]
  /src/sys/arch/amiga/stand/bootblock/elf2bb/
elf2bb.c 149 dprintf(("%04x sections, offset %08x\n", be16toh(eh->e_shnum),
167 for (i = 0; i < be16toh(eh->e_shnum); ++i) {
254 sect_offset = malloc(be16toh(eh->e_shnum) * sizeof(uint32_t));
255 for (i = 0, l = 0; i < be16toh(eh->e_shnum); ++i) {
308 for (i = 0; i < be16toh(eh->e_shnum); ++i) {
319 for (n = 0; n < be16toh(eh->e_shnum); ++n) {
  /src/usr.sbin/lockstat/
elf32.c 129 for (i = 0; i < ehdr.e_shnum; i++, off += sizeof(symhdr)) {
136 if (i == ehdr.e_shnum || symhdr.sh_offset == 0)
  /src/sys/arch/zaurus/stand/zbsdmod/
zbsdmod.c 175 sz = elf->e_shnum * sizeof(Elf_Shdr);
187 for (havesyms = i = 0; i < elf->e_shnum; i++)
190 for (i = 0; i < elf->e_shnum; i++) {
216 sz = elf->e_shnum * sizeof(Elf_Shdr);
  /src/sys/arch/atari/stand/tostools/libtos/
elf.c 114 i = ehdr.e_shnum + 1;
131 kernsize += symsize + sizeof(ehdr) + ehdr.e_shnum*sizeof(Elf32_Shdr);
176 nhdrs = ehdr.e_shnum;
  /src/usr.bin/crunch/crunchide/
exec_elf32.c 194 shdrsize = ehdr.e_shnum * ehdr.e_shentsize;
204 for (i = 0; i < ehdr.e_shnum; i++) {
217 if (!weird && strtabsnum != (ehdr.e_shnum - 1)) {
  /src/usr.bin/elf2aout/
elf2aout.c 263 ex.e_shnum = bswap16(ex.e_shnum);
278 (size_t)ex.e_shnum * sizeof(Elf32_Shdr), "sh");
280 bswap32_region((int32_t*)sh, sizeof(Elf32_Shdr) * ex.e_shnum);
288 symTypeTable = malloc(ex.e_shnum * sizeof(int));
291 memset(symTypeTable, 0, ex.e_shnum * sizeof(int));
295 for (i = 0; i < ex.e_shnum; i++) {
  /src/sys/dev/
kloader.c 213 shsz = eh.e_shentsize * eh.e_shnum;
262 for (i = 0; i < eh.e_shnum; i++) {
282 + eh.e_shentsize * eh.e_shnum
331 eoff += eh.e_shentsize * eh.e_shnum;
346 kloader_copy(kv, sh, eh.e_shentsize * eh.e_shnum);
347 kv += eh.e_shentsize * eh.e_shnum;
  /src/sys/arch/hpc/stand/hpcboot/
load_elf.cpp 77 sz = _eh.e_shnum * _eh.e_shentsize;
191 size_t shtab_sz = _eh.e_shentsize * _eh.e_shnum;
227 for (i = 0; i < _eh.e_shnum; i++, sh++) {
  /src/sys/arch/x68k/stand/aout2hux/
aout68k.h 112 be_uint16_t e_shnum; /* number of section header entries */ member in struct:elf_m68k_hdr
  /src/sys/arch/sun3/sun3x/
locore2.c 120 for (i = 0; i < ehdr->e_shnum; i++) {
  /src/sys/kern/
subr_kobj.c 228 if (hdr->e_shnum == 0 || hdr->e_shnum > ELF_MAXSHNUM ||
234 ko->ko_shdrsz = hdr->e_shnum * sizeof(Elf_Shdr);
248 for (i = 0; i < hdr->e_shnum; i++) {
287 if (symstrindex == SHN_UNDEF || symstrindex >= hdr->e_shnum ||
372 if (hdr->e_shstrndx >= hdr->e_shnum) {
397 for (i = 0; i < hdr->e_shnum; i++) {
473 for (i = 0; i < hdr->e_shnum; i++) {
  /src/sys/arch/sun2/sun2/
locore2.c 136 for (i = 0; i < ehdr->e_shnum; i++) {
  /src/sys/arch/sun3/sun3/
locore2.c 140 for (i = 0; i < ehdr->e_shnum; i++) {
  /src/sys/ddb/
db_elf.c 161 for (i = 0; i < elf->e_shnum; i++) {
229 for (i = 0; i < elf->e_shnum; i++) {
  /src/usr.bin/elf2ecoff/
elf2ecoff.c 177 ex.e_shnum = bswap16(ex.e_shnum);
188 ex.e_shnum * sizeof(Elf32_Shdr), "sh");
190 bswap32_region((int32_t*)sh, sizeof(Elf32_Shdr) * ex.e_shnum);
201 for (i = 0; i < ex.e_shnum; i++) {
  /src/tools/amiga-elf2bb/sys/
exec_elf.h 101 Elf32_Half e_shnum; /* Number of section headers */ member in struct:__anonc1fa11540108
118 Elf64_Half e_shnum; /* Number of section headers */ member in struct:__anonc1fa11540208
  /src/lib/libc/gen/
nlist_elf32.c 240 nshdr = ehdrp->e_shnum;
  /src/usr.sbin/kvm_mkdb/
nlist_elf32.c 206 nshdr = ehdrp->e_shnum;

Completed in 28 milliseconds

1 2