Home
last modified time | relevance | path

Searched refs:sh_offset (Results 1 – 25 of 49) sorted by relevance

12

/external/chromium_org/courgette/
Ddisassembler_elf_32.cc113 uint32 section_end = section_header->sh_offset + section_header->sh_size; in DiscoverLength()
195 Elf32_Off section_begin = section_header->sh_offset; in FileOffsetToRVA()
266 section_header->sh_offset, in ParseFile()
269 file_offset = section_header->sh_offset; in ParseFile()
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()
291 *current_abs_offset >= section_header->sh_offset && in ParseFile()
293 (section_header->sh_offset + section_header->sh_size)) { in ParseFile()
302 *current_abs_offset >= section_header->sh_offset && in ParseFile()
304 (section_header->sh_offset + section_header->sh_size)) in ParseFile()
[all …]
Ddisassembler_elf_32_x86.cc85 size_t file_offset = section_header->sh_offset; in ParseRelocationSection()
86 size_t section_end = section_header->sh_offset + section_header->sh_size; in ParseRelocationSection()
89 (Elf32_Rel *)OffsetToPointer(section_header->sh_offset); in ParseRelocationSection()
120 uint32 start_file_offset = section_header->sh_offset; in ParseRel32RelocsFromSection()
Ddisassembler_elf_32_arm.cc320 size_t file_offset = section_header->sh_offset; in ParseRelocationSection()
321 size_t section_end = section_header->sh_offset + section_header->sh_size; in ParseRelocationSection()
324 (Elf32_Rel *)OffsetToPointer(section_header->sh_offset); in ParseRelocationSection()
370 uint32 start_file_offset = section_header->sh_offset; in ParseRel32RelocsFromSection()
Dtypes_elf.h64 Elf32_Off sh_offset; member
/external/valgrind/main/VEX/unused/
Dlinker.c332 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset; in findElfSection()
344 ptr = ehdrC + shdr[i].sh_offset; in findElfSection()
426 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset); in do_Elf_Rel_relocations()
431 stab = (Elf_Sym*) (ehdrC + shdr[ symtab_shndx ].sh_offset); in do_Elf_Rel_relocations()
432 targ = (Elf_Word*)(ehdrC + shdr[ target_shndx ].sh_offset); in do_Elf_Rel_relocations()
459 (ehdrC + shdr[ sym.st_shndx ].sh_offset in do_Elf_Rel_relocations()
552 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset); in do_Elf_Rela_relocations()
557 stab = (Elf_Sym*) (ehdrC + shdr[ symtab_shndx ].sh_offset); in do_Elf_Rela_relocations()
558 targ = (Elf_Addr) (ehdrC + shdr[ target_shndx ].sh_offset); in do_Elf_Rela_relocations()
594 (ehdrC + shdr[ sym.st_shndx ].sh_offset in do_Elf_Rela_relocations()
[all …]
/external/libvpx/libvpx/build/make/
Dobj_int_extract.c295 ENDIAN_ASSIGN_IN_PLACE(hdr32->sh_offset); in parse_elf_section()
311 ENDIAN_ASSIGN_IN_PLACE(hdr64->sh_offset); in parse_elf_section()
334 return (char *)(elf->buf + shdr.sh_offset + idx); in parse_elf_string_table()
344 return (char *)(elf->buf + shdr.sh_offset + idx); in parse_elf_string_table()
394 strcpy(strtsb_name, (char *)(elf.buf + shdr.sh_offset + shdr.sh_name)); in parse_elf()
398 strtab_off32 = shdr.sh_offset; in parse_elf()
411 strcpy(strtsb_name, (char *)(elf.buf + shdr.sh_offset + shdr.sh_name)); in parse_elf()
415 strtab_off64 = shdr.sh_offset; in parse_elf()
429 for (ofst = shdr.sh_offset; in parse_elf()
430 ofst < shdr.sh_offset + shdr.sh_size; in parse_elf()
[all …]
/external/valgrind/main/VEX/switchback/
Dlinker.c398 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
410 ptr = ehdrC + shdr[i].sh_offset;
520 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset);
525 stab = (Elf_Sym*) (ehdrC + shdr[ symtab_shndx ].sh_offset);
526 targ = (Elf_Word*)(ehdrC + shdr[ target_shndx ].sh_offset);
553 (ehdrC + shdr[ sym.st_shndx ].sh_offset
646 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset);
651 stab = (Elf_Sym*) (ehdrC + shdr[ symtab_shndx ].sh_offset);
652 targ = (Elf_Addr) (ehdrC + shdr[ target_shndx ].sh_offset);
699 (ehdrC + shdr[ sym.st_shndx ].sh_offset
[all …]
/external/elfutils/libelf/
Dgelf_update_shdr.c86 || unlikely (src->sh_offset > 0xffffffffull) in gelf_update_shdr()
101 COPY (sh_offset); in gelf_update_shdr()
Delf32_updatefile.c80 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
81 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
84 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
85 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
266 + scn->shdr.ELFW(e,LIBELFBITS)->sh_offset) in __elfw2()
290 + elf->start_offset + shdr->sh_offset); in __elfw2()
622 off_t scn_start = elf->start_offset + shdr->sh_offset; in __elfw2()
Delf32_getshdr.c141 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); in ElfW2()
187 CONVERT (shdr[cnt].sh_offset); in ElfW2()
Dgelf_getshdr.c97 COPY (sh_offset);
Delf32_offscn.c97 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset)
Delf32_updatenull.c338 shdr->sh_offset in __elfw2()
362 update_if_changed (shdr->sh_offset, (GElf_Word) size, in __elfw2()
/external/chromium_org/base/third_party/symbolize/
Dsymbolize.cc188 GetSectionHeaderByType(const int fd, ElfW(Half) sh_num, const off_t sh_offset, in GetSectionHeaderByType() argument
197 sh_offset + i * sizeof(buf[0])); in GetSectionHeaderByType()
244 off_t name_offset = shstrtab.sh_offset + out->sh_name; in GetSectionHeaderByName()
274 off_t offset = symtab->sh_offset + i * symtab->sh_entsize; in FindSymbol()
300 strtab->sh_offset + symbol.st_name); in FindSymbol()
/external/elfutils/tests/
Dasm-tst2.c229 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
231 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
Dasm-tst9.c263 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
265 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
/external/qemu/
Delf_ops.h36 bswapSZs(&shdr->sh_offset); in glue()
123 syms = load_at(fd, symtab->sh_offset, symtab->sh_size); in glue()
159 str = load_at(fd, strtab->sh_offset, strtab->sh_size); in glue()
/external/llvm/include/llvm/Object/
DELF.h139 Elf_Off sh_offset; // File offset of section data, in bytes
154 Elf_Off sh_offset; // File offset of section data, in bytes
762 (const char *)base() + DynSymtab->sh_offset);
770 DynSymtab->sh_offset + DynSymtab->sh_size);
776 (const char *)(base() + sec->sh_offset));
781 (base() + sec->sh_offset + sec->sh_size));
786 (const char *)(base() + sec->sh_offset));
791 (base() + sec->sh_offset + sec->sh_size));
847 const char *sec_start = (const char*)base() + sec->sh_offset;
872 const char *sec_start = (const char*)base() + sec->sh_offset;
[all …]
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp143 STB.writeToStream(CBA.getOSAndAlignedOffset(SHeader.sh_offset)); in createStringTableSectionHeader()
237 writeVectorData(CBA.getOSAndAlignedOffset(SHeader.sh_offset), Syms); in handleSymtabSectionHeader()
322 Sec.Content.writeAsBinary(CBA.getOSAndAlignedOffset(SHeader.sh_offset)); in writeELF()
/external/elfutils/src/
Dreadelf.c895 ehdr->e_ident[EI_CLASS] == ELFCLASS32 ? 6 : 8, shdr->sh_offset, in print_shdr()
1015 : (shdr->sh_offset >= phdr->p_offset in print_phdr()
1016 && (shdr->sh_offset + shdr->sh_size in print_phdr()
1305 shdr->sh_offset, in handle_dynamic()
1480 shdr->sh_offset); in handle_relocs_rel()
1506 shdr->sh_offset, in handle_relocs_rel()
1519 shdr->sh_offset, in handle_relocs_rel()
1625 shdr->sh_offset); in handle_relocs_rela()
1650 shdr->sh_offset, in handle_relocs_rela()
2072 shdr->sh_offset, in handle_verneed()
[all …]
Delfcmp.c234 newp->from = shdr1->sh_offset; in main()
235 newp->to = shdr1->sh_offset + shdr1->sh_size; in main()
262 || (shdr1->sh_offset != shdr2->sh_offset in main()
Dstrip.c596 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
986 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
1041 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
1273 if (shdr_info[cnt].shdr.sh_offset == 0) in handle_elf()
1274 shdr_info[cnt].shdr.sh_offset in handle_elf()
1286 if (lastoffset < shdr_info[cnt].shdr.sh_offset + filesz) in handle_elf()
1287 lastoffset = shdr_info[cnt].shdr.sh_offset + filesz; in handle_elf()
1642 newehdr->e_shoff = ((shdr_info[shdridx].shdr.sh_offset in handle_elf()
/external/qemu/elff/
Delff_elf.h221 Elf_Off sh_offset; member
/external/icu4c/tools/toolutil/
Dpkg_genc.c1058 paddingSize=sectionHeaders32[4].sh_offset & 0xf; in writeObjectCode()
1061 sectionHeaders32[4].sh_offset+=paddingSize; in writeObjectCode()
1078 paddingSize=sectionHeaders64[4].sh_offset & 0xf; in writeObjectCode()
1081 sectionHeaders64[4].sh_offset+=paddingSize; in writeObjectCode()
/external/chromium_org/third_party/icu/source/tools/toolutil/
Dpkg_genc.c1056 paddingSize=sectionHeaders32[4].sh_offset & 0xf; in writeObjectCode()
1059 sectionHeaders32[4].sh_offset+=paddingSize; in writeObjectCode()
1076 paddingSize=sectionHeaders64[4].sh_offset & 0xf; in writeObjectCode()
1079 sectionHeaders64[4].sh_offset+=paddingSize; in writeObjectCode()

12