Home
last modified time | relevance | path

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

123

/titanic_50/usr/src/psm/stand/boot/common/
H A Dreadfile.c451 phdr->p_memsz, phdr->p_filesz); in read_elf32()
472 kmem_alloc(phdr->p_memsz, 0)) == NULL) in read_elf32()
489 size = roundup(phdr->p_memsz + off, in read_elf32()
494 size = phdr->p_memsz; in read_elf32()
562 if (phdr->p_memsz > phdr->p_filesz) { in read_elf32()
567 phdr->p_memsz - phdr->p_filesz); in read_elf32()
571 phdr->p_memsz - phdr->p_filesz); in read_elf32()
575 phdr->p_memsz - phdr->p_filesz); in read_elf32()
582 phdr->p_memsz); in read_elf32()
853 (u_longlong_t)phdr->p_memsz, in read_elf64()
[all …]
/titanic_50/usr/src/lib/libc/sparc/crt/
H A D_rtld.c195 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - in __rtld()
208 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - in __rtld()
228 if ((pptr->p_type != PT_LOAD) || (pptr->p_memsz == 0)) in __rtld()
237 flen = pptr->p_memsz + (pptr->p_offset - foff); in __rtld()
283 if (pptr->p_memsz > pptr->p_filesz) { in __rtld()
289 j = (faddr + pptr->p_vaddr + pptr->p_memsz) - zaddr; in __rtld()
/titanic_50/usr/src/lib/libc/i386/crt/
H A D_rtld.c195 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - in __rtld()
208 mlen = ROUND((lph->p_vaddr + lph->p_memsz) - in __rtld()
228 if ((pptr->p_type != PT_LOAD) || (pptr->p_memsz == 0)) in __rtld()
237 flen = pptr->p_memsz + (pptr->p_offset - foff); in __rtld()
283 if (pptr->p_memsz > pptr->p_filesz) { in __rtld()
288 j = (faddr + pptr->p_vaddr + pptr->p_memsz) - zaddr; in __rtld()
/titanic_50/usr/src/cmd/sgs/size/common/
H A Dprocess.c258 Third += p.p_memsz; in process_phdr()
260 memsize += p.p_memsz; in process_phdr()
265 (void) printf(prusect[numbase], p.p_memsz); in process_phdr()
266 total += p.p_memsz; in process_phdr()
281 (void) printf(prusect[numbase], p.p_memsz); in process_phdr()
/titanic_50/usr/src/tools/elfextract/
H A Delfextract.c93 if (phdr->p_memsz == 0) in extract32()
104 for (; c < phdr->p_memsz; ++c) { in extract32()
163 if (phdr->p_memsz == 0) in extract64()
174 for (; c < phdr->p_memsz; ++c) { in extract64()
/titanic_50/usr/src/cmd/sgs/rtld.4.x/
H A Drtld.4.x.c441 mlen = ROUND((lph->p_vaddr + lph->p_memsz) -
454 mlen = ROUND((lph->p_vaddr + lph->p_memsz) -
474 if ((pptr->p_type != PT_LOAD) || (pptr->p_memsz == 0))
483 flen = pptr->p_memsz + (pptr->p_offset - foff);
520 if (pptr->p_memsz > pptr->p_filesz) {
524 r = (faddr + pptr->p_vaddr + pptr->p_memsz) - zaddr;
/titanic_50/usr/src/cmd/sgs/rtld/common/
H A Dtls.c145 tmi.tm_memsz = tlsphdr->p_memsz; in tls_modaddrem()
172 ulong_t memsz = S_ROUND(phdr->p_memsz, M_TLSSTATALIGN); in tls_assign()
310 (PTTLS(lmp) == 0) || (PTTLS(lmp)->p_memsz == 0)) in tls_statmod()
325 tlsmodlist[tlsmodndx]->tm_memsz = tlsphdr->p_memsz; in tls_statmod()
/titanic_50/usr/src/cmd/sgs/dump/common/
H A Dfcns.c129 field, EC_XWORD(p_phdr.p_memsz), in dump_exec_header()
145 field, EC_XWORD(p_phdr.p_memsz)); in dump_exec_header()
/titanic_50/usr/src/grub/grub-0.97/netboot/
H A Delf.h208 Elf32_Size p_memsz; /* Size of contents in memory. */ member
220 Elf64_Size p_memsz; /* Size of contents in memory. */ member
/titanic_50/usr/src/cmd/sgs/elfedit/modules/common/
H A Dphdr.c478 EC_XWORD(phdr->p_memsz)); in print_phdr()
802 Xword p_memsz = elfedit_atoui(argstate.argv[1], NULL); in cmd_body() local
804 if (phdr->p_memsz == p_memsz) { in cmd_body()
808 EC_XWORD(phdr->p_memsz)); in cmd_body()
813 EC_XWORD(phdr->p_memsz), in cmd_body()
814 EC_XWORD(p_memsz)); in cmd_body()
816 phdr->p_memsz = p_memsz; in cmd_body()
H A Dphdr.msg239 The phdr:p_memsz command is used to display or alter the\n\
240 p_memsz field of the specified program header.\n\
242 p_memsz contains the number of bytes in the memory image\n\
245 If phdr:p_memsz is called without arguments, the value\n\
246 of p_memsz for every element in the program header array\n\
249 present, the p_memsz field of the element at the specified\n\
376 @ MSG_CMD_P_MEMSZ "p_memsz"
/titanic_50/usr/src/cmd/sgs/liblddbg/common/
H A Dphdr.c43 EC_XWORD(phdr->p_memsz)); in Elf_phdr()
/titanic_50/usr/src/uts/common/os/
H A Dmmapobj.c1209 size_t p_memsz; in mmapobj_map_elf() local
1225 p_memsz = mrp[i].mr_msize; in mmapobj_map_elf()
1227 zfodlen = p_memsz - p_filesz; in mmapobj_map_elf()
1304 size_t p_memsz; in calc_loadable() local
1348 p_memsz = STRUCT_FGET(mph, x.p_memsz); in calc_loadable()
1354 if (p_memsz == 0) { in calc_loadable()
1394 p_end = vaddr + p_memsz + p_offset; in calc_loadable()
1551 size_t p_memsz; in process_phdr() local
1767 p_memsz = STRUCT_FGET(mph, x.p_memsz); in process_phdr()
1776 if (p_memsz == 0) { in process_phdr()
[all …]
H A Dksyms_snapshot.c159 hdr.text_phdr.p_memsz = (Word)(e_text - s_text); in ksyms_snapshot()
164 hdr.data_phdr.p_memsz = (Word)(e_data - s_data); in ksyms_snapshot()
/titanic_50/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c287 if (ophdr->p_filesz != ophdr->p_memsz) in rt_dldump()
430 (data_phdr->p_vaddr + data_phdr->p_memsz))) { in rt_dldump()
517 edata = data_phdr->p_vaddr + data_phdr->p_memsz; in rt_dldump()
562 ophdr->p_memsz = edata - ophdr->p_vaddr; in rt_dldump()
563 ophdr->p_filesz = ophdr->p_memsz; in rt_dldump()
/titanic_50/usr/src/cmd/sgs/libld/common/
H A Dupdate.c545 if (tsgp->sg_phdr.p_memsz) in update_osym()
555 end = sgp->sg_phdr.p_vaddr + sgp->sg_phdr.p_memsz; in update_osym()
3667 phdr->p_filesz = phdr->p_memsz = phdrsz; in ld_update_outfile()
3752 phdr->p_memsz = shdr->sh_size; in ld_update_outfile()
3829 phdr->p_memsz = lastshdr->sh_addr + in ld_update_outfile()
3855 phdr->p_memsz = sgp->sg_length; in ld_update_outfile()
3862 v_e = vaddr + phdr->p_memsz; in ld_update_outfile()
3874 p_e = p_s + (ofl->ofl_phdr[i]).p_memsz; in ld_update_outfile()
3904 phdr->p_memsz = 0; in ld_update_outfile()
3930 phdr->p_memsz = offset - hshdr->sh_offset; in ld_update_outfile()
[all …]
H A Dunwind.c816 phdr->p_memsz = 12 + (8 * fde_count); in ld_unwind_populate_hdr()
817 phdr->p_filesz = phdr->p_memsz; in ld_unwind_populate_hdr()
/titanic_50/usr/src/cmd/sgs/rtld/amd64/
H A Ddlamd64getunwind.c99 PTUNWIND(lmp)->p_memsz + base); in getunwind_core()
/titanic_50/usr/src/uts/common/exec/elf/
H A Delf.c161 if (phdrp->p_memsz < PT_SUNWDTRACE_SIZE || in dtrace_safe_phdr()
958 hi = lo + phdrp->p_memsz; in elfsize()
1088 minsize = offsetof(Phdr, p_memsz) + sizeof (((Phdr *)NULL)->p_memsz); in getelfphdr()
1280 zfodsz = (size_t)phdr->p_memsz - phdr->p_filesz; in mapelfexec()
1313 caddr_t ebss = addr + phdr->p_memsz; in mapelfexec()
1337 *brkbase = addr + phdr->p_memsz; in mapelfexec()
1340 *execsz += btopr(phdr->p_memsz); in mapelfexec()
1938 v[i].p_memsz = size; in elfcore()
/titanic_50/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c144 if (phdr->p_memsz == 0) in dboot_elfload64()
/titanic_50/usr/src/cmd/sgs/mcs/common/
H A Dmcs.h176 GElf_Xword p_memsz; member
/titanic_50/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h171 Elf32_Word p_memsz; member
/titanic_50/usr/src/uts/common/sys/
H A Delf.h302 Elf32_Word p_memsz; /* memory size */ member
315 Elf64_Xword p_memsz; /* memory size */ member
/titanic_50/usr/src/cmd/sgs/librtld_db/demo/common/
H A Dmaps.c287 phdr.p_memsz)) in load_map()
289 phdr.p_memsz); in load_map()
/titanic_50/usr/src/cmd/sgs/librtld_db/i386/
H A Dplt32_resolution.c94 phdr.p_memsz))) { in rli_func()

123