Lines Matching refs:shdr_num
160 elf_header->e_shnum = cpu_to_dump16(s, s->shdr_num); in prepare_elf64_header()
161 elf_header->e_shstrndx = cpu_to_dump16(s, s->shdr_num - 1); in prepare_elf64_header()
187 elf_header->e_shnum = cpu_to_dump16(s, s->shdr_num); in prepare_elf32_header()
188 elf_header->e_shstrndx = cpu_to_dump16(s, s->shdr_num - 1); in prepare_elf32_header()
200 assert(s->shdr_num >= 2); in write_elf_header()
438 len = sizeof_shdr * s->shdr_num; in prepare_elf_section_hdrs()
460 && s->shdr_num > 2) { in prepare_elf_section_hdrs()
463 if (s->shdr_num >= SHN_LORESERVE) { in prepare_elf_section_hdrs()
487 ret = fd_write_vmcore(s->elf_section_hdrs, s->shdr_num * sizeof_shdr, s); in write_elf_section_headers()
1965 s->shdr_num = 2; in dump_init()
1999 s->phdr_offset = s->shdr_offset + sizeof(Elf64_Shdr) * s->shdr_num; in dump_init()
2003 s->phdr_offset = s->shdr_offset + sizeof(Elf32_Shdr) * s->shdr_num; in dump_init()