Lines Matching refs:sh_size

351 	symtab->shdr->sh_size += sizeof(*sym);  in add_new_sym()
425 sec->shdr->sh_size = sec->sec_sz = 0; in init_output_elf()
620 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size == 0 && in is_ignored_sec()
784 obj->btf = btf__new(data->d_buf, shdr->sh_size); in linker_load_obj_file()
795 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size); in linker_load_obj_file()
868 if (sec->shdr->sh_size != sec->data->d_size) { in linker_sanity_check_elf()
870 sec->sec_idx, (long long unsigned)sec->shdr->sh_size, in linker_sanity_check_elf()
885 if (sec->shdr->sh_size % sizeof(struct bpf_insn) != 0) { in linker_sanity_check_elf()
887 sec->sec_idx, (long long unsigned)sec->shdr->sh_size, in linker_sanity_check_elf()
920 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_symtab()
935 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_symtab()
994 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_relos()
1032 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_relos()
1046 if (!sym_idx || sym_idx * sizeof(Elf64_Sym) >= sym_sec->shdr->sh_size) { in linker_sanity_check_elf_relos()
1178 shdr->sh_size = 0; in init_sec()
1235 if (dst_sec->sec_sz != src_sec->shdr->sh_size) in sec_content_is_same()
1295 dst_final_sz = dst_align_sz + src->shdr->sh_size; in extend_sec()
1318 memcpy(dst->raw_data + dst_align_sz, src->data->d_buf, src->shdr->sh_size); in extend_sec()
1322 exec_sec_bswap(dst->raw_data + dst_align_sz, src->shdr->sh_size); in extend_sec()
1326 dst->shdr->sh_size = dst_final_sz; in extend_sec()
1410 int i, n = symtab->shdr->sh_size / symtab->shdr->sh_entsize, err; in linker_append_elf_syms()
2243 n = src_sec->shdr->sh_size / src_sec->shdr->sh_entsize; in linker_append_elf_relos()
2292 int i, n = symtab->shdr->sh_size / symtab->shdr->sh_entsize; in find_sym_by_name()
2338 t->size = sec->shdr->sh_size; in linker_fixup_btf()
2774 sec->shdr->sh_size = strs_sz; in bpf_linker__finalize()
2843 shdr->sh_size = raw_sz; in emit_elf_data_sec()