Home
last modified time | relevance | path

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

123

/linux/tools/perf/util/
H 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()
269 shdr->sh_type = SHT_PROGBITS; in jit_write_elf()
319 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
355 shdr->sh_type = SHT_SYMTAB; in jit_write_elf()
400 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
444 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/tools/lib/bpf/
H A Delf.c62 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
69 if (sh.sh_type == sh_type) in elf_find_next_scn_by_type()
98 int sh_type, int st_type) in elf_sym_iter_new() argument
111 scn = elf_find_next_scn_by_type(elf, sh_type, NULL); in elf_sym_iter_new()
133 if (sh_type != SHT_DYNSYM) in elf_sym_iter_new()
223 static bool symbol_match(struct elf_sym_iter *iter, int sh_type, struct elf_sym *sym, in symbol_match() argument
247 if (sh_type == SHT_DYNSYM) { in symbol_match()
H A Dlinker.c418 sec->shdr->sh_type = SHT_STRTAB; in init_output_elf()
458 sec->shdr->sh_type = SHT_SYMTAB; in init_output_elf()
611 if (shdr->sh_type == SHT_STRTAB) in is_ignored_sec()
615 if (shdr->sh_type == SHT_LLVM_ADDRSIG) in is_ignored_sec()
619 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size == 0 && in is_ignored_sec()
769 switch (shdr->sh_type) { in linker_load_obj_file()
874 switch (sec->shdr->sh_type) { in linker_sanity_check_elf()
903 sec->sec_idx, sec->sec_name, (size_t)sec->shdr->sh_type, obj->filename); in linker_sanity_check_elf()
928 if (link_sec->shdr->sh_type != SHT_STRTAB) { in linker_sanity_check_elf_symtab()
1024 if (link_sec->shdr->sh_type != SHT_PROGBITS && link_sec->shdr->sh_type != SHT_NOBITS) { in linker_sanity_check_elf_relos()
[all …]
/linux/arch/loongarch/kernel/
H A Dmodule-sections.c144 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
155 got_sec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
163 plt_sec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
171 plt_idx_sec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
179 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux/arch/arm64/kernel/
H A Dmodule-plts.c304 else if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections()
322 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
347 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
355 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
363 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections()
370 init_tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux/arch/mips/vdso/
H A Dgenvdso.h31 switch (swap_uint32(shdr->sh_type)) { in patch_vdso()
50 shdr->sh_type = swap_uint32(SHT_MIPS_ABIFLAGS); in patch_vdso()
76 if (swap_uint32(shdr->sh_type) == SHT_SYMTAB) in get_symbols()
/linux/arch/riscv/kernel/
H A Dmodule-sections.c158 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
192 mod->arch.plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
199 mod->arch.got.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
206 mod->arch.got_plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux/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/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/arch/mips/boot/tools/
H A Drelocs.c281 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
302 if (sec->shdr.sh_type != SHT_STRTAB) in read_strtabs()
326 if (sec->shdr.sh_type != SHT_SYMTAB) in read_symtabs()
370 if (sec->shdr.sh_type != SHT_REL_TYPE) in read_relocs()
416 if (sec->shdr.sh_type != SHT_REL_TYPE) in remove_relocs()
483 if (sec->shdr.sh_type != SHT_REL_TYPE) in walk_relocs()
/linux/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/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/arch/mips/kernel/
H A Dvpe.c621 if ((sechdrs[i].sh_type != SHT_NOBITS) && in vpe_elfload()
634 if (sechdrs[i].sh_type == SHT_SYMTAB) { in vpe_elfload()
659 if (sechdrs[i].sh_type != SHT_NOBITS) in vpe_elfload()
687 if (sechdrs[i].sh_type == SHT_REL) in vpe_elfload()
690 else if (sechdrs[i].sh_type == SHT_RELA) in vpe_elfload()
714 if (sechdrs[i].sh_type == SHT_SYMTAB) { in vpe_elfload()
/linux/kernel/
H A Dkexec_file.c908 if (sechdrs[i].sh_type != SHT_SYMTAB) in kexec_purgatory_find_symbol()
967 if (sechdrs[i].sh_type != SHT_NOBITS) { in kexec_purgatory_setup_kbuf()
1052 if (sechdrs[i].sh_type == SHT_NOBITS) { in kexec_purgatory_setup_sechdrs()
1115 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations()
1116 relsec->sh_type != SHT_REL) in kexec_apply_relocations()
1147 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations()
1150 else if (relsec->sh_type == SHT_REL) in kexec_apply_relocations()
1246 if (sec->sh_type == SHT_NOBITS) { in kexec_purgatory_get_set_symbol()
/linux/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/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/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/scripts/mod/
H A Dmodpost.c495 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
509 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
529 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
542 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
776 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
1441 if (sechdr->sh_type == SHT_REL || sechdr->sh_type == SHT_RELA) { in check_sec_ref()
1454 if (sechdr->sh_type == SHT_RELA) in check_sec_ref()
/linux/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/scripts/gendwarfksyms/
H A Dsymbols.c219 if (shdr->sh_type == SHT_SYMTAB_SHNDX) { in elf_for_each_global()
237 if (shdr->sh_type == SHT_SYMTAB) { in elf_for_each_global()
/linux/tools/include/uapi/linux/
H A Delf.h318 Elf32_Word sh_type; member
331 Elf64_Word sh_type; /* Type of section */ member
/linux/arch/parisc/kernel/
H A 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/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dgh100.c210 if (shdr[i].sh_type != SHT_STRTAB) in elf_validate_sections()
215 if (shdr[i].sh_type != SHT_PROGBITS) in elf_validate_sections()
/linux/include/uapi/linux/
H A Delf.h328 Elf32_Word sh_type; member
341 Elf64_Word sh_type; /* Type of section */ member

123