Home
last modified time | relevance | path

Searched refs:phentsize (Results 1 – 17 of 17) sorted by relevance

/external/elfutils/libdwfl/
Delf-from-memory.c124 uint_fast16_t phentsize; in elf_from_remote_memory() local
139 phentsize = ehdr.e32.e_phentsize; in elf_from_remote_memory()
140 if (phentsize != sizeof (Elf32_Phdr) || phnum == 0) in elf_from_remote_memory()
156 phentsize = ehdr.e64.e_phentsize; in elf_from_remote_memory()
157 if (phentsize != sizeof (Elf64_Phdr) || phnum == 0) in elf_from_remote_memory()
172 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory()
174 if ((size_t) nread >= phoff + phnum * phentsize) in elf_from_remote_memory()
181 if (initial_bufsize < (size_t)phnum * phentsize) in elf_from_remote_memory()
183 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory()
193 phnum * phentsize, phnum * phentsize); in elf_from_remote_memory()
Ddwfl_segment_report_module.c351 uint_fast16_t phentsize; in dwfl_segment_report_module() local
378 phentsize = ehdr.e32.e_phentsize; in dwfl_segment_report_module()
379 if (phentsize != sizeof (Elf32_Phdr)) in dwfl_segment_report_module()
396 phentsize = ehdr.e64.e_phentsize; in dwfl_segment_report_module()
397 if (phentsize != sizeof (Elf64_Phdr)) in dwfl_segment_report_module()
415 xlatefrom.d_size = phnum * phentsize; in dwfl_segment_report_module()
621 && likely (filesz_offset >= phoff + phnum * phentsize)) in dwfl_segment_report_module()
Ddwfl_module_getdwarf.c333 size_t phentsize = gelf_fsize (mod->main.elf, ELF_T_PHDR, 1, EV_CURRENT); in find_prelink_address_sync() local
340 || ehdr.e32.e_phentsize != phentsize) in find_prelink_address_sync()
348 || ehdr.e64.e_phentsize != phentsize) in find_prelink_address_sync()
358 + phnum * phentsize in find_prelink_address_sync()
392 src.d_size = phnum * phentsize; in find_prelink_address_sync()
Drelocate.c601 size_t phentsize = gelf_fsize (relocated, ELF_T_PHDR, 1, EV_CURRENT); in relocate_section() local
602 GElf_Off phdrs_end = phdrs_start + phnums * phentsize; in relocate_section()
DChangeLog991 actually used ehsize, shentsize and phentsize.
/external/toybox/toys/posix/
Dfile.c37 phentsize, phnum, shsize, shnum; local
88 phentsize = elf_int(toybuf+42+12*bits, 2);
97 if (phnum && (phentsize != 32+24*bits)) {
98 printf(", corrupt phentsize %d?", phentsize);
110 if (phoff<0 || phoff>TT.len || phnum*phentsize>TT.len-phoff) goto bad;
112 char *phdr = map+phoff+i*phentsize;
/external/elfutils/tests/
Delfshphehdr.c145 size_t phentsize = (class == ELFCLASS32 in test() local
147 check ("e_phentsize", ehdr.e_phentsize == phentsize); in test()
/external/toybox/toys/pending/
Dreadelf.c39 int bits, endian, shnum, shentsize, phentsize;
139 char *phdr = TT.elf+TT.phoff+i*TT.phentsize; in get_ph()
141 if (phdr > TT.elf+TT.size-TT.phentsize) { in get_ph()
374 TT.phentsize = elf_short(&hdr); in scan_elf()
402 printf(" Size of program headers: %d (bytes)\n", TT.phentsize); in scan_elf()
/external/llvm/test/Object/
Dcorrupt.test36 RUN: %p/Inputs/corrupt-invalid-phentsize.elf.x86-64 2>&1 | \
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/
Ddynamic-tags.test474 # RUN: yaml2obj --docnum=1 -DPHENTSIZE=1 %s -o %t-phentsize-err
475 # RUN: llvm-readobj --dynamic-table %t-phentsize-err 2>&1 | \
476 # RUN: FileCheck %s --implicit-check-not=warning: -DFILE=%t-phentsize-err \
478 # RUN: llvm-readelf --dynamic-table %t-phentsize-err 2>&1 | \
479 # RUN: FileCheck %s --implicit-check-not=warning: -DFILE=%t-phentsize-err \
/external/llvm-project/llvm/test/Object/
Dinvalid.test429 # RUN: llvm-readobj -l %p/Inputs/corrupt-invalid-phentsize.elf.x86-64 2>&1 \
430 # RUN: | FileCheck -DFILE=%p/Inputs/corrupt-invalid-phentsize.elf.x86-64 --check-prefix=PHENTSIZE…
/external/toybox/android/device/generated/
Dglobals.h835 int bits, endian, shnum, shentsize, phentsize; member
/external/toybox/android/mac/generated/
Dglobals.h835 int bits, endian, shnum, shentsize, phentsize; member
/external/toybox/android/linux/generated/
Dglobals.h835 int bits, endian, shnum, shentsize, phentsize; member
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/
Dsymbolize_elf.inc1282 const int phentsize = obj->elf_header.e_phentsize;
1292 phoff += phentsize;
/external/openscreen/third_party/abseil/src/absl/debugging/
Dsymbolize_elf.inc1282 const int phentsize = obj->elf_header.e_phentsize;
1292 phoff += phentsize;
/external/libtextclassifier/abseil-cpp/absl/debugging/
Dsymbolize_elf.inc1282 const int phentsize = obj->elf_header.e_phentsize;
1292 phoff += phentsize;