Lines Matching refs:src_shdr
688 GElf_Shdr src_shdr;
782 (void) gelf_getshdr(info->scn, &src_shdr);
783 (void) memcpy(&dst_shdr, &src_shdr, sizeof (GElf_Shdr));
790 if ((src_shdr.sh_link >= shnum) ||
791 (src_shdr.sh_link == 0))
792 dst_shdr.sh_link = src_shdr.sh_link;
793 else if ((int)state->sec_table[src_shdr.sh_link].secno <
798 state->sec_table[src_shdr.sh_link].secno;
800 if ((src_shdr.sh_type == SHT_REL) ||
801 (src_shdr.sh_type == SHT_RELA)) {
802 if ((src_shdr.sh_info >= shnum) ||
803 ((int)state->sec_table[src_shdr.
808 sec_table[src_shdr.sh_info].secno;
826 if (((src_shdr.sh_type == SHT_SYMTAB) ||
827 (src_shdr.sh_type == SHT_DYNSYM)) &&
828 src_shdr.sh_entsize != 0 &&
833 no_of_symbols = src_shdr.sh_size /
834 src_shdr.sh_entsize;
836 src_shdr.sh_entsize);
862 if (src_shdr.sh_type ==
897 if ((src_shdr.sh_type == SHT_SYMTAB_SHNDX) &&
898 (src_shdr.sh_entsize != 0) &&
905 entcnt = src_shdr.sh_size /
906 src_shdr.sh_entsize;
908 newshndx = malloc(entcnt * src_shdr.sh_entsize);
1091 if (gelf_getshdr(src_scn, &src_shdr) == NULL) {
1106 dst_shdr = src_shdr;
1113 if ((shnum >= src_shdr.sh_link) ||
1114 (src_shdr.sh_link == 0))
1115 dst_shdr.sh_link = src_shdr.sh_link;
1118 state->sec_table[src_shdr.sh_link].osecno;
1120 if ((shnum >= src_shdr.sh_info) ||
1121 (src_shdr.sh_info == 0))
1122 dst_shdr.sh_info = src_shdr.sh_info;
1125 state->sec_table[src_shdr.sh_info].osecno;