Home
last modified time | relevance | path

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

12

/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/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/arm/kernel/
H A Dmodule-plts.c226 else if (s->sh_type == SHT_SYMTAB) in module_frob_arch_sections()
229 else if (s->sh_type == ELF_SECTION_UNWIND || in module_frob_arch_sections()
256 if (s->sh_type != SHT_REL) in module_frob_arch_sections()
274 mod->arch.core.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
282 mod->arch.init.plt->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 FUNC()
50 shdr->sh_type = swap_uint32(SHT_MIPS_ABIFLAGS); in FUNC()
76 if (swap_uint32(shdr->sh_type) == SHT_SYMTAB) in FUNC()
/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/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/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/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/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/tools/lib/bpf/
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/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.c500 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
514 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
534 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
547 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
781 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
1446 if (sechdr->sh_type == SHT_REL || sechdr->sh_type == SHT_RELA) { in check_sec_ref()
1459 if (sechdr->sh_type == SHT_RELA) in check_sec_ref()
/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/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/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/tools/objtool/include/objtool/
H A Delf.h286 return sec->sh.sh_type == SHT_RELA || sec->sh.sh_type == SHT_REL; in set_reloc_sym()
/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/arch/arm64/kernel/pi/
H A Drelacheck.c83 if (swab_elfword(shdr[i].sh_type) != SHT_RELA) in main()
/linux/arch/powerpc/kernel/
H A Dmodule_64.c217 if (sechdrs[i].sh_type == SHT_RELA) { in get_stubs_size()
306 if (sechdrs[i].sh_type == SHT_SYMTAB) { in get_got_size()
315 if (sechdrs[i].sh_type == SHT_RELA) { in get_got_size()
461 if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections()
/linux/kernel/module/
H A Dsysfs.c163 info->sechdrs[i].sh_type == SHT_NOTE) in add_notes_attrs()
186 if (info->sechdrs[i].sh_type == SHT_NOTE) { in add_notes_attrs()

12