Home
last modified time | relevance | path

Searched refs:e_shoff (Results 1 – 25 of 86) sorted by relevance

1234

/external/elfutils/libelf/
Delf_begin.c117 ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff; in get_shnum()
125 CONVERT (ehdr_mem.e32.e_shoff); in get_shnum()
133 ehdr_mem.e64.e_shoff = ((Elf64_Ehdr *) e_ident)->e_shoff; in get_shnum()
141 CONVERT (ehdr_mem.e64.e_shoff); in get_shnum()
151 if (unlikely (result == 0) && ehdr.e32->e_shoff != 0) in get_shnum()
153 if (unlikely (ehdr.e32->e_shoff >= maxsize) in get_shnum()
154 || unlikely (maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr))) in get_shnum()
160 || (((size_t) ((char *) map_address + ehdr.e32->e_shoff)) in get_shnum()
163 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff in get_shnum()
174 + ehdr.e32->e_shoff in get_shnum()
[all …]
Delf32_getshdr.c83 if (unlikely (ehdr->e_shoff >= elf->maximum_size) in ElfW2()
84 || unlikely (elf->maximum_size - ehdr->e_shoff < size)) in ElfW2()
98 + elf->start_offset + ehdr->e_shoff); in ElfW2()
124 + elf->start_offset + ehdr->e_shoff); in ElfW2()
134 + elf->start_offset + ehdr->e_shoff), in ElfW2()
176 elf->start_offset + ehdr->e_shoff); in ElfW2()
Dgelf_update_ehdr.c71 || unlikely (src->e_shoff > 0xffffffffull)) in gelf_update_ehdr()
86 COPY (e_shoff); in gelf_update_ehdr()
Delf_getshdrstrndx.c107 offset = elf->state.elf32.ehdr->e_shoff; in elf_getshdrstrndx()
172 size_t offset = elf->state.elf64.ehdr->e_shoff; in elf_getshdrstrndx()
Dgelf_getehdr.c79 COPY (e_shoff); in __gelf_getehdr_rdlock()
Delf32_updatefile.c228 + ehdr->e_shoff); in __elfw2()
437 + ehdr->e_shoff)) in __elfw2()
439 (char *) elf->map_address + elf->start_offset + ehdr->e_shoff in __elfw2()
482 + elf->start_offset + ehdr->e_shoff in __elfw2()
667 int64_t shdr_offset = elf->start_offset + ehdr->e_shoff; in __elfw2()
Delf32_updatenull.c438 (ehdr->e_shoff in __elfw2()
451 update_if_changed (ehdr->e_shoff, size, elf->flags); in __elfw2()
/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
Dinvalid-e_shoff.test1 ## If the e_shoff field is set to a value either past the end of the file, or
2 ## such that e_shoff + e_shnum * sizeof(Elf_Shdr) is past the end of the file,
16 # CASE1: error: '[[INPUT]]': section header table goes past the end of the file: e_shoff = 0x80
18 ## Set the e_shoff field to a value much larger than the object file size.
33 # CASE2: error: '[[INPUT]]': section header table goes past the end of the file: e_shoff = 0x400000…
/external/elfutils/tests/
Delfshphehdr.c72 check ("e_shoff == 0", ehdr.e_shoff == 0); in test()
99 check ("e_shoff == 0", ehdr.e_shoff == 0); in test()
120 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in test()
139 check ("e_shoff != 0", ehdr.e_shoff != 0); in test()
Dnewfile.c42 ehdr->e_shoff, in print_ehdr()
121 ZERO_TEST (e_shoff); in main()
153 ZERO_TEST (e_shoff); in main()
Dupdate1.c76 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
114 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
Dupdate2.c77 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
137 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
Dupdate3.c86 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
192 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
Dupdate4.c90 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
344 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
Dasm-tst1.c46 .e_shoff = 88,
/external/minijail/
Delfparse.h34 Elf32_Off e_shoff; /* Section header table file offset */ member
52 Elf64_Off e_shoff; /* Section header table file offset */ member
/external/vixl/examples/aarch32/
Ddisasm-a32.cc101 reinterpret_cast<const char*>(ehdr) + ehdr->e_shoff); in SectionLocator()
128 reinterpret_cast<const char*>(ehdr) + ehdr->e_shoff); in LocateSymbols()
172 reinterpret_cast<const char*>(ehdr) + ehdr->e_shoff)), in StaticSymbolVisitor()
257 reinterpret_cast<const Elf32_Shdr*>(base_addr + ehdr->e_shoff); in main()
/external/elfutils/libdwfl/
Delf-from-memory.c147 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize; in elf_from_remote_memory()
160 shdrs_end = ehdr.e64.e_shoff + ehdr.e64.e_shnum * ehdr.e64.e_shentsize; in elf_from_remote_memory()
323 ehdr.e32.e_shoff = 0; in elf_from_remote_memory()
329 ehdr.e64.e_shoff = 0; in elf_from_remote_memory()
/external/google-breakpad/src/common/linux/
Dsynth_elf_unittest.cc231 header->e_shoff); in TYPED_TEST()
241 reinterpret_cast<const Shdr*>(contents.data() + header->e_shoff); in TYPED_TEST()
306 kStringTableAlign, header->e_shoff); in TYPED_TEST()
316 reinterpret_cast<const Shdr*>(contents.data() + header->e_shoff); in TYPED_TEST()
/external/llvm/include/llvm/Object/
DELF.h313 if (Header->e_shnum == ELF::SHN_UNDEF && Header->e_shoff > 0) { in getNumSections()
344 if (Header->e_shoff == 0) in ELFFile()
347 const uint64_t SectionTableOffset = Header->e_shoff; in ELFFile()
392 auto *Begin = reinterpret_cast<const Elf_Shdr *>(base() + Header->e_shoff); in sections()
/external/kernel-headers/original/uapi/linux/
Delf.h212 Elf32_Off e_shoff; member
229 Elf64_Off e_shoff; /* Section header table file offset */ member
/external/llvm-project/llvm/test/Object/
Darchive-malformed-object.test19 # ERR2: error: bad.a: section header table goes past the end of the file: e_shoff = 0x9999
/external/linux-kselftest/tools/testing/selftests/proc/
Dproc-pid-vm.c85 uint64_t e_shoff; member
175 h.e_shoff = 0; in make_exe()
/external/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
DELFHeader.cpp90 result &= e_shoff != 0; in HasHeaderExtension()
100 lldb_private::DataExtractor sh_data(data, e_shoff, e_shentsize); in ParseHeaderExtension()
/external/perfetto/src/profiling/symbolizer/
Dlocal_symbolizer.cc151 Off e_shoff; member
205 Off e_shoff; member
246 static_cast<char*>(mem) + ehdr->e_shoff + i * sizeof(typename E::Shdr)); in GetShdr()

1234