Searched refs:shdr (Results 26 - 50 of 117) sorted by relevance

12345

/netbsd-current/external/bsd/libproc/dist/
H A Dproc_sym.c325 GElf_Shdr shdr; local
355 gelf_getshdr(scn, &shdr);
356 switch (shdr.sh_type) {
359 symtabstridx = shdr.sh_link;
363 dynsymstridx = shdr.sh_link;
474 GElf_Shdr shdr; local
503 gelf_getshdr(scn, &shdr);
504 switch (shdr.sh_type) {
507 symtabstridx = shdr.sh_link;
511 dynsymstridx = shdr
575 GElf_Shdr shdr; local
[all...]
/netbsd-current/external/gpl3/binutils/dist/gprofng/libcollector/
H A Dmmaptrace.c1009 ELF_SHDR *shdr = (ELF_SHDR*) (base + ehdr->e_shoff); local
1043 i, (long long) shdr[i].sh_name, base + shdr[ehdr->e_shstrndx].sh_offset + shdr[i].sh_name,
1044 (long long) shdr[i].sh_type, (long long) shdr[i].sh_type,
1045 (long long) shdr[i].sh_flags, (long long) shdr[i].sh_flags,
1046 (long long) shdr[i].sh_addr, (long long) shdr[
[all...]
/netbsd-current/external/cddl/osnet/dist/tools/ctf/cvt/
H A Dutil.c72 GElf_Shdr shdr; local
80 if (gelf_getshdr(scn, &shdr) == NULL) {
87 (size_t)shdr.sh_name)) == NULL) {
/netbsd-current/external/gpl3/binutils/usr.sbin/dbsym/
H A Ddbsym.c364 void *shdr; local
409 if ((shdr = malloc(sh_size)) == NULL)
412 s64hdr = shdr;
414 s32hdr = shdr;
423 if (read(fd, shdr, sh_size) != sh_size)
465 memcpy(*symtab + sh_offset, shdr, sh_size);
487 free(shdr);
/netbsd-current/external/gpl3/binutils.old/usr.sbin/dbsym/
H A Ddbsym.c364 void *shdr; local
409 if ((shdr = malloc(sh_size)) == NULL)
412 s64hdr = shdr;
414 s32hdr = shdr;
423 if (read(fd, shdr, sh_size) != sh_size)
465 memcpy(*symtab + sh_offset, shdr, sh_size);
487 free(shdr);
/netbsd-current/external/gpl3/binutils.old/dist/gold/
H A Dreloc.cc281 typename This::Shdr shdr(ps);
283 unsigned int sh_type = shdr.get_sh_type();
287 unsigned int shndx = this->adjust_shndx(shdr.get_sh_info());
315 if (this->adjust_shndx(shdr.get_sh_link()) != this->symtab_shndx_)
319 i, this->adjust_shndx(shdr.get_sh_link()));
323 off_t sh_size = shdr.get_sh_size();
333 if (reloc_size != shdr.get_sh_entsize())
336 i, static_cast<unsigned long>(shdr.get_sh_entsize()),
353 sr.contents = this->get_lasting_view(shdr.get_sh_offset(), sh_size,
702 typename This::Shdr shdr(
[all...]
H A Dlayout.cc659 const elfcpp::Shdr<size, big_endian>& shdr)
662 && (shdr.get_sh_flags() & elfcpp::SHF_EXCLUDE))
665 elfcpp::Elf_Word sh_type = shdr.get_sh_type();
699 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
705 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
716 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
727 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
740 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
1082 elfcpp::Shdr<size, big_endian>& shdr)
1084 unsigned int sh_type = shdr
[all...]
H A Ddynobj.cc123 typename This::Shdr shdr(p);
126 switch (shdr.get_sh_type())
157 xindex_link = this->adjust_shndx(shdr.get_sh_link());
177 shdr.get_sh_type(), *pi, i);
226 typename This::Shdr shdr(pshdrs + shndx * This::shdr_size);
228 gold_assert(shdr.get_sh_type() == type);
230 if (this->adjust_shndx(shdr.get_sh_link()) != link)
232 shndx, this->adjust_shndx(shdr.get_sh_link()), link);
234 *view = this->get_lasting_view(shdr.get_sh_offset(), shdr
[all...]
/netbsd-current/external/gpl3/binutils/dist/gold/
H A Dreloc.cc281 typename This::Shdr shdr(ps);
283 unsigned int sh_type = shdr.get_sh_type();
287 unsigned int shndx = this->adjust_shndx(shdr.get_sh_info());
315 if (this->adjust_shndx(shdr.get_sh_link()) != this->symtab_shndx_)
319 i, this->adjust_shndx(shdr.get_sh_link()));
323 off_t sh_size = shdr.get_sh_size();
333 if (reloc_size != shdr.get_sh_entsize())
336 i, static_cast<unsigned long>(shdr.get_sh_entsize()),
353 sr.contents = this->get_lasting_view(shdr.get_sh_offset(), sh_size,
702 typename This::Shdr shdr(
[all...]
H A Dlayout.cc659 const elfcpp::Shdr<size, big_endian>& shdr)
662 && (shdr.get_sh_flags() & elfcpp::SHF_EXCLUDE))
665 elfcpp::Elf_Word sh_type = shdr.get_sh_type();
699 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
705 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
716 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
727 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
740 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
1082 elfcpp::Shdr<size, big_endian>& shdr)
1084 unsigned int sh_type = shdr
[all...]
H A Ddynobj.cc123 typename This::Shdr shdr(p);
126 switch (shdr.get_sh_type())
157 xindex_link = this->adjust_shndx(shdr.get_sh_link());
177 shdr.get_sh_type(), *pi, i);
226 typename This::Shdr shdr(pshdrs + shndx * This::shdr_size);
228 gold_assert(shdr.get_sh_type() == type);
230 if (this->adjust_shndx(shdr.get_sh_link()) != link)
232 shndx, this->adjust_shndx(shdr.get_sh_link()), link);
234 *view = this->get_lasting_view(shdr.get_sh_offset(), shdr
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gold/
H A Dreloc.cc281 typename This::Shdr shdr(ps);
283 unsigned int sh_type = shdr.get_sh_type();
287 unsigned int shndx = this->adjust_shndx(shdr.get_sh_info());
315 if (this->adjust_shndx(shdr.get_sh_link()) != this->symtab_shndx_)
319 i, this->adjust_shndx(shdr.get_sh_link()));
323 off_t sh_size = shdr.get_sh_size();
333 if (reloc_size != shdr.get_sh_entsize())
336 i, static_cast<unsigned long>(shdr.get_sh_entsize()),
353 sr.contents = this->get_lasting_view(shdr.get_sh_offset(), sh_size,
702 typename This::Shdr shdr(
[all...]
H A Dlayout.cc659 const elfcpp::Shdr<size, big_endian>& shdr)
662 && (shdr.get_sh_flags() & elfcpp::SHF_EXCLUDE))
665 elfcpp::Elf_Word sh_type = shdr.get_sh_type();
699 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
705 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
716 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
727 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
740 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
1082 elfcpp::Shdr<size, big_endian>& shdr)
1084 unsigned int sh_type = shdr
[all...]
H A Ddynobj.cc123 typename This::Shdr shdr(p);
126 switch (shdr.get_sh_type())
157 xindex_link = this->adjust_shndx(shdr.get_sh_link());
177 shdr.get_sh_type(), *pi, i);
226 typename This::Shdr shdr(pshdrs + shndx * This::shdr_size);
228 gold_assert(shdr.get_sh_type() == type);
230 if (this->adjust_shndx(shdr.get_sh_link()) != link)
232 shndx, this->adjust_shndx(shdr.get_sh_link()), link);
234 *view = this->get_lasting_view(shdr.get_sh_offset(), shdr
[all...]
/netbsd-current/sys/dev/pci/
H A Dif_ipw.c377 struct ipw_soft_hdr *shdr; local
554 shdr = &sc->shdr_list[i];
555 shdr->hdr = sc->hdr_list + i;
556 shdr->offset = sizeof(struct ipw_hdr) * i;
557 shdr->addr = sc->hdr_map->dm_segs[0].ds_addr + shdr->offset;
558 TAILQ_INSERT_TAIL(&sc->sc_free_shdr, shdr, next);
1180 struct ipw_soft_hdr *shdr; local
1191 shdr = sbd->priv;
1193 shdr
1353 struct ipw_soft_hdr *shdr; local
[all...]
/netbsd-current/sys/arch/mac68k/obio/
H A Diwm_fd.c1144 sectorHdr_t *shdr; local
1151 shdr = &fd->sHdr;
1169 shdr->side = pos->side;
1170 shdr->sector = pos->sector;
1171 shdr->track = pos->track;
1180 shdr->track, shdr->side >> 3,
1181 shdr->sector, fd->iwmErr, fd->sectRetries);
1188 if (shdr->track != pos->track) {
1191 pos->track, shdr
1258 sectorHdr_t *shdr; local
[all...]
/netbsd-current/sys/kern/
H A Dkern_ksyms.c502 Elf_Shdr *shdr; local
536 shdr = (Elf_Shdr *)((uint8_t *)start + ehdr->e_shoff);
538 if (shdr[i].sh_type != SHT_SYMTAB)
540 if (shdr[i].sh_offset == 0)
542 symstart = (uint8_t *)start + shdr[i].sh_offset;
543 symsize = shdr[i].sh_size;
544 j = shdr[i].sh_link;
545 if (shdr[j].sh_offset == 0)
547 strstart = (uint8_t *)start + shdr[j].sh_offset;
548 strsize = shdr[
[all...]
H A Dcore_elf32.c115 Elf_Shdr shdr; local
194 ehdr.e_phoff = sizeof(ehdr) + sizeof(shdr);
210 memset(&shdr, 0, sizeof(shdr));
211 shdr.sh_type = SHT_NULL;
212 shdr.sh_info = npsections;
214 &shdr, sizeof(shdr)), ENOSYS, error);
/netbsd-current/external/gpl3/gcc.old/dist/libbacktrace/
H A Delf.c2747 const b_elf_shdr *shdr; local
2749 if (!backtrace_get_view (state, descriptor, shoff, sizeof shdr,
2753 shdr = (const b_elf_shdr *) shdr_view.data;
2756 shnum = shdr->sh_size;
2760 shstrndx = shdr->sh_link;
2813 const b_elf_shdr *shdr; local
2818 shdr = &shdrs[i - 1];
2820 if (shdr->sh_type == SHT_SYMTAB)
2822 else if (shdr->sh_type == SHT_DYNSYM)
2825 sh_name = shdr
[all...]
/netbsd-current/external/bsd/libpcap/dist/
H A Dpcap-util.c120 struct sll_header *shdr = (struct sll_header *)buf; local
130 protocol = EXTRACT_BE_U_2(&shdr->sll_protocol);
154 struct sll2_header *shdr = (struct sll2_header *)buf; local
164 protocol = EXTRACT_BE_U_2(&shdr->sll2_protocol);
/netbsd-current/sys/arch/i386/stand/lib/
H A Dexec_multiboot1.c46 ksyms_addr_set(void *ehdr, void *shdr, void *symbase) argument
77 shdrp64 = &((Elf64_Shdr *)shdr)[i];
84 shdrp32 = &((Elf32_Shdr *)shdr)[i];
/netbsd-current/tests/sbin/gpt/
H A Dt_gpt.sh34 shdr=34
217 zerodd seek="$((size - shdr))" count="$shdr"
229 zerodd seek=1 count="$shdr"
/netbsd-current/external/gpl3/binutils/dist/gprofng/src/
H A DStabs.cc1093 Elf_Internal_Shdr *shdr = elf->get_shdr (StabSec); local
1094 if (shdr == NULL)
1098 StabEntSize = (platform == Amd64 || platform == Sparcv9) ? 12 : (unsigned) shdr->sh_entsize;
1104 shdr = elf->get_shdr (StabStrSec);
1105 if (shdr == NULL)
1108 StabStrtabEnd = StabStrtab + shdr->sh_size;
1696 Elf_Internal_Shdr *shdr = elfDis->get_shdr (elfDis->plt); local
1697 if (shdr)
1700 pltSym->value = shdr->sh_addr;
1701 pltSym->size = shdr
1728 Elf_Internal_Shdr *shdr = elf->get_shdr (sec); local
1866 Elf_Internal_Shdr *shdr = elf->get_shdr (sec); local
2021 Elf_Internal_Shdr *shdr = elf->get_shdr (sec); local
[all...]
/netbsd-current/sys/arch/x68k/stand/aout2hux/
H A Daout2hux.c201 fprintf(stderr, "%s: size shdr %d should be %d\n", fn, i,
244 struct elf_m68k_shdr shdr; local
252 (foff_t) (get_uint32(&hdr->e_shoff) + sizeof shdr),
258 if (fread(&shdr, sizeof shdr, 1, fp) != 1) {
266 fn, i, get_uint32(&shdr.sh_flags)));
268 if (ELF68K_ISDATASEG(&shdr)) {
274 inf->text_size = get_uint32(&shdr.sh_offset) -
/netbsd-current/external/cddl/osnet/dist/lib/libdtrace/common/
H A Ddt_link.c86 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \
87 (off64_t)elf_file.shdr[(index)].sh_offset || \
88 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \
89 elf_file.shdr[(index)].sh_size)
517 Elf32_Shdr shdr[ESHDR_NUM]; member in struct:__anon1
575 shp = &elf_file.shdr[ESHDR_SHSTRTAB];
583 shp = &elf_file.shdr[ESHDR_DOF];
592 shp = &elf_file.shdr[ESHDR_STRTAB];
601 shp = &elf_file.shdr[ESHDR_SYMTAB];
623 shp = &elf_file.shdr[ESHDR_RE
666 Elf64_Shdr shdr[ESHDR_NUM]; member in struct:__anon2
[all...]

Completed in 420 milliseconds

12345