Lines Matching refs:shnum

390   unsigned int shnum;  member
496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, in simple_object_elf_match()
501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) in simple_object_elf_match()
518 if (eor->shnum == 0) in simple_object_elf_match()
519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_match()
538 if (eor->shstrndx >= eor->shnum in simple_object_elf_match()
544 if (eor->shstrndx >= eor->shnum) in simple_object_elf_match()
577 unsigned int shnum; in simple_object_elf_find_sections() local
593 shnum = eor->shnum; in simple_object_elf_find_sections()
594 shdrs = XNEWVEC (unsigned char, shdr_size * (shnum - 1)); in simple_object_elf_find_sections()
599 shdr_size * (shnum - 1), in simple_object_elf_find_sections()
623 for (i = 1; i < shnum; ++i) in simple_object_elf_find_sections()
779 unsigned int shnum; in simple_object_elf_write_ehdr() local
785 shnum = 0; in simple_object_elf_write_ehdr()
787 ++shnum; in simple_object_elf_write_ehdr()
788 if (shnum > 0) in simple_object_elf_write_ehdr()
792 shnum += 2; in simple_object_elf_write_ehdr()
827 shnum >= SHN_LORESERVE ? 0 : shnum); in simple_object_elf_write_ehdr()
828 if (shnum == 0) in simple_object_elf_write_ehdr()
832 shstrndx = shnum - 1; in simple_object_elf_write_ehdr()
905 unsigned int shnum; in simple_object_elf_write_to_file() local
929 shnum = 0; in simple_object_elf_write_to_file()
931 ++shnum; in simple_object_elf_write_to_file()
932 if (shnum == 0) in simple_object_elf_write_to_file()
936 shnum += 2; in simple_object_elf_write_to_file()
939 sh_offset = shdr_offset + shnum * shdr_size; in simple_object_elf_write_to_file()
941 if (shnum < SHN_LORESERVE) in simple_object_elf_write_to_file()
944 first_sh_size = shnum; in simple_object_elf_write_to_file()
945 if (shnum - 1 < SHN_LORESERVE) in simple_object_elf_write_to_file()
948 first_sh_link = shnum - 1; in simple_object_elf_write_to_file()
1098 unsigned int shnum; in simple_object_elf_copy_lto_debug_sections() local
1121 shnum = eor->shnum; in simple_object_elf_copy_lto_debug_sections()
1122 shdrs = XNEWVEC (unsigned char, shdr_size * (shnum - 1)); in simple_object_elf_copy_lto_debug_sections()
1127 shdr_size * (shnum - 1), in simple_object_elf_copy_lto_debug_sections()
1151 pfnret = XNEWVEC (int, shnum); in simple_object_elf_copy_lto_debug_sections()
1152 pfnname = XNEWVEC (const char *, shnum); in simple_object_elf_copy_lto_debug_sections()
1155 symtab_indices_shndx = XCNEWVEC (unsigned int, shnum - 1); in simple_object_elf_copy_lto_debug_sections()
1159 for (i = 1; i < shnum; ++i) in simple_object_elf_copy_lto_debug_sections()
1208 for (i = 1; i < shnum; ++i) in simple_object_elf_copy_lto_debug_sections()
1284 sh_map = XNEWVEC (unsigned, shnum); in simple_object_elf_copy_lto_debug_sections()
1287 for (i = 1; i < shnum; ++i) in simple_object_elf_copy_lto_debug_sections()
1303 for (i = 1; i < shnum; ++i) in simple_object_elf_copy_lto_debug_sections()
1421 && st_shndx < shnum in simple_object_elf_copy_lto_debug_sections()
1467 && st_shndx < shnum in simple_object_elf_copy_lto_debug_sections()