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);
738 if (sec->shdr->sh_size != sec->data->d_size) {
740 sec->sec_idx, (long long unsigned)sec->shdr->sh_size,
755 if (sec->shdr->sh_size % sizeof(struct bpf_insn) != 0) {
757 sec->sec_idx, (long long unsigned)sec->shdr->sh_size,
790 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0)
805 n = sec->shdr->sh_size / sec->shdr->sh_entsize;
864 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0)
902 n = sec->shdr->sh_size / sec->shdr->sh_entsize;
916 if (!sym_idx || sym_idx * sizeof(Elf64_Sym) >= sym_sec->shdr->sh_size) {
1034 shdr->sh_size = 0;
1091 if (dst_sec->sec_sz != src_sec->shdr->sh_size)
1133 dst_final_sz = dst_align_sz + src->shdr->sh_size;
1156 memcpy(dst->raw_data + dst_align_sz, src->data->d_buf, src->shdr->sh_size);
1160 dst->shdr->sh_size = dst_final_sz;
1244 int i, n = symtab->shdr->sh_size / symtab->shdr->sh_entsize, err;
2077 n = src_sec->shdr->sh_size / src_sec->shdr->sh_entsize;
2126 int i, n = symtab->shdr->sh_size / symtab->shdr->sh_entsize;
2172 t->size = sec->shdr->sh_size;
2597 sec->shdr->sh_size = strs_sz;
2661 shdr->sh_size = raw_sz;