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