Lines Matching refs:sh_size
286 symtab->shdr->sh_size += sizeof(*sym);
376 sec->shdr->sh_size = sec->sec_sz = 0;
493 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size == 0 &&
656 obj->btf = btf__new(data->d_buf, shdr->sh_size);
666 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size);
727 if (sec->shdr->sh_size != sec->data->d_size)
740 if (sec->shdr->sh_size % sizeof(struct bpf_insn) != 0)
771 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0)
786 n = sec->shdr->sh_size / sec->shdr->sh_entsize;
845 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0)
883 n = sec->shdr->sh_size / sec->shdr->sh_entsize;
897 if (!sym_idx || sym_idx * sizeof(Elf64_Sym) >= sym_sec->shdr->sh_size) {
1015 shdr->sh_size = 0;
1072 if (dst_sec->sec_sz != src_sec->shdr->sh_size)
1114 dst_final_sz = dst_align_sz + src->shdr->sh_size;
1137 memcpy(dst->raw_data + dst_align_sz, src->data->d_buf, src->shdr->sh_size);
1141 dst->shdr->sh_size = dst_final_sz;
1225 int i, n = symtab->shdr->sh_size / symtab->shdr->sh_entsize, err;
2058 n = src_sec->shdr->sh_size / src_sec->shdr->sh_entsize;
2107 int i, n = symtab->shdr->sh_size / symtab->shdr->sh_entsize;
2153 t->size = sec->shdr->sh_size;
2578 sec->shdr->sh_size = strs_sz;
2642 shdr->sh_size = raw_sz;