Home
last modified time | relevance | path

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

123

/external/libunwind/src/
Delfxx.c142 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_offset); in elf_w()
144 if (shdr.sh_offset + shdr.sh_size > size) { in elf_w()
146 (unsigned long) (shdr.sh_offset + shdr.sh_size), in elf_w()
151 Debug (16, "strtab=0x%lx\n", (long) shdr.sh_offset); in elf_w()
152 *offset = shdr.sh_offset; in elf_w()
181 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_offset); in elf_w()
185 Debug (16, "symtab=0x%lx[%d]\n", (long) shdr.sh_offset, shdr.sh_type); in elf_w()
188 unw_word_t symtab_end = shdr.sh_offset + shdr.sh_size; in elf_w()
189 for (sym_offset = shdr.sh_offset; in elf_w()
298 if (str_shdr->sh_offset + str_shdr->sh_size > ei->u.mapped.size) { in elf_w()
[all …]
/external/valgrind/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.c311 ENDIAN_ASSIGN_IN_PLACE(hdr32->sh_offset); in parse_elf_section()
327 ENDIAN_ASSIGN_IN_PLACE(hdr64->sh_offset); in parse_elf_section()
350 return (char *)(elf->buf + shdr.sh_offset + idx); in parse_elf_string_table()
360 return (char *)(elf->buf + shdr.sh_offset + idx); in parse_elf_string_table()
410 strcpy(strtsb_name, (char *)(elf.buf + shdr.sh_offset + shdr.sh_name)); in parse_elf()
414 strtab_off32 = shdr.sh_offset; in parse_elf()
427 strcpy(strtsb_name, (char *)(elf.buf + shdr.sh_offset + shdr.sh_name)); in parse_elf()
431 strtab_off64 = shdr.sh_offset; in parse_elf()
445 for (ofst = shdr.sh_offset; in parse_elf()
446 ofst < shdr.sh_offset + shdr.sh_size; in parse_elf()
[all …]
/external/valgrind/VEX/switchback/
Dlinker.c400 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
412 ptr = ehdrC + shdr[i].sh_offset;
522 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset);
527 stab = (Elf_Sym*) (ehdrC + shdr[ symtab_shndx ].sh_offset);
528 targ = (Elf_Word*)(ehdrC + shdr[ target_shndx ].sh_offset);
555 (ehdrC + shdr[ sym.st_shndx ].sh_offset
648 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset);
653 stab = (Elf_Sym*) (ehdrC + shdr[ symtab_shndx ].sh_offset);
654 targ = (Elf_Addr) (ehdrC + shdr[ target_shndx ].sh_offset);
701 (ehdrC + shdr[ sym.st_shndx ].sh_offset
[all …]
/external/llvm/include/llvm/Object/
DELF.h368 (const char *)(base() + sec->sh_offset)); in begin_rela()
374 (const char *)(base() + sec->sh_offset + sec->sh_size)); in end_rela()
379 (const char *)(base() + sec->sh_offset)); in begin_rel()
384 (const char *)(base() + sec->sh_offset + sec->sh_size)); in end_rel()
439 const char *sec_start = (const char*)base() + sec->sh_offset; in LoadVersionDefs()
464 const char *sec_start = (const char *)base() + sec->sh_offset; in LoadVersionNeeds()
540 if (Sec->sh_offset + Sec->sh_size > Buf.size()) in getSectionContents()
542 const uint8_t *Start = base() + Sec->sh_offset; in getSectionContents()
597 const char *strtab = (const char *)base() + sh->sh_offset; in VerifyStrTab()
678 DynSymRegion.Addr = base() + Sec.sh_offset; in ELFFile()
[all …]
/external/elfutils/src/libdwfl/
Drelocate.c314 if (unlikely (shdr->sh_offset < ehsize in relocate_section()
315 || tshdr->sh_offset < ehsize)) in relocate_section()
325 if (unlikely ((shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
326 && shdr->sh_offset < shdrs_end) in relocate_section()
327 || (shdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
328 && tshdr->sh_offset < shdrs_end))) in relocate_section()
340 if (unlikely ((phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
341 && shdr->sh_offset < phdrs_end) in relocate_section()
342 || (phdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
343 && tshdr->sh_offset < phdrs_end))) in relocate_section()
/external/google-breakpad/src/common/linux/
Ddump_symbols.cc189 GetOffset<ElfClass, uint8_t>(elf_header, stab_section->sh_offset); in LoadStabs()
191 GetOffset<ElfClass, uint8_t>(elf_header, stabstr_section->sh_offset); in LoadStabs()
250 section_names->sh_offset) + in LoadDwarf()
253 section->sh_offset); in LoadDwarf()
340 GetOffset<ElfClass, char>(elf_header, section->sh_offset); in LoadDwarfCFI()
609 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); in LoadSymbols()
666 dynsym_section->sh_offset); in LoadSymbols()
669 dynstr_section->sh_offset); in LoadSymbols()
743 gnu_debuglink_section->sh_offset); in LoadSymbols()
Dsynth_elf_unittest.cc246 EXPECT_EQ(0U, shdr[0].sh_offset); in TYPED_TEST()
257 EXPECT_EQ(sizeof(Ehdr), shdr[1].sh_offset); in TYPED_TEST()
321 EXPECT_EQ(0U, shdr[0].sh_offset); in TYPED_TEST()
332 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr), shdr[1].sh_offset); in TYPED_TEST()
343 EXPECT_EQ(0U, shdr[2].sh_offset); in TYPED_TEST()
354 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096, shdr[3].sh_offset); in TYPED_TEST()
Delfutils.cc64 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); in FindElfClassSection()
73 *section_start = elf_base + section->sh_offset; in FindElfClassSection()
/external/elfutils/src/libelf/
Dgelf_update_shdr.c65 || unlikely (src->sh_offset > 0xffffffffull) in gelf_update_shdr()
80 COPY (sh_offset); in gelf_update_shdr()
Delf32_updatefile.c59 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
60 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
63 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
64 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
259 + scn->shdr.ELFW(e,LIBELFBITS)->sh_offset) in __elfw2()
292 + elf->start_offset + shdr->sh_offset); in __elfw2()
671 off_t scn_start = elf->start_offset + shdr->sh_offset; in __elfw2()
Delf32_getshdr.c134 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); in ElfW2()
180 CONVERT (shdr[cnt].sh_offset); in ElfW2()
Dgelf_getshdr.c76 COPY (sh_offset);
Delf_begin.c339 if (likely (elf->state.elf32.shdr[cnt].sh_offset < maxsize) in file_read_elf()
341 <= maxsize - elf->state.elf32.shdr[cnt].sh_offset)) in file_read_elf()
345 + elf->state.elf32.shdr[cnt].sh_offset); in file_read_elf()
430 if (likely (elf->state.elf64.shdr[cnt].sh_offset < maxsize) in file_read_elf()
432 <= maxsize - elf->state.elf64.shdr[cnt].sh_offset)) in file_read_elf()
436 + elf->state.elf64.shdr[cnt].sh_offset); in file_read_elf()
Delf32_offscn.c76 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset)
/external/linux-tools-perf/src/tools/perf/util/
Dsymbol-elf.c253 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols()
831 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym()
849 map->pgoff = shdr.sh_offset; in dso__load_sym()
864 map->pgoff = shdr.sh_offset; in dso__load_sym()
883 start += map->start + shdr.sh_offset; in dso__load_sym()
902 curr_map->pgoff = shdr.sh_offset; in dso__load_sym()
922 (u64)shdr.sh_offset); in dso__load_sym()
923 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym()
/external/libunwind/src/ia64/
DGfind_unwind_table.c77 strtab = (char *) edi->ei.image + str_shdr->sh_offset; in find_gp()
83 gp = ((Elf64_Addr *) ((char *) edi->ei.image + shdr->sh_offset))[1]; in find_gp()
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp278 writeArrayData(CBA.getOSAndAlignedOffset(SHeader.sh_offset), in initSymtabSectionHeader()
290 CBA.getOSAndAlignedOffset(SHeader.sh_offset) << STB.data(); in initStrtabSectionHeader()
328 raw_ostream &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset); in writeSectionContent()
357 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset); in writeSectionContent()
398 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset); in writeSectionContent()
/external/elfutils/src/tests/
Dasm-tst2.c221 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
223 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
Dasm-tst9.c255 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
257 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
Dtest-elf_cntl_gelf_getshdr.c98 printf ("Section at offset %#0" PRIx64 "\n", shdr->sh_offset); in main()
/external/google-breakpad/src/common/solaris/
Ddump_symbols.cc403 reinterpret_cast<char *>(stabstr_section->sh_offset + base); in LoadAllSymbols()
405 reinterpret_cast<struct slist *>(stab_section->sh_offset + base); in LoadAllSymbols()
465 Elf_Sym *symbol = (Elf_Sym *)((char *)base + symtab_section.sh_offset); in LoadSymbols()
470 strtab_section.sh_offset + (GElf_Word)base + symbol->st_name); in LoadSymbols()
/external/libunwind/src/dwarf/
DGfind_proc_info-lsb.c129 fseek (f, sec_hdrs[shstrndx].sh_offset, SEEK_SET); in load_debug_frame()
142 fseek (f, sec_hdrs[i].sh_offset, SEEK_SET); in load_debug_frame()
147 *bufsize, (long) sec_hdrs[i].sh_offset); in load_debug_frame()
154 fseek (f, sec_hdrs[i].sh_offset, SEEK_SET); in load_debug_frame()
159 linksize, (long) sec_hdrs[i].sh_offset); in load_debug_frame()
/external/kernel-headers/original/uapi/linux/
Delf.h304 Elf32_Off sh_offset; member
317 Elf64_Off sh_offset; /* Section file offset */ member
/external/elfutils/src/src/
Dstrip.c630 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
1056 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
1112 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
1352 if (shdr_info[cnt].shdr.sh_offset == 0) in handle_elf()
1353 shdr_info[cnt].shdr.sh_offset in handle_elf()
1365 if (lastoffset < shdr_info[cnt].shdr.sh_offset + filesz) in handle_elf()
1366 lastoffset = shdr_info[cnt].shdr.sh_offset + filesz; in handle_elf()
1938 newehdr->e_shoff = ((shdr_info[shdridx].shdr.sh_offset in handle_elf()
2007 || ftruncate64 (fd, shdr_info[shdridx].shdr.sh_offset) < 0) in handle_elf()
2027 || ftruncate64 (fd, shdr_info[shdridx].shdr.sh_offset) < 0) in handle_elf()

123