Home
last modified time | relevance | path

Searched refs:sh_type (Results 1 – 14 of 14) sorted by relevance

/tools/perf/util/
A Dgenelf.c113 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
147 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
249 shdr->sh_type = SHT_PROGBITS; in jit_write_elf()
296 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
332 shdr->sh_type = SHT_SYMTAB; in jit_write_elf()
375 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
417 shdr->sh_type = SHT_NOTE; in jit_write_elf()
A Dgenelf_debug.c539 shdr->sh_type = SHT_PROGBITS; in jit_add_debug_info()
573 shdr->sh_type = SHT_PROGBITS; in jit_add_debug_info()
607 shdr->sh_type = SHT_PROGBITS; in jit_add_debug_info()
A Dsymbol-elf.c685 if (shdr_rel_plt.sh_type != SHT_RELA && in dso__synthesize_plt_symbols()
686 shdr_rel_plt.sh_type != SHT_REL) in dso__synthesize_plt_symbols()
734 ri.is_rela = shdr_rel_plt.sh_type == SHT_RELA; in dso__synthesize_plt_symbols()
1164 if (shdr.sh_type == SHT_NOBITS) { in read_gnu_debugdata()
1292 if (ss->symshdr.sh_type != SHT_SYMTAB) in symsrc__init()
1298 if (ss->dynshdr.sh_type != SHT_DYNSYM) in symsrc__init()
1304 if (ss->opdshdr.sh_type != SHT_PROGBITS) in symsrc__init()
1723 if (shdr.sh_type == SHT_NOBITS) { in dso__load_sym_internal()
2903 if ((shdr.sh_type != SHT_NOTE) || (shdr.sh_flags & SHF_ALLOC)) { in construct_sdt_notes_list()
A Dprobe-finder.c1159 shdr.sh_type == SHT_PROGBITS) in debuginfo__find_probes()
/tools/lib/bpf/
A Delf.c63 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) in elf_find_next_scn_by_type() argument
70 if (sh.sh_type == sh_type) in elf_find_next_scn_by_type()
99 int sh_type, int st_type) in elf_sym_iter_new() argument
112 scn = elf_find_next_scn_by_type(elf, sh_type, NULL); in elf_sym_iter_new()
134 if (sh_type != SHT_DYNSYM) in elf_sym_iter_new()
224 static bool symbol_match(struct elf_sym_iter *iter, int sh_type, struct elf_sym *sym, in symbol_match() argument
248 if (sh_type == SHT_DYNSYM) { in symbol_match()
A Dlinker.c419 sec->shdr->sh_type = SHT_STRTAB; in init_output_elf()
459 sec->shdr->sh_type = SHT_SYMTAB; in init_output_elf()
612 if (shdr->sh_type == SHT_STRTAB) in is_ignored_sec()
616 if (shdr->sh_type == SHT_LLVM_ADDRSIG) in is_ignored_sec()
770 switch (shdr->sh_type) { in linker_load_obj_file()
875 switch (sec->shdr->sh_type) { in linker_sanity_check_elf()
1025 if (link_sec->shdr->sh_type != SHT_PROGBITS && link_sec->shdr->sh_type != SHT_NOBITS) { in linker_sanity_check_elf_relos()
1176 shdr->sh_type = src_sec->shdr->sh_type; in init_sec()
1217 if (dst->shdr->sh_type != src->shdr->sh_type) { in secs_match()
1344 return sec->shdr->sh_type == SHT_PROGBITS || sec->shdr->sh_type == SHT_NOBITS; in is_data_sec()
[all …]
A Dlibbpf.c3770 if (hdr->sh_type == SHT_STRTAB) in ignore_elf_section()
3774 if (hdr->sh_type == SHT_LLVM_ADDRSIG) in ignore_elf_section()
3778 if (hdr->sh_type == SHT_PROGBITS && hdr->sh_size == 0 && in ignore_elf_section()
3848 if (sh->sh_type == SHT_SYMTAB) { in bpf_object__elf_collect()
3895 (int)sh->sh_type); in bpf_object__elf_collect()
3911 if (sh->sh_type != SHT_PROGBITS) in bpf_object__elf_collect()
3915 if (sh->sh_type != SHT_PROGBITS) in bpf_object__elf_collect()
3918 } else if (sh->sh_type == SHT_SYMTAB) { in bpf_object__elf_collect()
3920 } else if (sh->sh_type == SHT_PROGBITS && data->d_size > 0) { in bpf_object__elf_collect()
3952 } else if (sh->sh_type == SHT_REL) { in bpf_object__elf_collect()
[all …]
A Dusdt.c603 if (notes_shdr.sh_type != SHT_NOTE || !gelf_getehdr(elf, &ehdr)) { in collect_usdt_targets()
A Dbtf.c1172 if (sh.sh_type != SHT_PROGBITS) { in btf_find_elf_sections()
1174 sh.sh_type, idx, name, path); in btf_find_elf_sections()
/tools/include/uapi/linux/
A Delf.h318 Elf32_Word sh_type; member
331 Elf64_Word sh_type; /* Type of section */ member
/tools/testing/selftests/sgx/
A Dload.c150 if (sections[i].sh_type == SHT_SYMTAB) { in encl_get_entry()
158 if (sections[i].sh_type == SHT_STRTAB) { in encl_get_entry()
/tools/objtool/include/objtool/
A Delf.h182 return sec->sh.sh_type == SHT_RELA || sec->sh.sh_type == SHT_REL; in is_reloc_sec()
/tools/bpf/resolve_btfids/
A Dmain.c403 (int) sh.sh_type); in elf_collect()
405 if (sh.sh_type == SHT_SYMTAB) { in elf_collect()
/tools/objtool/
A Delf.c587 if (sec->sh.sh_type == SHT_GROUP && in mark_group_syms()
1176 sec->sh.sh_type = SHT_PROGBITS; in elf_create_section()
1222 rsec->sh.sh_type = SHT_RELA; in elf_create_rela_section()

Completed in 65 milliseconds