Home
last modified time | relevance | path

Searched refs:p_filesz (Results 1 – 25 of 50) sorted by relevance

12

/freebsd/contrib/elftoolchain/size/
H A Dsize.c309 if (offset >= max_size || phdr->p_filesz > max_size - offset) { in handle_core_note()
313 segment_end = phdr->p_offset + phdr->p_filesz; in handle_core_note()
490 split = (phdr->p_memsz > 0) && (phdr->p_filesz > 0) && in handle_phdr()
491 (phdr->p_memsz > phdr->p_filesz); in handle_phdr()
498 tbl_print_num(phdr->p_filesz, radix, 1); in handle_phdr()
500 text_size_total += phdr->p_filesz; in handle_phdr()
502 size = phdr->p_memsz - phdr->p_filesz; in handle_phdr()
503 addr = phdr->p_vaddr + phdr->p_filesz; in handle_phdr()
506 text_size_total += phdr->p_memsz - phdr->p_filesz; in handle_phdr()
516 data_size += phdr->p_filesz; in handle_phdr()
[all …]
/freebsd/libexec/rtld-elf/
H A Dmap_object.c159 phdr->p_offset + phdr->p_filesz > page_size) { in map_object()
161 phdr->p_filesz) - in map_object()
179 note_end = note_start + phdr->p_filesz; in map_object()
205 if (npagesizes > 1 && rtld_round_page(segs[0]->p_filesz) >= in map_object()
229 segs[i]->p_filesz); in map_object()
242 if (segs[i]->p_filesz != segs[i]->p_memsz) { in map_object()
244 clear_vaddr = segs[i]->p_vaddr + segs[i]->p_filesz; in map_object()
335 obj->tlsinitsize = phtls->p_filesz; in map_object()
/freebsd/usr.sbin/btxld/
H A Dbtxld.c371 hdr->text = le32toh(ep->p_filesz); in gethdr()
377 hdr->data = le32toh(ep->p_filesz); in gethdr()
379 le32toh(ep->p_filesz); in gethdr()
420 eh.p[0].p_filesz = eh.p[0].p_memsz = htole32(hdr->text); in puthdr()
422 le32toh(eh.p[0].p_filesz)); in puthdr()
426 eh.p[1].p_filesz = eh.p[1].p_memsz = htole32(hdr->data); in puthdr()
429 eh.sh[2].sh_size = eh.p[0].p_filesz; in puthdr()
432 eh.sh[3].sh_size = eh.p[1].p_filesz; in puthdr()
/freebsd/stand/common/
H A Dload_elf.c165 CONVERT_FIELD(b, p_filesz, e); \ in elf_program_header_convert()
641 (long)phdr[i].p_filesz, (long)phdr[i].p_offset,
646 printf("text=0x%lx ", (long)phdr[i].p_filesz);
648 printf("data=0x%lx", (long)phdr[i].p_filesz);
649 if (phdr[i].p_filesz < phdr[i].p_memsz)
651 phdr[i].p_filesz));
661 if (phdr[i].p_filesz > fpcopy) {
664 phdr[i].p_filesz - fpcopy,
672 if (phdr[i].p_filesz < phdr[i].p_memsz) {
675 (long)(phdr[i].p_vaddr + off + phdr[i].p_filesz),
[all …]
/freebsd/contrib/elftoolchain/libelf/
H A Dgelf_phdr.c82 d->p_filesz = (Elf64_Xword) ep32->p_filesz; in gelf_getphdr()
166 LIBELF_COPY_U32(ph32, s, p_filesz); in gelf_update_phdr()
H A Delf_types.m4156 `p_filesz, WORD',
168 `p_filesz, XWORD',
/freebsd/stand/powerpc/boot1.chrp/
H A Dboot1.c615 ofw_claim(p,(ph.p_filesz > ph.p_memsz) ? in load()
616 ph.p_filesz : ph.p_memsz,0); in load()
617 if (fsread(ino, p, ph.p_filesz) != ph.p_filesz) { in load()
621 if (ph.p_filesz != ph.p_memsz) in load()
622 bzero(p + ph.p_filesz, ph.p_memsz - ph.p_filesz); in load()
/freebsd/lib/libkldelf/
H A Def.c100 printf("text=0x%jx ", (uintmax_t)phdr->p_filesz); in ef_print_phdr()
102 printf("data=0x%jx", (uintmax_t)phdr->p_filesz); in ef_print_phdr()
103 if (phdr->p_filesz < phdr->p_memsz) in ef_print_phdr()
105 (uintmax_t)(phdr->p_memsz - phdr->p_filesz)); in ef_print_phdr()
264 shdr[i].sh_size > phdyn->p_filesz : in ef_parse_dynamic()
265 shdr[i].sh_size != phdyn->p_filesz)) { in ef_parse_dynamic()
/freebsd/sys/x86/x86/
H A Ddump_machdep.c74 phdr.p_filesz = 0; in dumpsys_write_aux_headers()
/freebsd/sys/kern/
H A Dimgact_elf.c756 phdr[i].p_memsz, phdr[i].p_filesz, prot); in __elfN()
1035 if (phdr->p_filesz < 2 || phdr->p_filesz > MAXPATHLEN) { in __elfN()
1040 interp_name_len = phdr->p_filesz; in __elfN()
1234 phdr[i].p_filesz) in __CONCAT()
1722 php->p_filesz, offset, &params, tmpbuf); in __elfN()
1725 offset += php->p_filesz; in __elfN()
1767 phdr->p_filesz = phdr->p_memsz = entry->end - entry->start; in cb_put_phdr()
1771 phc->offset += phdr->p_filesz; in cb_put_phdr()
2026 phdr->p_filesz = notesz; in __elfN()
2831 if (pnote == NULL || pnote->p_filesz > PAGE_SIZE) in __elfN()
[all …]
H A Dkern_dump.c267 phdr.p_filesz = size; in cb_dumphdr()
272 fileofs += phdr.p_filesz; in cb_dumphdr()
/freebsd/sys/arm/arm/
H A Ddump_machdep.c93 phdr.p_filesz = 0; in dumpsys_write_aux_headers()
/freebsd/contrib/file/src/
H A Dreadelf.h180 Elf32_Word p_filesz; member
192 Elf64_Xword p_filesz; member
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_freebsd.h
/freebsd/usr.bin/gcore/
H A Delfcore.c241 uintmax_t nleft = php->p_filesz; in elf_coredump()
293 phdr->p_filesz = phdr->p_memsz = entry->end - entry->start; in cb_put_phdr()
303 phc->offset += phdr->p_filesz; in cb_put_phdr()
541 phdr->p_filesz = notesz; in elf_puthdr()
/freebsd/usr.bin/ldd/
H A Dldd.c442 phdr.p_offset, phdr.p_filesz); in is_executable()
448 phdr.p_filesz); in is_executable()
/freebsd/sys/sys/
H A Delf32.h111 Elf32_Word p_filesz; /* Size of contents in file. */ member
H A Delf64.h121 Elf64_Xword p_filesz; /* Size of contents in file. */ member
/freebsd/lib/libprocstat/
H A Dcore.c228 eoffset = offset + core->pc_phdr.p_filesz; in procstat_core_get()
479 eoffset = offset + core->pc_phdr.p_filesz; in procstat_core_note_count()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELF.h181 return (Sec.sh_offset + 1 <= Phdr.p_offset + Phdr.p_filesz); in checkSectionOffsets()
182 return Sec.sh_offset + Sec.sh_size <= Phdr.p_offset + Phdr.p_filesz; in checkSectionOffsets()
410 if (Phdr.p_offset + Phdr.p_filesz > getBufSize()) { in notes_begin()
413 ") or size (0x" + Twine::utohexstr(Phdr.p_filesz) + ")"); in notes_begin()
424 return Elf_Note_Iterator(base() + Phdr.p_offset, Phdr.p_filesz, in notes_begin()
659 uintX_t Size = Phdr.p_filesz; in getSegmentContents()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h198 elf_xword p_filesz; ///< Byte size of the segment in file. member
/freebsd/contrib/elftoolchain/elfcopy/
H A Dsegments.c498 seg->fsz = iphdr.p_filesz; in setup_phdr()
584 ophdr.p_filesz = seg->fsz; in copy_phdr()
/freebsd/stand/i386/gptzfsboot/
H A Dzfsboot.c427 size = ep[i].p_filesz; in load()
428 if (read(fd, p, ep[i].p_filesz) != size) { in load()
/freebsd/contrib/llvm-project/lld/docs/ELF/
H A Dlarge_sections.rst43 minimize the number of segments with ``p_memsz > p_filesz``.
/freebsd/stand/kboot/libkboot/
H A Ddfk.c243 addr >= phdr[i].p_vaddr + phdr[i].p_filesz) in read_at_address()

12