/dragonfly/contrib/file/src/ |
H A D | elfclass.h | 39 phnum = elf_getu16(swap, elfhdr.e_phnum); 40 if (phnum > ms->elf_phnum_max) 41 return toomany(ms, "program headers", phnum); 44 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum, 52 phnum = elf_getu16(swap, elfhdr.e_phnum); 53 if (phnum > ms->elf_phnum_max) 54 return toomany(ms, "program", phnum); 59 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
|
H A D | readelf.c | 1831 uint16_t type, phnum, shnum, notecount; in file_tryelf() local
|
/dragonfly/usr.bin/tip/ |
H A D | acu.c | 62 char *phnum, string[256]; in connect() local 96 for (phnum = cp; *cp && *cp != ','; cp++) in connect() 101 if ((conflag = (*acu->acu_dialer)(phnum, CU))) { in connect() 104 logent(value(HOST), phnum, acu->acu_name, in connect() 108 logent(value(HOST), phnum, acu->acu_name, in connect() 133 for (phnum = cp; *cp && *cp != ',' && *cp != '\n'; cp++) in connect() 138 if ((conflag = (*acu->acu_dialer)(phnum, CU))) { in connect() 142 logent(value(HOST), phnum, acu->acu_name, in connect() 146 logent(value(HOST), phnum, acu->acu_name, in connect()
|
/dragonfly/contrib/elftoolchain/libelf/ |
H A D | elf_phnum.c | 35 _libelf_getphdrnum(Elf *e, size_t *phnum) in _libelf_getphdrnum() argument 49 *phnum = e->e_u.e_elf.e_nphdr; in _libelf_getphdrnum() 55 elf_getphdrnum(Elf *e, size_t *phnum) in elf_getphdrnum() argument 57 return (_libelf_getphdrnum(e, phnum)); in elf_getphdrnum() 62 elf_getphnum(Elf *e, size_t *phnum) in elf_getphnum() argument 64 return (_libelf_getphdrnum(e, phnum) >= 0); in elf_getphnum()
|
H A D | libelf_extended.c | 108 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) in _libelf_setphnum() argument 112 if (phnum >= PN_XNUM) { in _libelf_setphnum() 119 scn->s_shdr.s_shdr32.sh_info = phnum; in _libelf_setphnum() 121 scn->s_shdr.s_shdr64.sh_info = phnum; in _libelf_setphnum() 125 phnum = PN_XNUM; in _libelf_setphnum() 129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum() 131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
|
H A D | libelf_ehdr.c | 41 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, in _libelf_load_extended() argument 77 e->e_u.e_elf.e_nphdr = (phnum != PN_XNUM) ? phnum : in _libelf_load_extended() 105 uint16_t phnum, shnum, strndx; in _libelf_ehdr() local 178 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr() 183 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr() 190 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || in _libelf_ehdr() 197 e->e_u.e_elf.e_nphdr = phnum; in _libelf_ehdr() 200 } else if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0) in _libelf_ehdr()
|
H A D | libelf_phdr.c | 39 size_t phnum; in _libelf_getphdr() local 67 phnum = e->e_u.e_elf.e_nphdr; in _libelf_getphdr() 77 fsz = gelf_fsize(e, ELF_T_PHDR, phnum, e->e_version); in _libelf_getphdr() 90 if ((phdr = calloc(phnum, msz)) == NULL) { in _libelf_getphdr() 102 (*xlator)(phdr, phnum * msz, e->e_rawfile + phoff, phnum, in _libelf_getphdr()
|
H A D | gelf_phdr.c | 128 int ec, phnum; in gelf_update_phdr() local 148 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in gelf_update_phdr() 150 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in gelf_update_phdr() 152 if (ndx < 0 || ndx > phnum) { in gelf_update_phdr()
|
H A D | elf_update.c | 509 size_t phnum, shnum; in _libelf_resync_elf() local 568 phnum = e->e_u.e_elf.e_nphdr; in _libelf_resync_elf() 582 (E)->e_phentsize = (uint16_t) ((phnum == 0) ? 0 : \ in _libelf_resync_elf() 607 if (phnum) { in _libelf_resync_elf() 608 fsz = _libelf_fsize(ELF_T_PHDR, ec, eh_version, phnum); in _libelf_resync_elf() 688 _libelf_setphnum(e, ehdr, ec, phnum); in _libelf_resync_elf() 883 size_t fsz, phnum; in _libelf_write_phdr() local 890 phnum = e->e_u.e_elf.e_nphdr; in _libelf_write_phdr() 892 assert(phnum > 0); in _libelf_write_phdr() 909 fsz = _libelf_fsize(ELF_T_PHDR, ec, e->e_version, phnum); in _libelf_write_phdr() [all …]
|
/dragonfly/lib/libc/gen/ |
H A D | tls.c | 206 size_t phent, phnum; in _libc_init_tls() local 214 phent = phnum = 0; in _libc_init_tls() 226 phnum = auxp->a_un.a_val; in _libc_init_tls() 230 if (phdr == NULL || phent != sizeof(Elf_Phdr) || phnum == 0) in _libc_init_tls() 233 for (i = 0; (unsigned)i < phnum; i++) { in _libc_init_tls()
|
/dragonfly/sys/sys/ |
H A D | imgact_elf.h | 53 Elf_Size phnum; member
|
/dragonfly/lib/libexecinfo/ |
H A D | private_libelf.h | 2398 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, in _libelf_load_extended() argument 2434 e->e_u.e_elf.e_nphdr = (phnum != PN_XNUM) ? phnum : in _libelf_load_extended() 2462 uint16_t phnum, shnum, strndx; in _libelf_ehdr() local 2541 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr() 2548 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr() 2555 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || in _libelf_ehdr() 2562 e->e_u.e_elf.e_nphdr = phnum; in _libelf_ehdr() 2565 } else if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0) in _libelf_ehdr()
|
/dragonfly/libexec/rtld-elf/ |
H A D | rtld.c | 480 int phnum; in _rtld() local 487 phnum = aux_info[AT_PHNUM]->a_un.a_val; in _rtld() 492 if ((obj_main = digest_phdr(phdr, phnum, entry, argv0)) == NULL) in _rtld() 1330 digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry, const char *path) in digest_phdr() argument 1333 const Elf_Phdr *phlimit = phdr + phnum; in digest_phdr()
|
/dragonfly/sys/kern/ |
H A D | imgact_elf.c | 859 elf_auxargs->phnum = hdr->e_phnum; in __CONCAT() 886 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); in __elfN()
|
/dragonfly/contrib/binutils-2.34/gold/ |
H A D | output.cc | 566 size_t phnum = (this->segment_header_->data_size() in do_sized_write() local 568 if (phnum > elfcpp::PN_XNUM) in do_sized_write() 569 phnum = elfcpp::PN_XNUM; in do_sized_write() 570 oehdr.put_e_phnum(phnum); in do_sized_write()
|
/dragonfly/contrib/binutils-2.27/gold/ |
H A D | output.cc | 554 size_t phnum = (this->segment_header_->data_size() in do_sized_write() local 556 if (phnum > elfcpp::PN_XNUM) in do_sized_write() 557 phnum = elfcpp::PN_XNUM; in do_sized_write() 558 oehdr.put_e_phnum(phnum); in do_sized_write()
|