Home
last modified time | relevance | path

Searched refs:phnum (Results 1 – 24 of 24) sorted by relevance

/netbsd-src/external/bsd/file/dist/src/
H A Delfclass.h41 phnum = elf_getu16(swap, elfhdr.e_phnum);
42 if (phnum > ms->elf_phnum_max)
43 return toomany(ms, "program headers", phnum);
46 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
54 phnum = elf_getu16(swap, elfhdr.e_phnum);
55 if (phnum > ms->elf_phnum_max)
56 return toomany(ms, "program", phnum);
61 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
H A Dreadelf.c1837 uint16_t type, phnum, shnum, notecount; in file_tryelf() local
/netbsd-src/external/bsd/elftoolchain/dist/libelf/
H A Delf_phnum.c39 _libelf_getphdrnum(Elf *e, size_t *phnum) in _libelf_getphdrnum() argument
53 *phnum = e->e_u.e_elf.e_nphdr; in _libelf_getphdrnum()
59 elf_getphdrnum(Elf *e, size_t *phnum) in elf_getphdrnum() argument
61 return (_libelf_getphdrnum(e, phnum)); in elf_getphdrnum()
66 elf_getphnum(Elf *e, size_t *phnum) in elf_getphnum() argument
68 return (_libelf_getphdrnum(e, phnum) >= 0); in elf_getphnum()
H A Dlibelf_extended.c117 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) in _libelf_setphnum() argument
121 if (phnum >= PN_XNUM) { in _libelf_setphnum()
128 scn->s_shdr.s_shdr32.sh_info = (Elf32_Word) phnum; in _libelf_setphnum()
130 scn->s_shdr.s_shdr64.sh_info = (Elf64_Word) phnum; in _libelf_setphnum()
134 phnum = PN_XNUM; in _libelf_setphnum()
138 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
140 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
H A Dlibelf_ehdr.c50 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, in _libelf_load_extended() argument
101 e->e_u.e_elf.e_nphdr = (phnum != PN_XNUM) ? phnum : in _libelf_load_extended()
129 uint16_t phnum, shnum, strndx; in _libelf_ehdr() local
198 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
203 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
210 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || in _libelf_ehdr()
220 if ((shnum == 0 && shoff != 0) || phnum == PN_XNUM || strndx == SHN_XINDEX) { in _libelf_ehdr()
221 if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0) in _libelf_ehdr()
225 e->e_u.e_elf.e_nphdr = phnum; in _libelf_ehdr()
H A Dlibelf_phdr.c48 size_t phnum; in _libelf_getphdr() local
75 phnum = e->e_u.e_elf.e_nphdr; in _libelf_getphdr()
85 fsz = gelf_fsize(e, ELF_T_PHDR, phnum, e->e_version); in _libelf_getphdr()
102 if ((phdr = calloc(phnum, msz)) == NULL) { in _libelf_getphdr()
115 (*xlator)(phdr, phnum * msz, e->e_rawfile + phoff, phnum, in _libelf_getphdr()
H A Dgelf_phdr.c61 size_t phnum; in gelf_getphdr() local
66 elf_getphdrnum(e, &phnum) < 0) { in gelf_getphdr()
71 if ((size_t)index >= phnum) { in gelf_getphdr()
131 size_t phnum; in gelf_update_phdr() local
138 elf_getphdrnum(e, &phnum) < 0) { in gelf_update_phdr()
151 if (ndx < 0 || (size_t)ndx > phnum) { in gelf_update_phdr()
H A Delf_update.c523 size_t phnum, shnum; in _libelf_resync_elf() local
582 phnum = e->e_u.e_elf.e_nphdr; in _libelf_resync_elf()
596 (E)->e_phentsize = (uint16_t) ((phnum == 0) ? 0 : \ in _libelf_resync_elf()
621 if (phnum) { in _libelf_resync_elf()
622 fsz = _libelf_fsize(ELF_T_PHDR, ec, eh_version, phnum); in _libelf_resync_elf()
702 _libelf_setphnum(e, ehdr, ec, phnum); in _libelf_resync_elf()
904 size_t fsz, msz, phnum; in _libelf_write_phdr() local
914 phnum = e->e_u.e_elf.e_nphdr; in _libelf_write_phdr()
915 assert(phnum > 0); in _libelf_write_phdr()
936 fsz = _libelf_fsize(ELF_T_PHDR, ec, e->e_version, phnum); in _libelf_write_phdr()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/hwasan/
H A Dhwasan_globals.cpp28 ElfW(Half) phnum) { in CheckCodeModel()
30 for (unsigned i = 0; i != phnum; ++i) { in CheckCodeModel()
52 ElfW(Half) phnum) { in HwasanGlobalsFor()
54 for (unsigned i = 0; i != phnum; ++i) { in HwasanGlobalsFor()
76 CheckCodeModel(base, phdr, phnum); in HwasanGlobalsFor()
H A Dhwasan.cpp377 ElfW(Half) phnum) { in __hwasan_library_loaded()
378 for (const hwasan_global &global : HwasanGlobalsFor(base, phdr, phnum)) in __hwasan_library_loaded()
383 ElfW(Half) phnum) { in __hwasan_library_unloaded()
384 for (; phnum != 0; ++phdr, --phnum) in __hwasan_library_unloaded()
H A Dhwasan_interface_internal.h31 ElfW(Half) phnum);
35 ElfW(Half) phnum);
H A Dhwasan_globals.h45 ElfW(Half) phnum);
/netbsd-src/usr.bin/tip/
H A Dacu.c69 char *phnum, string[256]; in tip_connect() local
104 for (phnum = cp; *cp && *cp != ','; cp++) in tip_connect()
109 if ((conflag = (*acu->acu_dialer)(phnum, CU)) != 0) { in tip_connect()
137 for (phnum = cp; *cp && *cp != ',' && *cp != '\n'; cp++) in tip_connect()
142 if ((conflag = (*acu->acu_dialer)(phnum, CU)) != 0) { in tip_connect()
/netbsd-src/tests/libexec/ld.elf_so/
H A Dt_rtld_r_debug.c57 Elf_Half phnum; in get_dynamic_section() local
61 phnum = (Elf_Half)getauxval(AT_PHNUM); in get_dynamic_section()
64 ATF_CHECK(phnum != (Elf_Half)~0); in get_dynamic_section()
66 phlimit = phdr + phnum; in get_dynamic_section()
/netbsd-src/lib/csu/common/
H A Dcrt0-common.c223 Elf_Half phnum = (Elf_Half)~0; in relocate_self() local
235 phnum = (Elf_Half)aux->a_v; in relocate_self()
240 if (phdr == NULL || phnum == (Elf_Half)~0) in relocate_self()
243 const Elf_Phdr *phlimit = phdr + phnum, *dynphdr = NULL; in relocate_self()
/netbsd-src/libexec/ld.elf_so/
H A Dheaders.c470 _rtld_digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry) in _rtld_digest_phdr() argument
473 const Elf_Phdr *phlimit = phdr + phnum; in _rtld_digest_phdr()
H A Drtld.c669 int phnum; in _rtld() local
676 phnum = pAUX_phnum->a_v; in _rtld()
681 _rtld_objmain = _rtld_digest_phdr(phdr, phnum, entry); in _rtld()
/netbsd-src/distrib/acorn32/stand/BtNetBSD/!BtNetBSD/
H A DBtNetBSD230 phnum% = hdr%!44 AND &FFFF
233 DIM phdrs% phnum% * phentsize% - 1 : REM array with headers ?
234 SYS "OS_GBPB", 3, file%, phdrs%, phnum% * phentsize%, phoff%
235 IF phnum% = 0 THEN ERROR 1, "No program headers"
244 FOR ph% = phdrs% TO phdrs% + (phnum% - 1) * phentsize% STEP phentsize%
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Delf.c1893 offset_from_vma (Elf_Internal_Phdr *phdrs, size_t phnum, bfd_vma vma, in offset_from_vma() argument
1899 for (seg = phdrs, i = 0; i < phnum; ++seg, ++i) in offset_from_vma()
1975 Elf_Internal_Phdr *phdrs, size_t phnum, in _bfd_elf_get_dynamic_symbols() argument
2101 filepos = offset_from_vma (phdrs, phnum, dt_strtab, dt_strsz, NULL); in _bfd_elf_get_dynamic_symbols()
2136 filepos = offset_from_vma (phdrs, phnum, dt_hash, sizeof (nb), in _bfd_elf_get_dynamic_symbols()
2165 filepos = offset_from_vma (phdrs, phnum, dt_gnu_hash, in _bfd_elf_get_dynamic_symbols()
2180 filepos = offset_from_vma (phdrs, phnum, buckets_vma, 4, NULL); in _bfd_elf_get_dynamic_symbols()
2206 filepos = offset_from_vma (phdrs, phnum, in _bfd_elf_get_dynamic_symbols()
2224 filepos = offset_from_vma (phdrs, phnum, in _bfd_elf_get_dynamic_symbols()
2238 filepos = offset_from_vma (phdrs, phnum, in _bfd_elf_get_dynamic_symbols()
[all …]
H A Delf64-ia64-vms.c4819 unsigned int i, phnum; in elf64_vms_link_add_object_symbols() local
4824 phnum = elf_elfheader (abfd)->e_phnum; in elf64_vms_link_add_object_symbols()
4825 for (i = 0; i < phnum; phdr++) in elf64_vms_link_add_object_symbols()
/netbsd-src/external/gpl3/binutils/dist/gold/
H A Doutput.cc569 size_t phnum = (this->segment_header_->data_size() in do_sized_write() local
571 if (phnum > elfcpp::PN_XNUM) in do_sized_write()
572 phnum = elfcpp::PN_XNUM; in do_sized_write()
573 oehdr.put_e_phnum(phnum); in do_sized_write()
/netbsd-src/external/gpl3/binutils.old/dist/gold/
H A Doutput.cc568 size_t phnum = (this->segment_header_->data_size() in do_sized_write() local
570 if (phnum > elfcpp::PN_XNUM) in do_sized_write()
571 phnum = elfcpp::PN_XNUM; in do_sized_write()
572 oehdr.put_e_phnum(phnum); in do_sized_write()
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Delf64-ia64-vms.c4815 unsigned int i, phnum; in elf64_vms_link_add_object_symbols() local
4820 phnum = elf_elfheader (abfd)->e_phnum; in elf64_vms_link_add_object_symbols()
4821 for (i = 0; i < phnum; phdr++) in elf64_vms_link_add_object_symbols()
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A Dmodule.cc1205 uint16_t phnum; /* 0 */ member