HomeSort by: relevance | last modified time | path
    Searched defs:shdr (Results 1 - 25 of 59) sorted by relevancy

1 2 3

  /src/external/bsd/elftoolchain/dist/libelf/
elf_strptr.c 54 GElf_Shdr shdr; local
63 gelf_getshdr(s, &shdr) == NULL)
66 if (shdr.sh_type != SHT_STRTAB ||
67 offset >= shdr.sh_size) {
libelf_checksum.c 59 GElf_Shdr shdr; local
87 if (gelf_getshdr(scn, &shdr) == NULL)
89 if ((shdr.sh_flags & SHF_ALLOC) == 0 ||
90 shdr.sh_type == SHT_DYNAMIC ||
91 shdr.sh_type == SHT_DYNSYM)
  /src/sys/arch/atari/stand/tostools/libtos/
elf.c 119 Elf32_Shdr shdr; local
122 if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr))
124 if ((shdr.sh_type == SHT_SYMTAB) || (shdr.sh_type == SHT_STRTAB))
125 symsize += shdr.sh_size;
  /src/libexec/ld.elf_so/arch/powerpc/
fixup.c 124 Elf_Shdr *shdr; local
134 shdr = mmap(NULL, shdr_size, PROT_READ, MAP_FILE | MAP_SHARED, fd,
136 if (shdr == MAP_FAILED) {
137 _rtld_error("%s: mmap of shdr failed: %s", path,
143 Elf_Addr start = shdr[i].sh_addr;
144 Elf_Addr end = shdr[i].sh_addr + shdr[i].sh_size - 1;
146 if (shdr[i].sh_type != SHT_PROGBITS) {
149 if ((shdr[i].sh_flags & SHF_EXECINSTR) == 0) {
160 shdr[i].sh_size, data_prot) != 0)
    [all...]
  /src/external/bsd/libpcap/dist/
pcap-util.c 192 struct sll_header *shdr = (struct sll_header *)buf; local
203 swap_socketcan_header(EXTRACT_BE_U_2(&shdr->sll_protocol),
217 struct sll2_header *shdr = (struct sll2_header *)buf; local
228 swap_socketcan_header(EXTRACT_BE_U_2(&shdr->sll2_protocol),
  /src/external/cddl/osnet/dist/tools/ctf/cvt/
util.c 72 GElf_Shdr shdr; local
80 if (gelf_getshdr(scn, &shdr) == NULL) {
87 (size_t)shdr.sh_name)) == NULL) {
output.c 346 GElf_Shdr shdr; local
361 gelf_getshdr(scn, &shdr);
362 nent = shdr.sh_size / shdr.sh_entsize;
364 scn = elf_getscn(elf, shdr.sh_link);
469 GElf_Shdr shdr; local
550 gelf_getshdr(sscn, &shdr);
567 pad = new_offset % shdr.sh_addralign;
570 new_offset += shdr.sh_addralign - pad;
571 shdr.sh_offset = new_offset
    [all...]
  /src/lib/libexecinfo/
symtab.c 124 GElf_Shdr shdr; local
129 gelf_getshdr(scn, &shdr);
130 if(shdr.sh_type != SHT_SYMTAB)
134 ns = shdr.sh_size / shdr.sh_entsize;
147 elf_strptr(elf, shdr.sh_link, sym.st_name),
162 elf_strptr(elf, shdr.sh_link, sym.st_name));
  /src/sys/arch/amd64/stand/prekern/
elf.c 38 Elf_Shdr *shdr; member in struct:elfinfo
64 elf_section_mappable(Elf_Shdr *shdr)
66 if (!(shdr->sh_flags & SHF_ALLOC)) {
69 if (shdr->sh_type != SHT_NOBITS &&
70 shdr->sh_type != SHT_PROGBITS) {
77 elf_can_drop_unmappable(Elf_Shdr *shdr)
80 * We found relocations from the section 'shdr' towards the rest of
81 * the binary, but 'shdr' is not mapped. Decide whether to skip the
91 if (shdr->sh_type == SHT_NOTE) {
130 if (eif.shdr[i].sh_name == 0)
277 Elf_Shdr *shdr; local
338 Elf_Shdr *shdr; local
    [all...]
  /src/sys/kern/
core_elf32.c 118 Elf_Shdr shdr; local
197 ehdr.e_phoff = sizeof(ehdr) + sizeof(shdr);
213 memset(&shdr, 0, sizeof(shdr));
214 shdr.sh_type = SHT_NULL;
215 shdr.sh_info = npsections;
217 &shdr, sizeof(shdr)), ENOSYS, error);
subr_kobj.c 157 Elf_Shdr *shdr; local
177 shdr = NULL;
236 error = ko->ko_read(ko, (void **)&shdr, ko->ko_shdrsz, hdr->e_shoff,
242 ko->ko_shdr = shdr;
250 switch (shdr[i].sh_type) {
258 symstrindex = shdr[i].sh_link;
261 if (shdr[shdr[i].sh_info].sh_type != SHT_PROGBITS)
266 if (shdr[shdr[i].sh_info].sh_type != SHT_PROGBITS
    [all...]
  /src/sys/lib/libsa/
loadfile_elf32.c 190 internalize_shdr(Elf_Byte bo, Elf_Shdr *shdr)
194 I32(shdr->sh_name);
195 I32(shdr->sh_type);
196 I32(shdr->sh_flags);
197 I32(shdr->sh_addr);
198 I32(shdr->sh_offset);
199 I32(shdr->sh_size);
200 I32(shdr->sh_link);
201 I32(shdr->sh_info);
202 I32(shdr->sh_addralign)
350 Elf_Shdr *shdr; local
    [all...]
  /src/crypto/external/apache2/openssl/dist/ssl/quic/
quic_sstream.c 168 OSSL_QUIC_FRAME_STREAM shdr; local
172 return ossl_quic_sstream_get_stream_frame(qss, 0, &shdr, iov, &num_iov);
quic_stream_map.c 242 OSSL_QUIC_FRAME_STREAM shdr; local
268 if (!ossl_quic_sstream_get_stream_frame(s->sstream, 0, &shdr, iov,
276 return (shdr.is_fin && shdr.len == 0) || shdr.offset < fc_limit;
  /src/external/bsd/libproc/dist/
proc_sym.c 325 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.sh_link
575 GElf_Shdr shdr; local
    [all...]
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
sym-file-loader.c 354 const Elf_External_Shdr *shdr; local
363 shdr = find_shdrtab (ehdr);
365 shstr = &shdr[GET (ehdr, e_shstrndx)];
379 const Elf_External_Shdr *shdr = find_shdrtab (ehdr); local
388 uint64_t name = GET (shdr + i, sh_name);
389 if (GET (shdr + i, sh_type) == SHT_STRTAB && name <= shstrtab_size
392 *strtab_size = GET (shdr + i, sh_size);
393 return ((const char *) ehdr) + GET (shdr + i, sh_offset);
414 Elf_External_Shdr *shdr = find_shdrtab (ehdr);
417 uint64_t name = GET (shdr + i, sh_name)
434 const Elf_External_Shdr *shdr = find_shdrtab (ehdr); local
    [all...]
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
sym-file-loader.c 354 const Elf_External_Shdr *shdr; local
363 shdr = find_shdrtab (ehdr);
365 shstr = &shdr[GET (ehdr, e_shstrndx)];
379 const Elf_External_Shdr *shdr = find_shdrtab (ehdr); local
388 uint64_t name = GET (shdr + i, sh_name);
389 if (GET (shdr + i, sh_type) == SHT_STRTAB && name <= shstrtab_size
392 *strtab_size = GET (shdr + i, sh_size);
393 return ((const char *) ehdr) + GET (shdr + i, sh_offset);
414 Elf_External_Shdr *shdr = find_shdrtab (ehdr);
417 uint64_t name = GET (shdr + i, sh_name)
434 const Elf_External_Shdr *shdr = find_shdrtab (ehdr); local
    [all...]
  /src/sys/arch/x68k/stand/aout2hux/
aout2hux.c 201 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) -
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/clk/
nouveau_nvkm_subdev_clk_base.c 57 u8 idx = 0, sver, shdr; local
64 shdr = hdr;
65 subd = nvbios_boostSp(bios, idx++, data, &sver, &shdr,
471 u8 sver = ver, shdr = hdr; local
473 &sver, &shdr, cnt, len, &perfS);
  /src/external/gpl3/binutils/usr.sbin/dbsym/
dbsym.c 341 /* Extract a 32 bit field from either size Shdr */
364 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);
  /src/external/gpl3/binutils.old/usr.sbin/dbsym/
dbsym.c 341 /* Extract a 32 bit field from either size Shdr */
364 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);
  /src/bin/ksh/
history.c 904 shdr, /* expecting a header */ enumerator in enum:state
915 State state = shdr;
921 case shdr:
935 lines++, state = shdr;
1038 for (state = shdr; bytes-- > 0; base++) {
1040 case shdr:
1072 state = shdr;
  /src/sys/dev/pci/
if_ipw.c 377 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->offset, sizeof(struct ipw_hdr), BUS_DMASYNC_POSTWRITE)
1353 struct ipw_soft_hdr *shdr; local
    [all...]
  /src/external/gpl3/binutils/dist/gprofng/src/
Elf.cc 357 Elf_Internal_Shdr *shdr = get_shdr (sec); local
358 if (shdr == NULL)
360 char *sname = elf_strptr (ehdrp->e_shstrndx, shdr->sh_name);
370 Elf_Internal_Shdr *shdr = get_shdr (sec); local
371 if (ehdrp == NULL || shdr == NULL)
373 return elf_strptr (ehdrp->e_shstrndx, shdr->sh_name);
415 Elf_Internal_Shdr *shdr = get_shdr (sec); local
416 if (shdr == NULL)
420 if ((shdr->sh_flags & SHF_SUNW_ABSENT) != 0)
447 sec_ptr sp = shdr->bfd_section
680 Elf_Internal_Shdr *shdr = get_shdr (sec); local
1150 Elf_Internal_Shdr *shdr = get_shdr (i); local
1181 Elf_Internal_Shdr *shdr = get_shdr (i); local
1222 Elf_Internal_Shdr *shdr = get_shdr (sec); local
    [all...]
  /src/external/gpl3/binutils.old/dist/gprofng/src/
Elf.cc 357 Elf_Internal_Shdr *shdr = get_shdr (sec); local
358 if (shdr == NULL)
360 char *sname = elf_strptr (ehdrp->e_shstrndx, shdr->sh_name);
370 Elf_Internal_Shdr *shdr = get_shdr (sec); local
371 if (ehdrp == NULL || shdr == NULL)
373 return elf_strptr (ehdrp->e_shstrndx, shdr->sh_name);
415 Elf_Internal_Shdr *shdr = get_shdr (sec); local
416 if (shdr == NULL)
420 if ((shdr->sh_flags & SHF_SUNW_ABSENT) != 0)
447 sec_ptr sp = shdr->bfd_section
680 Elf_Internal_Shdr *shdr = get_shdr (sec); local
1150 Elf_Internal_Shdr *shdr = get_shdr (i); local
1181 Elf_Internal_Shdr *shdr = get_shdr (i); local
1222 Elf_Internal_Shdr *shdr = get_shdr (sec); local
    [all...]

Completed in 30 milliseconds

1 2 3