/src/sys/lib/libsa/ |
lookup_elf32.c | 50 Elf_Shdr *shp; local in function:ELFNAMEEND 68 shp = (Elf_Shdr *)((char *)sstab + elf->e_shoff); 70 if (shp[i].sh_type != SHT_SYMTAB) 72 if (shp[i].sh_offset == 0) 74 symtab_start = (Elf_Sym*)((char*)sstab + shp[i].sh_offset); 75 symtab_end = (Elf_Sym*)((char*)sstab + shp[i].sh_offset 76 + shp[i].sh_size); 77 j = shp[i].sh_link; 78 if (shp[j].sh_offset == 0) 80 strtab_start = (char*)sstab + shp[j].sh_offset [all...] |
loadfile_elf32.c | 512 Elf_Shdr *shp; local in function:ELFNAMEEND 526 shp = ALLOC(sz); 527 ret = ELFNAMEEND(readfile_local)(fd, elf->e_shoff, shp, sz); 537 internalize_shdr(elf->e_ident[EI_DATA], &shp[i]); 544 Elf_Off shstroff = shp[elf->e_shstrndx].sh_offset; 545 shstrsz = shp[elf->e_shstrndx].sh_size; 560 shp[elf->e_shstrndx].sh_offset = maxp - elfp; 577 switch (shp[i].sh_type) { 581 if (strncmp(&shstr[shp[i].sh_name], 587 shp[i].sh_offset = 0 [all...] |
/src/sys/arch/sun3/sun3x/ |
locore2.c | 99 Elf_Shdr *shp; local in function:_save_symtab 119 shp = (Elf_Shdr *)(end + ehdr->e_shoff); 121 if (shp[i].sh_type != SHT_SYMTAB && 122 shp[i].sh_type != SHT_STRTAB) { 125 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 126 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset + 127 shp[i].sh_size);
|
/src/sys/arch/atari/stand/tostools/libtos/ |
elf.c | 171 Elf32_Shdr *shp; local in function:elf_load 181 if (read(fd, p, nhdrs * sizeof(*shp)) != nhdrs * sizeof(*shp)) 183 shp = (Elf32_Shdr*)p; 184 p += nhdrs * sizeof(*shp); 186 if (shp[i].sh_type == SHT_SYMTAB) { 187 if (shp[i].sh_offset == 0) 191 if (lseek(fd, (off_t)shp[i].sh_offset, SEEK_SET) != 192 shp[i].sh_offset) 195 if (read(fd, p, shp[i].sh_size) != shp[i].sh_size [all...] |
/src/sys/ddb/ |
db_elf.c | 110 Elf_Shdr *shp; local in function:db_elf_sym_init 160 shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff); 162 if (shp[i].sh_type == SHT_SYMTAB) { 163 if (shp[i].sh_offset == 0) 167 shp[i].sh_offset); 169 shp[i].sh_offset + shp[i].sh_size); 171 j = shp[i].sh_link; 172 if (shp[j].sh_offset == 0) 174 strtab_start = (char *)symtab + shp[j].sh_offset 216 Elf_Shdr *shp = STAB_TO_SHDR(stab, elf); local in function:db_elf_find_strtab [all...] |
/src/sys/arch/sun2/sun2/ |
locore2.c | 115 Elf_Shdr *shp; local in function:_save_symtab 135 shp = (Elf_Shdr *)(end + ehdr->e_shoff); 137 if (shp[i].sh_type != SHT_SYMTAB && 138 shp[i].sh_type != SHT_STRTAB) { 141 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 142 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset + 143 shp[i].sh_size);
|
/src/sys/arch/sun3/sun3/ |
locore2.c | 119 Elf_Shdr *shp; local in function:_save_symtab 139 shp = (Elf_Shdr *)(end + ehdr->e_shoff); 141 if (shp[i].sh_type != SHT_SYMTAB && 142 shp[i].sh_type != SHT_STRTAB) { 145 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 146 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset + 147 shp[i].sh_size);
|
/src/sys/arch/zaurus/stand/zbsdmod/ |
zbsdmod.c | 90 static Elf_Shdr *shp; variable in typeref:typename:Elf_Shdr * 176 shp = (Elf_Shdr *)((vaddr_t)elf + elf->e_shoff); 188 if (shp[i].sh_type == SHT_SYMTAB) 191 if (shp[i].sh_type == SHT_SYMTAB || 192 shp[i].sh_type == SHT_STRTAB) { 194 sz = shp[i].sh_size; 199 shp[i].sh_offset)[sz]; 202 maxv += roundup(shp[i].sh_size, sizeof(long)); 203 shp[i].sh_offset = off; 204 off += roundup(shp[i].sh_size, sizeof(long)) [all...] |
/src/sbin/ldconfig/ |
ldconfig.c | 304 struct shlib_list *shp; local in function:enter 306 for (shp = shlib_head; shp; shp = shp->next) { 307 if (strcmp(name, shp->name) != 0 || major != shp->major) 311 if (cmpndewey(dewey, ndewey, shp->dewey, shp->ndewey) > 0) { 316 shp->name, shp->major, shp->minor 377 struct shlib_list *shp; local in function:buildhints 521 struct shlib_list *shp; local in function:readhints 605 struct shlib_list *shp; local in function:listhints [all...] |
/src/sys/arch/next68k/next68k/ |
nextrom.c | 142 Elf_Shdr *shp; local in function:next68k_bootargs 183 shp = (Elf_Shdr *)(reloc_end + ehdr->e_shoff); 185 if (shp[i].sh_type != SHT_SYMTAB && 186 shp[i].sh_type != SHT_STRTAB) { 189 minsym = MIN(minsym, (vaddr_t)reloc_end + shp[i].sh_offset); 190 maxsym = MAX(maxsym, (vaddr_t)reloc_end + shp[i].sh_offset + 191 shp[i].sh_size);
|
/src/sys/arch/luna68k/luna68k/ |
machdep.c | 279 Elf_Shdr *shp; local in function:symtab_size 300 shp = (Elf_Shdr *)(hdr + ehdr->e_shoff); 302 if (shp[i].sh_type != SHT_SYMTAB && 303 shp[i].sh_type != SHT_STRTAB) { 306 maxsym = uimax(maxsym, shp[i].sh_offset + shp[i].sh_size);
|
/src/bin/csh/ |
dir.c | 107 struct stat swd, shp; local in function:dinit 113 stat(ecp, &swd) != -1 && stat(short2str(hp), &shp) != -1 && 114 swd.st_dev == shp.st_dev && swd.st_ino == shp.st_ino) 123 if (stat(cwd, &shp) != -1 && swd.st_dev == shp.st_dev && 124 swd.st_ino == shp.st_ino)
|
/src/sys/arch/mac68k/mac68k/ |
machdep.c | 888 Elf_Shdr *shp; local in function:getenvvars 1021 shp = (Elf_Shdr *)(end + ehdr->e_shoff); 1023 if (shp[i].sh_type != SHT_SYMTAB && 1024 shp[i].sh_type != SHT_STRTAB) { 1027 minsym = MIN(minsym, (vaddr_t)end + shp[i].sh_offset);
|
/src/sys/fs/nfs/server/ |
nfs_nfsdstate.c | 492 struct nfssessionhash *shp; local in function:nfsrv_getclient 535 shp = NFSSESSIONHASH(nd->nd_sessionid); 536 NFSLOCKSESSION(shp); 540 NFSUNLOCKSESSION(shp); 632 shp = NFSSESSIONHASH(nsep->sess_sessionid); 634 NFSLOCKSESSION(shp); 635 LIST_INSERT_HEAD(&shp->list, nsep, sess_hash); 638 NFSUNLOCKSESSION(shp); 5778 struct nfssessionhash *shp; local in function:nfsrv_checksequence 5782 shp = NFSSESSIONHASH(nd->nd_sessionid) 5840 struct nfssessionhash *shp; local in function:nfsrv_checkreclaimcomplete 5871 struct nfssessionhash *shp; local in function:nfsrv_cache_session 5893 struct nfssessionhash *shp; local in function:nfsrv_findsession 5929 struct nfssessionhash *shp; local in function:nfsrv_freesession [all...] |