Lines Matching defs:shdr
313 Shdr *shdr = cache[ndx].c_shdr;
319 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
321 file, cache[ndx].c_name, EC_WORD(shdr->sh_link));
324 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) {
343 ndx = shdr->sh_link;
344 shdr = cache[ndx].c_shdr;
350 *symnum = (shdr->sh_size / shdr->sh_entsize);
358 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
360 file, cache[ndx].c_name, EC_WORD(shdr->sh_link));
365 *strsec = &cache[shdr->sh_link];
393 Shdr *shdr;
400 shdr = symtab->c_shdr;
405 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) {
414 symn = (Word)(shdr->sh_size / shdr->sh_entsize);
420 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
422 file, symtab->c_name, EC_WORD(shdr->sh_link));
433 symname = string(symtab, cnt, &cache[shdr->sh_link], file,
464 Shdr *shdr = _cache->c_shdr;
471 if (shdr->sh_type == 0) {
473 file, secname, EC_WORD(shdr->sh_type));
476 if (!match(MATCH_F_ALL, secname, seccnt, shdr->sh_type))
494 Elf_shdr(0, osabi, ehdr->e_machine, shdr);
552 Shdr *shdr = _cache->c_shdr;
579 if ((uphdr && (shdr->sh_addr == uphdr->p_vaddr)) ||
602 shdr->sh_addr, ndx, gotaddr)) {
624 fde_cnt_enc, ehdr->e_ident, B_TRUE, shdr->sh_addr, ndx,
651 shdr->sh_addr, ndx, gotaddr)) {
670 table_enc, ehdr->e_ident, B_TRUE, shdr->sh_addr,
695 eh_state->frame_base = shdr->sh_addr;
705 shdr->sh_addr, ehdr->e_machine, ehdr->e_ident, gotaddr);
903 Shdr *shdr = _cache->c_shdr;
915 if ((shdr->sh_type != SHT_PROGBITS) &&
916 (shdr->sh_type != SHT_AMD64_UNWIND))
938 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
974 Shdr *shdr;
989 shdr = state->seccache->c_shdr;
994 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) {
1003 state->symn = (Word)(shdr->sh_size / shdr->sh_entsize);
1009 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
1011 file, state->secname, EC_WORD(shdr->sh_link));
1041 Shdr *shdr = _cache->c_shdr;
1043 if ((shdr->sh_type != SHT_SYMTAB_SHNDX) ||
1044 (shdr->sh_link != state->secndx))
1047 if ((shdr->sh_entsize) &&
1049 ((symn = (uint_t)(shdr->sh_size / shdr->sh_entsize)) == 0))
1722 Shdr *shdr = _cache->c_shdr;
1727 if (shdr->sh_type == SHT_SUNW_cap) {
1736 cshdr = shdr;
1804 Shdr *shdr = _cache->c_shdr;
1810 if ((shdr->sh_type == SHT_NOBITS) ||
1811 (iphdr_off < shdr->sh_offset) ||
1812 (iphdr_off + iphdr_fsz) > (shdr->sh_offset + shdr->sh_size))
1816 ishdr = shdr;
2294 Shdr *shdr = _cache->c_shdr;
2298 switch (shdr->sh_type) {
2311 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0) ||
2314 numdyn = shdr->sh_size / shdr->sh_entsize;
2346 if (shdr->sh_info == 0) {
2350 EC_WORD(shdr->sh_info));
2355 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
2358 _cache->c_name, EC_WORD(shdr->sh_link));
2365 if (shdr->sh_type == SHT_SUNW_verdef) {
2372 versym->max_verndx = shdr->sh_info;
2430 Shdr *shdr;
2433 shdr = _cache->c_shdr;
2435 if ((shdr->sh_type != SHT_SYMTAB) &&
2436 (shdr->sh_type != SHT_DYNSYM) &&
2437 ((shdr->sh_type != SHT_SUNW_LDYNSYM) ||
2440 if (!match(MATCH_F_ALL, _cache->c_name, secndx, shdr->sh_type))
2454 output_symbol(&state, symcnt, shdr->sh_info, symcnt,
2612 Shdr *shdr = _cache->c_shdr;
2616 if (((type = shdr->sh_type) != SHT_RELA) &&
2625 if (((relsize = shdr->sh_entsize) == 0) ||
2626 (relsize > shdr->sh_size)) {
2636 if (shdr->sh_size == 0) {
2645 relnum = shdr->sh_size / relsize;
3049 Shdr *shdr = _cache->c_shdr;
3052 if (shdr->sh_type != SHT_DYNAMIC)
3062 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) {
3070 numdyn = shdr->sh_size / shdr->sh_entsize;
3428 Shdr *shdr = _cache->c_shdr;
3432 if (shdr->sh_type != SHT_SUNW_move)
3434 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
3440 if ((shdr->sh_entsize == 0) || (shdr->sh_size == 0)) {
3449 movenum = shdr->sh_size / shdr->sh_entsize;
3805 Shdr *shdr = _cache->c_shdr;
3807 if (shdr->sh_type != SHT_NOTE)
3810 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
3824 if (shdr->sh_offset & (sizeof (Word) - 1))
3858 Shdr *shdr = _cache->c_shdr;
3864 if ((shdr->sh_type != SHT_NOTE) ||
4103 Shdr *shdr = _cache->c_shdr;
4110 if (shdr->sh_type != SHT_GROUP)
4112 if (!match(MATCH_F_ALL, _cache->c_name, scnt, shdr->sh_type))
4117 grpcnt = shdr->sh_size / sizeof (Word);
4137 if ((shdr->sh_info == SHN_UNDEF) || (shdr->sh_info > symnum)) {
4139 file, _cache->c_name, EC_WORD(shdr->sh_info));
4155 sym = (Sym *)(syms + shdr->sh_info);
4275 Shdr *shdr;
4277 shdr = _cache->c_shdr;
4278 type = shdr->sh_type;
4294 if (((relsize = shdr->sh_entsize) == 0) ||
4295 (relsize > shdr->sh_size)) {
4305 if (shdr->sh_size == 0) {
4314 relnum = shdr->sh_size / relsize;
4682 Shdr *shdr = _cache->c_shdr;
4683 Off bgn1, bgn = shdr->sh_offset;
4684 Off end1, end = shdr->sh_offset + shdr->sh_size;
4813 Shdr *shdr;
4850 if ((shdr = elf_getshdr(scn)) == NULL) {
4856 shdr = NULL;
4862 Elf_ehdr(0, ehdr, shdr);