Searched refs:phnum (Results 1 - 10 of 10) sorted by relevance

/netbsd-6-1-5-RELEASE/external/bsd/libelf/dist/
H A Delf_phnum.c38 elf_getphnum(Elf *e, size_t *phnum) argument
52 *phnum = e->e_u.e_elf.e_nphdr;
H A Dlibelf_extended.c115 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) argument
119 if (phnum >= PN_XNUM) {
126 scn->s_shdr.s_shdr32.sh_info = phnum;
128 scn->s_shdr.s_shdr64.sh_info = phnum;
132 phnum = PN_XNUM;
136 ((Elf32_Ehdr *) eh)->e_phnum = phnum;
138 ((Elf64_Ehdr *) eh)->e_phnum = phnum;
H A Dlibelf_ehdr.c51 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, argument
95 e->e_u.e_elf.e_nphdr = (phnum != PN_XNUM) ? phnum :
123 uint16_t phnum, shnum, strndx; local
195 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum;
200 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum;
207 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM ||
214 e->e_u.e_elf.e_nphdr = phnum;
217 } else if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0)
H A Dlibelf_phdr.c48 size_t phnum, phentsize; local
75 phnum = e->e_u.e_elf.e_nphdr;
87 fsz = gelf_fsize(e, ELF_T_PHDR, phnum, e->e_version);
100 if ((phdr = calloc(phnum, msz)) == NULL) {
112 (*xlator)(phdr, e->e_rawfile + phoff, phnum,
H A Dgelf_phdr.c130 int ec, phnum; local
150 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum;
152 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum;
154 if (ndx < 0 || ndx > phnum) {
H A Delf_update.c363 size_t phnum, shnum; local
419 phnum = e->e_u.e_elf.e_nphdr;
452 if (phnum) {
453 fsz = _libelf_fsize(ELF_T_PHDR, ec, eh_version, phnum);
514 _libelf_setphnum(e, ehdr, ec, phnum);
661 size_t fsz, msz, phnum, shnum; local
684 phnum = e->e_u.e_elf.e_nphdr;
726 if (phnum != 0 && phoff != 0) {
729 fsz = _libelf_fsize(ELF_T_PHDR, ec, e->e_version, phnum);
742 src.d_size = phnum * _libelf_msiz
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/tip/
H A Dacu.c69 char *phnum, string[256]; local
104 for (phnum = cp; *cp && *cp != ','; cp++)
109 if ((conflag = (*acu->acu_dialer)(phnum, CU)) != 0) {
137 for (phnum = cp; *cp && *cp != ',' && *cp != '\n'; cp++)
142 if ((conflag = (*acu->acu_dialer)(phnum, CU)) != 0) {
/netbsd-6-1-5-RELEASE/libexec/ld.elf_so/
H A Dheaders.c338 _rtld_digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry) argument
341 const Elf_Phdr *phlimit = phdr + phnum;
H A Drtld.c578 int phnum; local
585 phnum = pAUX_phnum->a_v;
590 _rtld_objmain = _rtld_digest_phdr(phdr, phnum, entry);
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/gold/
H A Doutput.cc475 size_t phnum = (this->segment_header_->data_size() local
477 if (phnum > elfcpp::PN_XNUM)
478 phnum = elfcpp::PN_XNUM;
479 oehdr.put_e_phnum(phnum);

Completed in 130 milliseconds