Home
last modified time | relevance | path

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

123

/linux-6.15/tools/lib/bpf/
H 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()
H 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 …]
/linux-6.15/arch/loongarch/kernel/
H A 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.15/tools/perf/util/
H A 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()
H 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()
/linux-6.15/arch/riscv/kernel/
H A Dmodule-sections.c129 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
139 mod->arch.plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
146 mod->arch.got.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
153 mod->arch.got_plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux-6.15/arch/mips/vdso/
H A 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.15/arch/arm64/kernel/
H A 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.15/arch/x86/tools/
H A Drelocs.c430 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
452 if (sec->shdr.sh_type != SHT_STRTAB) in read_strtabs()
475 switch (sec->shdr.sh_type) { in read_symtabs()
528 if (sec->shdr.sh_type != SHT_REL_TYPE) in read_relocs()
572 if (sec->shdr.sh_type != SHT_SYMTAB) in print_absolute_symbols()
615 if (sec->shdr.sh_type != SHT_REL_TYPE) in print_absolute_relocs()
628 if (sec_applies->shdr.sh_type == SHT_NOTE) in print_absolute_relocs()
709 if (sec->shdr.sh_type != SHT_REL_TYPE) in walk_relocs()
722 if (sec_applies->shdr.sh_type == SHT_NOTE) in walk_relocs()
/linux-6.15/arch/arm/kernel/
H A 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.15/arch/mips/boot/tools/
H A 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()
482 if (sec->shdr.sh_type != SHT_REL_TYPE) in walk_relocs()
/linux-6.15/scripts/
H A 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()
/linux-6.15/arch/alpha/kernel/
H A 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.15/kernel/
H A Dkexec_file.c864 if (sechdrs[i].sh_type != SHT_NOBITS) { in kexec_purgatory_setup_kbuf()
939 if (sechdrs[i].sh_type == SHT_NOBITS) { in kexec_purgatory_setup_sechdrs()
994 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations()
995 relsec->sh_type != SHT_REL) in kexec_apply_relocations()
1026 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations()
1029 else if (relsec->sh_type == SHT_REL) in kexec_apply_relocations()
1105 if (sechdrs[i].sh_type != SHT_SYMTAB) in kexec_purgatory_find_symbol()
1180 if (sec->sh_type == SHT_NOBITS) { in kexec_purgatory_get_set_symbol()
/linux-6.15/arch/mips/kernel/
H A 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.15/arch/s390/tools/
H A 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.15/arch/sh/kernel/
H A 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.15/arch/sh/include/asm/
H A Dhw_breakpoint.h55 extern int arch_bp_generic_fields(int sh_len, int sh_type, int *gen_len,
/linux-6.15/kernel/module/
H A 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()
232 if (!sect_empty(sechdr) && sechdr->sh_type == SHT_NOTE && in init_build_id()
/linux-6.15/scripts/mod/
H A Dmodpost.c493 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
507 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
527 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
540 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
765 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
1430 if (sechdr->sh_type == SHT_REL || sechdr->sh_type == SHT_RELA) { in check_sec_ref()
1443 if (sechdr->sh_type == SHT_RELA) in check_sec_ref()
/linux-6.15/tools/include/uapi/linux/
H A Delf.h318 Elf32_Word sh_type; member
331 Elf64_Word sh_type; /* Type of section */ member
/linux-6.15/scripts/gendwarfksyms/
H A Dsymbols.c216 if (shdr->sh_type == SHT_SYMTAB_SHNDX) { in elf_for_each_global()
234 if (shdr->sh_type == SHT_SYMTAB) { in elf_for_each_global()
/linux-6.15/arch/arm64/kernel/pi/
H A Drelacheck.c83 if (swab_elfword(shdr[i].sh_type) != SHT_RELA) in main()
/linux-6.15/tools/testing/selftests/sgx/
H 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()
/linux-6.15/tools/objtool/include/objtool/
H A Delf.h181 return sec->sh.sh_type == SHT_RELA || sec->sh.sh_type == SHT_REL; in is_reloc_sec()

123