/external/valgrind/main/VEX/switchback/ |
linker.c | 399 Elf_Shdr* shdr = (Elf_Shdr*)(ehdrC + ehdr->e_shoff); 400 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset; 405 if (shdr[i].sh_type == sh_type 410 && 0 != memcmp(".stabstr", sh_strtab + shdr[i].sh_name, 8) 412 ptr = ehdrC + shdr[i].sh_offset; 516 Elf_Shdr* shdr, int shnum, 522 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset); 523 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); 524 int target_shndx = shdr[shnum].sh_info; 525 int symtab_shndx = shdr[shnum].sh_link [all...] |
/external/elfutils/0.153/libelf/ |
elf32_offscn.c | 85 && unlikely (runp->data[0].shdr.ELFW(e,LIBELFBITS) == NULL) 97 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset) 104 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_size != 0)
|
elf_strptr.c | 112 if (unlikely (strscn->shdr.e32->sh_type != SHT_STRTAB)) 119 if (unlikely (offset >= strscn->shdr.e32->sh_size)) 128 if (unlikely (strscn->shdr.e64->sh_type != SHT_STRTAB)) 135 if (unlikely (offset >= strscn->shdr.e64->sh_size))
|
elf32_updatefile.c | 80 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset 81 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) 84 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset 85 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) 88 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size 89 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) 92 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size 93 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) 238 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) 251 && scn->shdr.ELFW(e,LIBELFBITS) != &shdr_dest[scn->index] [all...] |
elf_getphdrnum.c | 88 ? scns->data[0].shdr.e32->sh_info 89 : scns->data[0].shdr.e64->sh_info);
|
elf_getdata.c | 202 Elf32_Shdr *shdr local 203 = scn->shdr.e32 ?: __elf32_getshdr_wrlock (scn); 205 if (shdr == NULL) 209 offset = shdr->sh_offset; 210 size = shdr->sh_size; 211 type = shdr->sh_type; 212 align = shdr->sh_addralign; 216 Elf64_Shdr *shdr local 217 = scn->shdr.e64 ?: __elf64_getshdr_wrlock (scn); 219 if (shdr == NULL [all...] |
/external/valgrind/main/VEX/unused/ |
linker.c | 331 Elf_Shdr* shdr = (Elf_Shdr*)(ehdrC + ehdr->e_shoff); local 332 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset; 337 if (shdr[i].sh_type == sh_type 342 && 0 != memcmp(".stabstr", sh_strtab + shdr[i].sh_name, 8) 344 ptr = ehdrC + shdr[i].sh_offset; 420 Elf_Shdr* shdr, int shnum, 426 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset); 427 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); 428 int target_shndx = shdr[shnum].sh_info; 429 int symtab_shndx = shdr[shnum].sh_link 715 Elf_Shdr* shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff); local 769 Elf_Shdr* shdr; local 959 Elf_Shdr* shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff); local [all...] |
/external/elfutils/0.153/backends/ |
ppc_symbol.c | 92 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 94 if (shdr != NULL && shdr->sh_type == SHT_DYNAMIC && data != NULL) 95 for (unsigned int j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j)
|
sparc_symbol.c | 73 const GElf_Shdr *shdr, 76 if ((shdr->sh_flags & (SHF_WRITE | SHF_EXECINSTR)) 100 return dyn.d_un.d_ptr == shdr->sh_addr;
|
/external/elfutils/0.153/libasm/ |
disasm_cb.c | 81 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 83 if (shdr == NULL || shdr->sh_type != SHT_SYMTAB 93 int nsyms = shdr->sh_size / shdr->sh_entsize;
|
asm_newscn.c | 108 GElf_Shdr *shdr; local 146 shdr = gelf_getshdr (scn, &shdr_mem); 148 shdr->sh_flags = flags; 149 result->type = shdr->sh_type = type; 151 (void) gelf_update_shdr (scn, shdr);
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
symbol-elf.c | 88 static inline const char *elf_sec__name(const GElf_Shdr *shdr, 91 return secstrs->d_buf + shdr->sh_name; 94 static inline int elf_sec__is_text(const GElf_Shdr *shdr, 97 return strstr(elf_sec__name(shdr, secstrs), "text") != NULL; 100 static inline bool elf_sec__is_data(const GElf_Shdr *shdr, 103 return strstr(elf_sec__name(shdr, secstrs), "data") != NULL; 106 static bool elf_sec__is_a(GElf_Shdr *shdr, Elf_Data *secstrs, 111 return elf_sec__is_text(shdr, secstrs); 113 return elf_sec__is_data(shdr, secstrs); 122 GElf_Shdr shdr; local 320 GElf_Shdr shdr; local 473 GElf_Shdr shdr; local 616 GElf_Shdr shdr; local 688 GElf_Shdr shdr; local [all...] |
/external/libunwind/src/ia64/ |
Gfind_unwind_table.c | 40 Elf64_Shdr *shdr; local 75 shdr = (Elf64_Shdr *) ((char *) edi->ei.image + soff); 80 if (strcmp (strtab + shdr->sh_name, ".opd") == 0 81 && shdr->sh_size >= 16) 83 gp = ((Elf64_Addr *) ((char *) edi->ei.image + shdr->sh_offset))[1]; 86 shdr = (Elf64_Shdr *) (((char *) shdr) + ehdr->e_shentsize);
|
/external/elfutils/0.153/src/ |
ldgeneric.c | 537 assert (SCNINFO_SHDR (fileinfo->scninfo[newgrpid].shdr).sh_type 539 assert (SCNINFO_SHDR (oldp->file->scninfo[oldgrpid].shdr).sh_type 666 SCNINFO_SHDR (fileinfo->scninfo[shndx].shdr).sh_name); 691 SCNINFO_SHDR (oldfile->scninfo[shndx].shdr).sh_name); 842 SCNINFO_SHDR (fileinfo->scninfo[shndx].shdr).sh_name)); 880 XElf_Shdr *shdr = &SCNINFO_SHDR (fileinfo->scninfo[idx].shdr); local 886 elf_strptr (fileinfo->elf, fileinfo->shstrndx, shdr->sh_name)); 892 shdr->sh_name)) 894 && ((shdr->sh_type != SHT_RELA && shdr->sh_type != SHT_REL 920 XElf_Shdr *shdr = &SCNINFO_SHDR (scninfo->shdr); local 970 XElf_Shdr *shdr = &SCNINFO_SHDR (scninfo->shdr); local 1137 XElf_Shdr *shdr; local 3425 xelf_getshdr (elf_getscn (ld_state.outelf, 1), shdr); local 4163 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 6612 ld_state.interpscnidx), shdr); local 6735 shdr); local 6743 shdr); local 6753 shdr); local 6766 ld_state.gotpltscnidx), shdr); local 6774 ld_state.pltrelscnidx), shdr); local 6790 ld_state.reldynscnidx), shdr); local 6816 ld_state.verneedscnidx), shdr); local 6828 ld_state.versymscnidx), shdr); local [all...] |
readelf.c | 230 GElf_Shdr *shdr); 232 GElf_Shdr *shdr); 234 static void handle_symtab (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr); 236 static void handle_verneed (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr); 237 static void handle_verdef (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr); 239 GElf_Shdr *shdr); 814 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local 815 if (shdr != NULL) 817 (uint32_t) shdr->sh_info); 831 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem) local 843 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); local 917 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1070 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1237 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1498 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1518 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 1907 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 2160 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 2870 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 2904 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 2966 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 7314 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 8218 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local [all...] |
i386_ld.c | 88 XElf_Shdr *shdr = &SCNINFO_SHDR (runp->shdr); local 97 reltgtdata = elf_getdata (file->scninfo[shdr->sh_info].scn, NULL); 101 insymdata = elf_getdata (file->scninfo[shdr->sh_link].scn, NULL); 108 maxcnt = shdr->sh_size / shdr->sh_entsize; 176 rel->r_offset += file->scninfo[shdr->sh_info].offset; 200 XElf_Shdr_vardef (shdr); 203 xelf_getshdr (scn, shdr); 204 assert (shdr != NULL) 538 XElf_Shdr *shdr = &SCNINFO_SHDR (scninfo->shdr); local 724 Elf32_Shdr *shdr = elf32_getshdr (pltscn); local [all...] |
size.c | 432 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 434 if (shdr == NULL) 438 if ((shdr->sh_flags & SHF_ALLOC) != 0) 441 shdr->sh_name))); 465 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 468 if ((shdr->sh_flags & SHF_ALLOC) != 0) 471 maxlen, elf_strptr (elf, shstrndx, shdr->sh_name), 472 digits - 2, shdr->sh_size, 473 digits, shdr->sh_addr); 475 total += shdr->sh_size 516 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 563 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local [all...] |
/external/elfutils/0.153/libdwfl/ |
dwfl_module_getsym.c | 84 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (mod->symfile->elf, shndx), local 86 alloc = unlikely (shdr == NULL) || (shdr->sh_flags & SHF_ALLOC);
|
dwfl_module_addrsym.c | 80 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 81 if (likely (shdr != NULL) 82 && mod_addr >= shdr->sh_addr 83 && mod_addr < shdr->sh_addr + shdr->sh_size)
|
dwfl_module_build_id.c | 134 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 135 if (likely (shdr != NULL) && shdr->sh_type == SHT_NOTE) 139 if (!(shdr->sh_flags & SHF_ALLOC)) 142 vaddr = dwfl_adjusted_address (mod, shdr->sh_addr);
|
dwfl_module_getdwarf.c | 241 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 242 if (shdr == NULL) 245 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); 317 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 318 if (unlikely (shdr == NULL)) 320 if (shdr->sh_type == SHT_PROGBITS 321 && !(shdr->sh_flags & SHF_ALLOC) 322 && shdr->sh_name != 0) 325 shdr->sh_name); 467 } shdr; local 577 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); local [all...] |
relocate.c | 141 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); local 142 if (shdr != NULL) 143 switch (shdr->sh_type) 150 cache->strtabndx = shdr->sh_link; 298 Elf_Scn *scn, GElf_Shdr *shdr, 481 size_t nrels = shdr->sh_size / shdr->sh_entsize; 483 if (shdr->sh_type == SHT_REL) 556 if (shdr->sh_type == SHT_REL) 583 shdr->sh_size = reldata->d_size = nrels * shdr->sh_entsize 615 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local [all...] |
/external/qemu/include/hw/ |
elf_ops.h | 30 static void glue(bswap_shdr, SZ)(struct elf_shdr *shdr) 32 bswap32s(&shdr->sh_name); 33 bswap32s(&shdr->sh_type); 34 bswapSZs(&shdr->sh_flags); 35 bswapSZs(&shdr->sh_addr); 36 bswapSZs(&shdr->sh_offset); 37 bswapSZs(&shdr->sh_size); 38 bswap32s(&shdr->sh_link); 39 bswap32s(&shdr->sh_info); 40 bswapSZs(&shdr->sh_addralign) [all...] |
/external/chromium_org/media/filters/ |
h264_parser_unittest.cc | 31 media::H264SliceHeader shdr; local 49 ASSERT_EQ(parser.ParseSliceHeader(nalu, &shdr), H264Parser::kOk);
|
/external/elfutils/0.153/libdw/ |
dwarf_getcfi_elf.c | 231 Elf_Scn *scn, GElf_Shdr *shdr, 240 Dwarf_CFI *cfi = allocate_cfi (elf, shdr->sh_addr); 265 if (unlikely (eh_frame_vaddr != shdr->sh_addr)) 292 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local 293 if (shdr == NULL) 295 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); 301 hdr_vaddr = shdr->sh_addr; 304 return getcfi_scn_eh_frame (elf, ehdr, scn, shdr,
|