/Linux-v6.1/tools/perf/util/ |
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()
|
D | genelf_debug.c | 528 shdr->sh_type = SHT_PROGBITS; in jit_add_debug_info() 562 shdr->sh_type = SHT_PROGBITS; in jit_add_debug_info() 596 shdr->sh_type = SHT_PROGBITS; in jit_add_debug_info()
|
/Linux-v6.1/arch/riscv/kernel/ |
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()
|
/Linux-v6.1/arch/loongarch/kernel/ |
D | module-sections.c | 138 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections() 148 mod->arch.got.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections() 155 mod->arch.plt.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections() 162 mod->arch.plt_idx.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
|
/Linux-v6.1/arch/mips/vdso/ |
D | genvdso.h | 31 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-v6.1/arch/arm64/kernel/ |
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()
|
/Linux-v6.1/arch/arm/kernel/ |
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()
|
/Linux-v6.1/scripts/ |
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() 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()
|
D | sorttable.h | 317 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-v6.1/arch/mips/boot/tools/ |
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()
|
/Linux-v6.1/arch/x86/tools/ |
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() 733 if (sec->shdr.sh_type != SHT_REL_TYPE) { in walk_relocs()
|
/Linux-v6.1/arch/alpha/kernel/ |
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()
|
/Linux-v6.1/arch/mips/kernel/ |
D | vpe.c | 621 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-v6.1/tools/lib/bpf/ |
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 != SHT_PROGBITS && link_sec->shdr->sh_type != SHT_NOBITS) { in linker_sanity_check_elf_relos() [all …]
|
/Linux-v6.1/kernel/ |
D | kexec_file.c | 819 if (sechdrs[i].sh_type != SHT_NOBITS) { in kexec_purgatory_setup_kbuf() 893 if (sechdrs[i].sh_type == SHT_NOBITS) { in kexec_purgatory_setup_sechdrs() 936 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations() 937 relsec->sh_type != SHT_REL) in kexec_apply_relocations() 968 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations() 971 else if (relsec->sh_type == SHT_REL) in kexec_apply_relocations() 1047 if (sechdrs[i].sh_type != SHT_SYMTAB) in kexec_purgatory_find_symbol() 1122 if (sec->sh_type == SHT_NOBITS) { in kexec_purgatory_get_set_symbol()
|
/Linux-v6.1/arch/sh/kernel/ |
D | hw_breakpoint.c | 135 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-v6.1/tools/objtool/ |
D | elf.c | 863 if ((sec->sh.sh_type != SHT_RELA) && in read_relocs() 864 (sec->sh.sh_type != SHT_REL)) in read_relocs() 884 switch (sec->sh.sh_type) { in read_relocs() 1073 sec->sh.sh_type = SHT_PROGBITS; in elf_create_section() 1119 sec->sh.sh_type = SHT_REL; in elf_create_rel_reloc_section() 1149 sec->sh.sh_type = SHT_RELA; in elf_create_rela_reloc_section() 1234 switch (sec->sh.sh_type) { in elf_rebuild_reloc_section() 1264 if (sec->sh.sh_type == SHT_REL) { in elf_write_reloc()
|
/Linux-v6.1/arch/ia64/kernel/ |
D | module.c | 455 if (s->sh_type != SHT_RELA) in module_frob_arch_sections() 466 mod->arch.core_plt->sh_type = SHT_NOBITS; in module_frob_arch_sections() 470 mod->arch.init_plt->sh_type = SHT_NOBITS; in module_frob_arch_sections() 474 mod->arch.got->sh_type = SHT_NOBITS; in module_frob_arch_sections() 478 mod->arch.opd->sh_type = SHT_NOBITS; in module_frob_arch_sections()
|
/Linux-v6.1/include/uapi/linux/ |
D | elf.h | 310 Elf32_Word sh_type; member 323 Elf64_Word sh_type; /* Type of section */ member
|
/Linux-v6.1/kernel/module/ |
D | kallsyms.c | 56 sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { in elf_type() 64 if (sechdrs[sym->st_shndx].sh_type == SHT_NOBITS) { in elf_type() 229 if (!sect_empty(sechdr) && sechdr->sh_type == SHT_NOTE && in init_build_id()
|
D | main.c | 1372 else if (info->sechdrs[i].sh_type == SHT_REL) in apply_relocations() 1375 else if (info->sechdrs[i].sh_type == SHT_RELA) in apply_relocations() 1710 pr_err("Invalid ELF section hdr(type %u)\n", strhdr->sh_type); in elf_validity_check() 1733 if (info->sechdrs[0].sh_type != SHT_NULL in elf_validity_check() 1737 info->sechdrs[0].sh_type); in elf_validity_check() 1743 switch (shdr->sh_type) { in elf_validity_check() 1760 i, shdr->sh_type); in elf_validity_check() 1767 i, shdr->sh_type); in elf_validity_check() 1910 if (info->sechdrs[i].sh_type == SHT_SYMTAB) { in setup_load_info() 2189 if (shdr->sh_type != SHT_NOBITS) in move_module()
|
D | sysfs.c | 186 info->sechdrs[i].sh_type == SHT_NOTE) in add_notes_attrs() 202 if (info->sechdrs[i].sh_type == SHT_NOTE) { in add_notes_attrs()
|
/Linux-v6.1/tools/testing/selftests/sgx/ |
D | load.c | 150 if (sections[i].sh_type == SHT_SYMTAB) { in encl_get_entry() 158 if (sections[i].sh_type == SHT_STRTAB) { in encl_get_entry()
|
/Linux-v6.1/arch/parisc/kernel/ |
D | module.c | 320 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections() 889 if(sechdrs[i].sh_type == SHT_SYMTAB in module_finalize() 956 if (s->sh_type == SHT_REL) in module_finalize() 960 else if (s->sh_type == SHT_RELA) in module_finalize()
|
/Linux-v6.1/scripts/mod/ |
D | modpost.c | 505 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf() 519 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf() 536 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf() 549 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf() 790 if (sechdr->sh_type == SHT_PROGBITS && in check_section() 1658 if (sechdrs[i].sh_type == SHT_RELA) in check_sec_ref() 1660 else if (sechdrs[i].sh_type == SHT_REL) in check_sec_ref()
|