/external/chromium_org/courgette/ |
D | disassembler_elf_32.cc | 113 uint32 section_end = section_header->sh_offset + section_header->sh_size; in DiscoverLength() 196 Elf32_Off section_end = section_begin + section_header->sh_size; in FileOffsetToRVA() 275 file_offset = section_header->sh_offset + section_header->sh_size; in ParseFile() 283 file_offset = section_header->sh_offset + section_header->sh_size; in ParseFile() 293 (section_header->sh_offset + section_header->sh_size)) { in ParseFile() 304 (section_header->sh_offset + section_header->sh_size)) in ParseFile() 331 size_t section_end = section_header->sh_offset + section_header->sh_size; in ParseProgbitsSection() 434 int relocs_table_count = section_header->sh_size / in ParseAbs32Relocs() 469 offset < (section_header->sh_offset + section_header->sh_size)) { in CheckSection()
|
D | disassembler_elf_32_x86.cc | 86 size_t section_end = section_header->sh_offset + section_header->sh_size; in ParseRelocationSection() 91 uint32 section_relocs_count = section_header->sh_size / in ParseRelocationSection() 121 uint32 end_file_offset = start_file_offset + section_header->sh_size; in ParseRel32RelocsFromSection()
|
D | disassembler_elf_32_arm.cc | 319 size_t section_end = section_header->sh_offset + section_header->sh_size; in ParseRelocationSection() 324 uint32 section_relocs_count = section_header->sh_size / in ParseRelocationSection() 369 uint32 end_file_offset = start_file_offset + section_header->sh_size; in ParseRel32RelocsFromSection()
|
/external/elfutils/0.153/src/ |
D | unstrip.c | 386 newshdr->sh_size = data->d_size; in update_sh_size() 408 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs() 419 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs() 445 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs() 446 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs() 447 assert (data->d_size == shdr->sh_size); in adjust_relocs() 499 const size_t nent = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs() 500 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs() 560 const size_t nsym = shdr->sh_size / shdr->sh_entsize; in add_new_section_symbols() 564 shdr->sh_size += added * shdr->sh_entsize; in add_new_section_symbols() [all …]
|
D | elflint.c | 448 if (shdr->sh_size == 0) in check_elf_header() 452 shnum = shdr->sh_size; in check_elf_header() 673 for (size_t cnt = 1; cnt < shdr->sh_size / shdr->sh_entsize; ++cnt) in check_symtab() 686 else if (sym->st_name >= strshdr->sh_size) in check_symtab() 773 if (sym->st_value - sh_addr > destshdr->sh_size) in check_symtab() 791 + sym->st_size) > destshdr->sh_size) in check_symtab() 810 if (sym->st_value > destshdr->sh_size) in check_symtab() 816 > destshdr->sh_size) in check_symtab() 852 + destshdr->sh_size)) in check_symtab() 859 + destshdr->sh_size)) in check_symtab() [all …]
|
D | size.c | 472 digits - 2, shdr->sh_size, in show_sysv() 475 total += shdr->sh_size; in show_sysv() 526 printf (fmtstr, shdr->sh_size, in show_sysv_one_line() 529 total += shdr->sh_size; in show_sysv_one_line() 573 textsize += shdr->sh_size; in show_bsd() 575 bsssize += shdr->sh_size; in show_bsd() 577 datasize += shdr->sh_size; in show_bsd()
|
D | findtextrel.c | 291 for (size_t cnt = 0; cnt < shdr->sh_size / shdr->sh_entsize; in process_file() 436 (size_t) cnt < shdr->sh_size / shdr->sh_entsize; in process_file() 459 (size_t) cnt < shdr->sh_size / shdr->sh_entsize; in process_file() 552 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; in check_rel()
|
D | elfcmp.c | 289 newp->to = shdr1->sh_offset + shdr1->sh_size; in main() 317 || shdr1->sh_size != shdr2->sh_size in main() 346 for (int ndx = 0; ndx < (int) (shdr1->sh_size / shdr1->sh_entsize); in main() 771 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc() 785 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc()
|
/external/libunwind/src/ |
D | elfxx.c | 74 if (str_shdr->sh_offset + str_shdr->sh_size > ei->size) in elf_w() 77 (unsigned long) (str_shdr->sh_offset + str_shdr->sh_size), in elf_w() 116 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size); in elf_w() 244 if (shdr->sh_offset + shdr->sh_size > ei->size) in elf_w() 247 (unsigned long) shdr->sh_offset + shdr->sh_size, in elf_w() 255 compressed_len = shdr->sh_size; in elf_w()
|
/external/llvm/include/llvm/Object/ |
D | ELF.h | 374 (const char *)(base() + sec->sh_offset + sec->sh_size)); in end_rela() 384 (const char *)(base() + sec->sh_offset + sec->sh_size)); in end_rel() 437 unsigned vd_size = sec->sh_size; // Size of section in bytes in LoadVersionDefs() 462 unsigned vn_size = sec->sh_size; // Size of section in bytes in LoadVersionNeeds() 540 if (Sec->sh_offset + Sec->sh_size > Buf.size()) in getSectionContents() 543 return ArrayRef<uint8_t>(Start, Sec->sh_size); in getSectionContents() 598 if (strtab[sh->sh_size - 1] != 0) in VerifyStrTab() 608 return SectionHeaderTable->sh_size; in getNumSections() 679 DynSymRegion.Size = Sec.sh_size; in ELFFile() 683 DynStrRegion.Size = DynStr->sh_size; in ELFFile() [all …]
|
D | ELFTypes.h | 117 Elf_Word sh_size; // Size of section, in bytes 132 Elf_Xword sh_size; // Size of section, in bytes 142 using Elf_Shdr_Base<ELFT>::sh_size; 148 return sh_size / sh_entsize;
|
/external/elfutils/0.153/libdwfl/ |
D | dwfl_report_elf.c | 136 end = prev_shdr->sh_addr + prev_shdr->sh_size; in __libdwfl_report_elf() 147 end = shdr->sh_addr + shdr->sh_size; in __libdwfl_report_elf() 155 if (first || end < shdr->sh_addr + shdr->sh_size) in __libdwfl_report_elf() 156 end = shdr->sh_addr + shdr->sh_size; in __libdwfl_report_elf()
|
D | derelocate.c | 141 newref->end = newref->start + shdr->sh_size; in cache_sections() 148 && shdr->sh_size != 0 in cache_sections() 208 if (shdr->sh_size != 0 in cache_sections()
|
D | dwfl_module_getdwarf.c | 496 GElf_Xword sh_size) in find_prelink_address_sync() 502 const GElf_Addr sh_end = sh_addr + sh_size; in find_prelink_address_sync() 517 sh->sh_addr, sh->sh_size); in find_prelink_address_sync() 527 shdr.s32[i].sh_addr, shdr.s32[i].sh_size); in find_prelink_address_sync() 531 shdr.s64[i].sh_addr, shdr.s64[i].sh_size); in find_prelink_address_sync() 586 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab() 599 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab()
|
/external/elfutils/0.153/libelf/ |
D | gelf_update_shdr.c | 87 || unlikely (src->sh_size > 0xffffffffull) in gelf_update_shdr() 102 COPY (sh_size); in gelf_update_shdr()
|
D | elf32_updatenull.c | 203 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2() 313 > shdr->sh_size)) in __elfw2() 344 ? shdr->sh_size : 0)); in __elfw2() 379 update_if_changed (shdr->sh_size, (GElf_Word) offset, in __elfw2() 391 && unlikely (shdr->sh_size % shdr->sh_entsize != 0) in __elfw2()
|
D | elf_strptr.c | 119 if (unlikely (offset >= strscn->shdr.e32->sh_size)) 135 if (unlikely (offset >= strscn->shdr.e64->sh_size))
|
D | elf32_updatefile.c | 88 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections() 89 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections() 92 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections() 93 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections() 339 assert ((GElf_Off) dl->data.d.d_off <= shdr->sh_size); in __elfw2() 340 assert (dl->data.d.d_size <= (shdr->sh_size in __elfw2() 404 last_position = scn_start + shdr->sh_size; in __elfw2() 778 last_offset = scn_start + shdr->sh_size; in __elfw2()
|
D | elf32_getshdr.c | 142 CONVERT_TO (shdr[cnt].sh_size, notcvt[cnt].sh_size); in ElfW2() 188 CONVERT (shdr[cnt].sh_size); in ElfW2()
|
D | elf_begin.c | 178 + offset))->sh_size; in get_shnum() 188 + offset))->sh_size, in get_shnum() 193 + offsetof (Elf32_Shdr, sh_size)) in get_shnum() 227 + offset))->sh_size; in get_shnum() 235 + offset))->sh_size, in get_shnum() 240 + offsetof (Elf64_Shdr, sh_size)) in get_shnum() 341 <= elf->state.elf32.shdr[cnt].sh_size)) in file_read_elf() 427 <= elf->state.elf64.shdr[cnt].sh_size)) in file_read_elf()
|
/external/ltrace/ |
D | ltrace-elf.c | 120 || data->d_off || data->d_size != shdr->sh_size) in elf_loaddata() 156 && addr < shdr->sh_addr + shdr->sh_size; in inside_p() 435 *countp = shdr->sh_size / shdr->sh_entsize; in read_symbol_table() 455 || shdr2.sh_size != data->d_size || data->d_off) { in read_symbol_table() 509 if ((shdr->sh_size % shdr->sh_entsize) != 0) { in elf_read_relocs() 512 shdr->sh_size, shdr->sh_entsize); in elf_read_relocs() 516 GElf_Xword relplt_count = shdr->sh_size / shdr->sh_entsize; in elf_read_relocs() 555 for (j = 0; j < shdr.sh_size / shdr.sh_entsize; ++j) { in elf_load_dynamic_entry() 614 lte->dyn_sz = shdr.sh_size; in ltelf_read_elf() 624 for (j = 0; j < shdr.sh_size / shdr.sh_entsize; ++j) { in ltelf_read_elf() [all …]
|
/external/valgrind/main/VEX/switchback/ |
D | linker.c | 523 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); 649 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela); 1008 if (debug_linker>1) fprintf(stderr, "size=%4d ", (int)shdr[i].sh_size ); 1012 ehdrC + shdr[i].sh_offset + shdr[i].sh_size - 1); 1056 nent = shdr[i].sh_size / sizeof(Elf_Sym); 1060 (Long)(shdr[i].sh_size % sizeof(Elf_Sym)) 1062 if (0 != shdr[i].sh_size % sizeof(Elf_Sym)) { 1168 if (is_bss && shdr[i].sh_size > 0) { 1172 char* zspace = calloc(1, shdr[i].sh_size); 1176 zspace, (Long)shdr[i].sh_size); [all …]
|
/external/valgrind/main/VEX/unused/ |
D | linker.c | 427 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); in do_Elf_Rel_relocations() 553 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela); in do_Elf_Rela_relocations() 845 if (debug_linker>1) fprintf(stderr, "size=%4d ", (int)shdr[i].sh_size ); in ocVerifyImage_ELF() 849 ehdrC + shdr[i].sh_offset + shdr[i].sh_size - 1); in ocVerifyImage_ELF() 893 nent = shdr[i].sh_size / sizeof(Elf_Sym); in ocVerifyImage_ELF() 897 shdr[i].sh_size % sizeof(Elf_Sym) in ocVerifyImage_ELF() 899 if (0 != shdr[i].sh_size % sizeof(Elf_Sym)) { in ocVerifyImage_ELF() 1005 if (is_bss && shdr[i].sh_size > 0) { in ocGetNames_ELF() 1009 char* zspace = calloc(1, shdr[i].sh_size); in ocGetNames_ELF() 1032 if (kind != SECTIONKIND_OTHER && shdr[i].sh_size > 0) { in ocGetNames_ELF() [all …]
|
/external/qemu/include/hw/ |
D | elf_ops.h | 37 bswapSZs(&shdr->sh_size); in glue() 123 syms = load_at(fd, symtab->sh_offset, symtab->sh_size); in glue() 127 nsyms = symtab->sh_size / sizeof(struct elf_sym); in glue() 159 str = load_at(fd, strtab->sh_offset, strtab->sh_size); in glue()
|
/external/chromium_org/tools/relocation_packer/src/ |
D | elf_file.cc | 125 VLOG(1) << " sh_size = " << section_header->sh_size; in VerboseLogSectionHeader() 228 section_header->sh_size > 0) { in Load() 232 section_header->sh_size > 0) { in Load() 677 last_section_header->sh_offset + last_section_header->sh_size; in CoalesceProgramHeadersForHole() 679 last_section_header->sh_offset + last_section_header->sh_size; in CoalesceProgramHeadersForHole() 809 if (section_header->sh_size == new_size) in ResizeSection() 823 CHECK(data->d_off == 0 && data->d_size == section_header->sh_size); in ResizeSection() 837 section_header->sh_size += hole_size; in ResizeSection() 1117 dyn.d_un.d_val = section_header->sh_size; in PackTypedRelocations()
|