Lines Matching refs:shnum
60 static void initialize(int shnum, Cmd_Info *, file_state_t *);
249 size_t shnum; in process_file() local
260 if (elf_getshdrnum(elf, &shnum) == -1) { in process_file()
275 initialize(shnum, cmd_info, &state); in process_file()
326 size_t shstrndx, shnum; in traverse_file() local
330 if (elf_getshdrnum(elf, &shnum) == -1) { in traverse_file()
517 if ((tmp_shdr.sh_link < shnum) && in traverse_file()
585 for (i = 1; i < shnum; i++) { in traverse_file()
636 for (i = 1; i < shnum; i++) { in traverse_file()
692 size_t shnum, shstrndx; in build_file() local
695 if (elf_getshdrnum(src_elf, &shnum) == -1) { in build_file()
790 if ((src_shdr.sh_link >= shnum) || in build_file()
802 if ((src_shdr.sh_info >= shnum) || in build_file()
1081 for (cnt = 0; cnt < shnum; cnt++, info++) { in build_file()
1113 if ((shnum >= src_shdr.sh_link) || in build_file()
1120 if ((shnum >= src_shdr.sh_info) || in build_file()
1142 if ((shstrndx > 0) && (shnum > 0) && in build_file()
1143 (state->sec_table[shstrndx].secno < shnum)) { in build_file()
1513 initialize(int shnum, Cmd_Info *cmd_info, file_state_t *state) in initialize() argument
1524 calloc(shnum + 1, sizeof (section_info_table)); in initialize()
1530 state->off_table = (int64_t *)calloc(shnum, sizeof (int64_t)); in initialize()
1536 state->nobits_table = (int64_t *)calloc(shnum, sizeof (int64_t)); in initialize()