/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | module-sections.c | 143 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()
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | module-sections.c | 143 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()
|
/kernel/linux/linux-5.10/arch/mips/vdso/ |
H A D | genvdso.h | 31 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()
|
/kernel/linux/linux-6.6/arch/mips/vdso/ |
H A D | genvdso.h | 31 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()
|
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
H A D | module-sections.c | 128 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()
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | module-sections.c | 128 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()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | elf.c | 49 /* Return next ELF section of sh_type after scn, or first of that type if scn is NULL. */ 50 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 57 if (sh.sh_type == sh_type) in elf_find_next_scn_by_type() 81 int sh_type, int st_type) in elf_sym_iter_new() 94 scn = elf_find_next_scn_by_type(elf, sh_type, NULL); in elf_sym_iter_new() 79 elf_sym_iter_new(struct elf_sym_iter *iter, Elf *elf, const char *binary_path, int sh_type, int st_type) elf_sym_iter_new() argument
|
H A D | linker.c | 370 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() 730 switch (sec->shdr->sh_type) { in linker_sanity_check_elf() 755 sec->sec_idx, sec->sec_name, (size_t)sec->shdr->sh_type, obj->filename); in linker_sanity_check_elf() 780 if (link_sec->shdr->sh_type != SHT_STRTAB) { in linker_sanity_check_elf_symtab() 876 if (link_sec->shdr->sh_type ! in linker_sanity_check_elf_relos() [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | genelf.c | 195 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info() 229 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info() 331 shdr->sh_type = SHT_PROGBITS; in jit_write_elf() 377 shdr->sh_type = SHT_STRTAB; in jit_write_elf() 413 shdr->sh_type = SHT_SYMTAB; in jit_write_elf() 456 shdr->sh_type = SHT_STRTAB; in jit_write_elf() 498 shdr->sh_type = SHT_NOTE; in jit_write_elf()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | genelf.c | 197 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info() 231 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info() 333 shdr->sh_type = SHT_PROGBITS; in jit_write_elf() 380 shdr->sh_type = SHT_STRTAB; in jit_write_elf() 416 shdr->sh_type = SHT_SYMTAB; in jit_write_elf() 459 shdr->sh_type = SHT_STRTAB; in jit_write_elf() 501 shdr->sh_type = SHT_NOTE; in jit_write_elf()
|
/kernel/linux/linux-6.6/arch/x86/tools/ |
H A D | relocs.c | 294 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup() 456 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs() 476 if (sec->shdr.sh_type != SHT_STRTAB) { in read_strtabs() 504 switch (sec->shdr.sh_type) { in read_symtabs() 563 if (sec->shdr.sh_type != SHT_REL_TYPE) { in read_relocs() 609 if (sec->shdr.sh_type != SHT_SYMTAB) { in print_absolute_symbols() 648 if (sec->shdr.sh_type != SHT_REL_TYPE) { in print_absolute_relocs() 661 if (sec_applies->shdr.sh_type == SHT_NOTE) { in print_absolute_relocs() 741 if (sec->shdr.sh_type ! in walk_relocs() [all...] |
/kernel/linux/linux-5.10/arch/mips/boot/tools/ |
H A D | relocs.c | 280 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()
|
/kernel/linux/linux-6.6/arch/mips/boot/tools/ |
H A D | relocs.c | 280 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()
|
/kernel/linux/linux-5.10/scripts/ |
H A D | recordmcount.h | 247 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() 558 /* .sh_info depends on .sh_type == SHT_REL[,A] */ in __has_rel_mcount() 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()
|
/kernel/linux/linux-6.6/scripts/ |
H A D | recordmcount.h | 247 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() 558 /* .sh_info depends on .sh_type == SHT_REL[,A] */ in __has_rel_mcount() 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()
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | module-plts.c | 231 else if (s->sh_type == SHT_SYMTAB) in module_frob_arch_sections() 249 if (s->sh_type != SHT_REL) in module_frob_arch_sections() 267 mod->arch.core.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections() 275 mod->arch.init.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | module-plts.c | 226 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()
|
/kernel/linux/linux-5.10/arch/x86/tools/ |
H A D | relocs.c | 283 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup() 428 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs() 448 if (sec->shdr.sh_type != SHT_STRTAB) { in read_strtabs() 473 if (sec->shdr.sh_type != SHT_SYMTAB) { in read_symtabs() 506 if (sec->shdr.sh_type != SHT_REL_TYPE) { in read_relocs() 552 if (sec->shdr.sh_type != SHT_SYMTAB) { in print_absolute_symbols() 591 if (sec->shdr.sh_type != SHT_REL_TYPE) { in print_absolute_relocs() 676 if (sec->shdr.sh_type != SHT_REL_TYPE) { in walk_relocs()
|
/kernel/linux/linux-5.10/arch/loongarch/boot/tools/ |
H A D | relocs.c | 210 if (sec->shdr.sh_type != SHT_STRTAB) in read_strtabs() 234 if (sec->shdr.sh_type != SHT_SYMTAB) in read_symtabs() 269 if (sec->shdr.sh_type != SHT_REL_TYPE) in read_relocs() 302 if (sec->shdr.sh_type != SHT_REL_TYPE) in remove_relocs() 367 if (sec->shdr.sh_type != SHT_REL_TYPE) in walk_relocs()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | module-plts.c | 312 else if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections() 330 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections() 355 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections() 363 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections() 371 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | module-plts.c | 302 else if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections() 320 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections() 345 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections() 353 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections() 361 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | kexec_file.c | 828 if (sechdrs[i].sh_type != SHT_NOBITS) { in kexec_purgatory_setup_kbuf() 903 if (sechdrs[i].sh_type == SHT_NOBITS) { in kexec_purgatory_setup_sechdrs() 958 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations() 959 relsec->sh_type != SHT_REL) in kexec_apply_relocations() 990 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations() 993 else if (relsec->sh_type == SHT_REL) in kexec_apply_relocations() 1069 if (sechdrs[i].sh_type != SHT_SYMTAB) in kexec_purgatory_find_symbol() 1144 if (sec->sh_type == SHT_NOBITS) { in kexec_purgatory_get_set_symbol()
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | vpe.c | 620 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()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
H A D | module.c | 79 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()
|
/kernel/linux/linux-6.6/arch/alpha/kernel/ |
H A D | module.c | 79 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()
|