Searched refs:phnum (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/lib/ |
H A D | buildid.c | 80 __u32 i, phnum; in get_build_id_32() local 90 phnum = READ_ONCE(ehdr->e_phnum); in get_build_id_32() 92 if (phnum > (PAGE_SIZE - sizeof(Elf32_Ehdr)) / sizeof(Elf32_Phdr)) in get_build_id_32() 97 for (i = 0; i < phnum; ++i) { in get_build_id_32() 113 __u32 i, phnum; in get_build_id_64() local 123 phnum = READ_ONCE(ehdr->e_phnum); in get_build_id_64() 125 if (phnum > (PAGE_SIZE - sizeof(Elf64_Ehdr)) / sizeof(Elf64_Phdr)) in get_build_id_64() 130 for (i = 0; i < phnum; ++i) { in get_build_id_64()
|
/openbmc/linux/drivers/remoteproc/ |
H A D | remoteproc_elf_loader.c | 50 u16 phnum; local 92 phnum = elf_hdr_get_e_phnum(class, fw->data); 100 if (phnum == 0) { 165 u16 phnum; local 171 phnum = elf_hdr_get_e_phnum(class, ehdr); 175 for (i = 0; i < phnum; i++, phdr += elf_phdr_get_size) {
|
H A D | remoteproc_coredump.c | 244 int phnum = 0; in rproc_coredump() local 268 phnum++; in rproc_coredump() 288 elf_hdr_set_e_phnum(class, ehdr, phnum); in rproc_coredump()
|
H A D | imx_dsp_rproc.c | 849 u16 phnum; in imx_dsp_rproc_elf_load_segments() local 855 phnum = elf_hdr_get_e_phnum(class, ehdr); in imx_dsp_rproc_elf_load_segments() 859 for (i = 0; i < phnum; i++, phdr += elf_phdr_get_size) { in imx_dsp_rproc_elf_load_segments()
|
/openbmc/qemu/linux-user/ |
H A D | gen-vdso-elfn.c.inc | 114 unsigned phnum, shnum; 127 phnum = ehdr->e_phnum; 148 for (unsigned i = 0; i < phnum; ++i) { 182 if (first_segsz < ehdr->e_phoff + phnum * sizeof(*phdr)) { 191 for (unsigned i = 0; i < phnum; ++i) { 219 for (unsigned i = 0; i < phnum; ++i) {
|
H A D | elfload.c | 2140 static void bswap_phdr(struct elf_phdr *phdr, int phnum) in bswap_phdr() argument 2143 for (i = 0; i < phnum; ++i, ++phdr) { in bswap_phdr() 2192 static inline void bswap_phdr(struct elf_phdr *phdr, int phnum) { } in bswap_phdr() argument
|
/openbmc/u-boot/tools/ |
H A D | prelink-riscv.inc | 27 static void* get_offset_nn (void* data, Elf_Phdr* phdrs, size_t phnum, Elf_Addr addr) 31 for (p = phdrs; p < phdrs + phnum; ++p)
|
/openbmc/qemu/bsd-user/ |
H A D | elfload.c | 65 static void bswap_phdr(struct elf_phdr *phdr, int phnum) in bswap_phdr() argument 69 for (i = 0; i < phnum; i++, phdr++) { in bswap_phdr() 117 static void bswap_phdr(struct elf_phdr *phdr, int phnum) { } in bswap_phdr() argument
|
/openbmc/qemu/dump/ |
H A D | dump.c | 144 uint16_t phnum = MIN(s->phdr_num, PN_XNUM); in prepare_elf64_header() local 157 elf_header->e_phnum = cpu_to_dump16(s, phnum); in prepare_elf64_header() 171 uint16_t phnum = MIN(s->phdr_num, PN_XNUM); in prepare_elf32_header() local 184 elf_header->e_phnum = cpu_to_dump16(s, phnum); in prepare_elf32_header()
|
/openbmc/linux/tools/perf/util/ |
H A D | symbol-elf.c | 2070 size_t phnum; member 2312 kci->phnum += 1; in kcore_copy__layout() 2518 if (kcore__copy_hdr(&kcore, &extract, kci.phnum)) in kcore_copy() 2522 gelf_fsize(extract.elf, ELF_T_PHDR, kci.phnum, EV_CURRENT); in kcore_copy()
|