Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/lib/bpf/
Delf.c65 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
72 if (sh.sh_type == sh_type) in elf_find_next_scn_by_type()
101 int sh_type, int st_type) in elf_sym_iter_new() argument
114 scn = elf_find_next_scn_by_type(elf, sh_type, NULL); in elf_sym_iter_new()
136 if (sh_type != SHT_DYNSYM) in elf_sym_iter_new()
226 static bool symbol_match(struct elf_sym_iter *iter, int sh_type, struct elf_sym *sym, in symbol_match() argument
250 if (sh_type == SHT_DYNSYM) { in symbol_match()
Dlinker.c370 sec->shdr->sh_type = SHT_STRTAB; in init_output_elf()
408 sec->shdr->sh_type = SHT_SYMTAB; in init_output_elf()
485 if (shdr->sh_type == SHT_STRTAB) in is_ignored_sec()
489 if (shdr->sh_type == SHT_LLVM_ADDRSIG) in is_ignored_sec()
493 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size == 0 && in is_ignored_sec()
642 switch (shdr->sh_type) { in linker_load_obj_file()
745 switch (sec->shdr->sh_type) { in linker_sanity_check_elf()
774 sec->sec_idx, sec->sec_name, (size_t)sec->shdr->sh_type, obj->filename); in linker_sanity_check_elf()
799 if (link_sec->shdr->sh_type != SHT_STRTAB) { in linker_sanity_check_elf_symtab()
895 if (link_sec->shdr->sh_type != SHT_PROGBITS && link_sec->shdr->sh_type != SHT_NOBITS) { in linker_sanity_check_elf_relos()
[all …]
/linux-6.12.1/arch/loongarch/kernel/
Dmodule-sections.c143 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
154 got_sec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
162 plt_sec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
170 plt_idx_sec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
178 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux-6.12.1/tools/perf/util/
Dgenelf.c192 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
226 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
328 shdr->sh_type = SHT_PROGBITS; in jit_write_elf()
375 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
411 shdr->sh_type = SHT_SYMTAB; in jit_write_elf()
454 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
496 shdr->sh_type = SHT_NOTE; in jit_write_elf()
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()
/linux-6.12.1/arch/riscv/kernel/
Dmodule-sections.c128 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
138 mod->arch.plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
145 mod->arch.got.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
152 mod->arch.got_plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux-6.12.1/arch/mips/vdso/
Dgenvdso.h31 switch (swap_uint32(shdr->sh_type)) { in FUNC()
50 shdr->sh_type = swap_uint32(SHT_MIPS_ABIFLAGS); in FUNC()
76 if (swap_uint32(shdr->sh_type) == SHT_SYMTAB) in FUNC()
/linux-6.12.1/arch/arm64/kernel/
Dmodule-plts.c301 else if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections()
319 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
344 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
352 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
360 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux-6.12.1/arch/x86/tools/
Drelocs.c298 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup()
455 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
477 if (sec->shdr.sh_type != SHT_STRTAB) in read_strtabs()
500 switch (sec->shdr.sh_type) { in read_symtabs()
553 if (sec->shdr.sh_type != SHT_REL_TYPE) in read_relocs()
597 if (sec->shdr.sh_type != SHT_SYMTAB) in print_absolute_symbols()
640 if (sec->shdr.sh_type != SHT_REL_TYPE) in print_absolute_relocs()
653 if (sec_applies->shdr.sh_type == SHT_NOTE) in print_absolute_relocs()
734 if (sec->shdr.sh_type != SHT_REL_TYPE) in walk_relocs()
747 if (sec_applies->shdr.sh_type == SHT_NOTE) in walk_relocs()
/linux-6.12.1/arch/arm/kernel/
Dmodule-plts.c226 else if (s->sh_type == SHT_SYMTAB) in module_frob_arch_sections()
244 if (s->sh_type != SHT_REL) in module_frob_arch_sections()
262 mod->arch.core.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
270 mod->arch.init.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux-6.12.1/arch/mips/boot/tools/
Drelocs.c280 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
301 if (sec->shdr.sh_type != SHT_STRTAB) in read_strtabs()
325 if (sec->shdr.sh_type != SHT_SYMTAB) in read_symtabs()
369 if (sec->shdr.sh_type != SHT_REL_TYPE) in read_relocs()
415 if (sec->shdr.sh_type != SHT_REL_TYPE) in remove_relocs()
480 if (sec->shdr.sh_type != SHT_REL_TYPE) in walk_relocs()
/linux-6.12.1/scripts/
Drecordmcount.h247 if (relhdr->sh_type == SHT_SYMTAB) in find_symtab()
249 else if (relhdr->sh_type == SHT_SYMTAB_SHNDX) in find_symtab()
309 mcsec.sh_type = w(SHT_PROGBITS); in append_func()
322 mcsec.sh_type = (sizeof(Elf_Rela) == rel_entsize) in append_func()
567 if (w(txthdr->sh_type) != SHT_PROGBITS || in __has_rel_mcount()
578 if (w(relhdr->sh_type) != SHT_REL && w(relhdr->sh_type) != SHT_RELA) in has_rel_mcount()
Dsorttable.h317 if ((r(&s->sh_type) == SHT_REL || in do_sort()
318 r(&s->sh_type) == SHT_RELA) && in do_sort()
323 if (r(&s->sh_type) == SHT_SYMTAB_SHNDX) in do_sort()
/linux-6.12.1/kernel/
Dkexec_file.c852 if (sechdrs[i].sh_type != SHT_NOBITS) { in kexec_purgatory_setup_kbuf()
927 if (sechdrs[i].sh_type == SHT_NOBITS) { in kexec_purgatory_setup_sechdrs()
982 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations()
983 relsec->sh_type != SHT_REL) in kexec_apply_relocations()
1014 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations()
1017 else if (relsec->sh_type == SHT_REL) in kexec_apply_relocations()
1093 if (sechdrs[i].sh_type != SHT_SYMTAB) in kexec_purgatory_find_symbol()
1168 if (sec->sh_type == SHT_NOBITS) { in kexec_purgatory_get_set_symbol()
/linux-6.12.1/arch/alpha/kernel/
Dmodule.c79 if (s->sh_type == SHT_SYMTAB) in module_frob_arch_sections()
106 got->sh_type = SHT_NOBITS; in module_frob_arch_sections()
111 if (s->sh_type == SHT_RELA) { in module_frob_arch_sections()
/linux-6.12.1/arch/mips/kernel/
Dvpe.c620 if ((sechdrs[i].sh_type != SHT_NOBITS) && in vpe_elfload()
633 if (sechdrs[i].sh_type == SHT_SYMTAB) { in vpe_elfload()
658 if (sechdrs[i].sh_type != SHT_NOBITS) in vpe_elfload()
686 if (sechdrs[i].sh_type == SHT_REL) in vpe_elfload()
689 else if (sechdrs[i].sh_type == SHT_RELA) in vpe_elfload()
713 if (sechdrs[i].sh_type == SHT_SYMTAB) { in vpe_elfload()
/linux-6.12.1/arch/s390/tools/
Drelocs.c203 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
226 if (sec->shdr.sh_type != SHT_REL_TYPE) in read_relocs()
303 if (sec->shdr.sh_type != SHT_REL_TYPE) in walk_relocs()
/linux-6.12.1/arch/sh/kernel/
Dhw_breakpoint.c135 int arch_bp_generic_fields(int sh_len, int sh_type, in arch_bp_generic_fields() argument
157 switch (sh_type) { in arch_bp_generic_fields()
/linux-6.12.1/arch/sh/include/asm/
Dhw_breakpoint.h55 extern int arch_bp_generic_fields(int sh_len, int sh_type, int *gen_len,
/linux-6.12.1/kernel/module/
Dkallsyms.c57 sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { in elf_type()
65 if (sechdrs[sym->st_shndx].sh_type == SHT_NOBITS) { in elf_type()
235 if (!sect_empty(sechdr) && sechdr->sh_type == SHT_NOTE && in init_build_id()
/linux-6.12.1/include/uapi/linux/
Delf.h310 Elf32_Word sh_type; member
323 Elf64_Word sh_type; /* Type of section */ member
/linux-6.12.1/scripts/mod/
Dmodpost.c489 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
503 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
520 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
533 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
758 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
1423 if (sechdr->sh_type == SHT_REL || sechdr->sh_type == SHT_RELA) { in check_sec_ref()
1436 if (sechdr->sh_type == SHT_RELA) in check_sec_ref()
/linux-6.12.1/arch/parisc/kernel/
Dmodule.c290 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
860 if(sechdrs[i].sh_type == SHT_SYMTAB in module_finalize()
927 if (s->sh_type == SHT_REL) in module_finalize()
931 else if (s->sh_type == SHT_RELA) in module_finalize()
/linux-6.12.1/arch/powerpc/kernel/
Dmodule_64.c216 if (sechdrs[i].sh_type == SHT_RELA) { in get_stubs_size()
297 if (sechdrs[i].sh_type == SHT_SYMTAB) { in get_got_size()
306 if (sechdrs[i].sh_type == SHT_RELA) { in get_got_size()
432 if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections()
/linux-6.12.1/tools/testing/selftests/sgx/
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()

12