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