Home
last modified time | relevance | path

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

12

/linux/tools/perf/util/
A Dgenelf.c191 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
225 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
313 shdr->sh_type = SHT_PROGBITS; in jit_write_elf()
359 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
395 shdr->sh_type = SHT_SYMTAB; in jit_write_elf()
438 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
480 shdr->sh_type = SHT_NOTE; in jit_write_elf()
A Dgenelf_debug.c528 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()
A Dsymbol-elf.c387 if (shdr_rel_plt.sh_type == SHT_RELA) { in dso__synthesize_plt_symbols()
414 } else if (shdr_rel_plt.sh_type == SHT_REL) { in dso__synthesize_plt_symbols()
896 if (ss->symshdr.sh_type != SHT_SYMTAB) in symsrc__init()
902 if (ss->dynshdr.sh_type != SHT_DYNSYM) in symsrc__init()
908 if (ss->opdshdr.sh_type != SHT_PROGBITS) in symsrc__init()
1238 if (shdr.sh_type == SHT_NOBITS) { in dso__load_sym_internal()
2379 if ((shdr.sh_type != SHT_NOTE) || (shdr.sh_flags & SHF_ALLOC)) { in construct_sdt_notes_list()
/linux/arch/riscv/kernel/
A Dmodule-sections.c128 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/arch/mips/vdso/
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/arm64/kernel/
A Dmodule-plts.c311 else if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections()
329 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
354 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
362 pltsec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
370 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections()
/linux/arch/arm/kernel/
A Dmodule-plts.c231 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/arch/mips/boot/tools/
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()
480 if (sec->shdr.sh_type != SHT_REL_TYPE) in walk_relocs()
/linux/scripts/
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()
A Dsorttable.h246 if ((r(&s->sh_type) == SHT_REL || in do_sort()
247 r(&s->sh_type) == SHT_RELA) && in do_sort()
252 if (r(&s->sh_type) == SHT_SYMTAB_SHNDX) in do_sort()
/linux/arch/x86/tools/
A Drelocs.c293 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup()
455 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
475 if (sec->shdr.sh_type != SHT_STRTAB) { in read_strtabs()
503 switch (sec->shdr.sh_type) { in read_symtabs()
562 if (sec->shdr.sh_type != SHT_REL_TYPE) { in read_relocs()
608 if (sec->shdr.sh_type != SHT_SYMTAB) { in print_absolute_symbols()
647 if (sec->shdr.sh_type != SHT_REL_TYPE) { in print_absolute_relocs()
732 if (sec->shdr.sh_type != SHT_REL_TYPE) { in walk_relocs()
/linux/arch/alpha/kernel/
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/
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/tools/lib/bpf/
A Dlinker.c369 sec->shdr->sh_type = SHT_STRTAB; in init_output_elf()
407 sec->shdr->sh_type = SHT_SYMTAB; in init_output_elf()
484 if (shdr->sh_type == SHT_STRTAB) in is_ignored_sec()
488 if (shdr->sh_type == SHT_LLVM_ADDRSIG) in is_ignored_sec()
641 switch (shdr->sh_type) { in linker_load_obj_file()
734 switch (sec->shdr->sh_type) { in linker_sanity_check_elf()
880 if (link_sec->shdr->sh_type != SHT_PROGBITS && link_sec->shdr->sh_type != SHT_NOBITS) { in linker_sanity_check_elf_relos()
1017 shdr->sh_type = src_sec->shdr->sh_type; in init_sec()
1058 if (dst->shdr->sh_type != src->shdr->sh_type) { in secs_match()
1151 return sec->shdr->sh_type == SHT_PROGBITS || sec->shdr->sh_type == SHT_NOBITS; in is_data_sec()
[all …]
/linux/tools/objtool/
A Delf.c592 if ((sec->sh.sh_type != SHT_RELA) && in read_relocs()
593 (sec->sh.sh_type != SHT_REL)) in read_relocs()
613 switch (sec->sh.sh_type) { in read_relocs()
802 sec->sh.sh_type = SHT_PROGBITS; in elf_create_section()
848 sec->sh.sh_type = SHT_REL; in elf_create_rel_reloc_section()
878 sec->sh.sh_type = SHT_RELA; in elf_create_rela_reloc_section()
963 switch (sec->sh.sh_type) { in elf_rebuild_reloc_section()
993 if (sec->sh.sh_type == SHT_REL) { in elf_write_reloc()
/linux/kernel/
A Dkexec_file.c861 if (sechdrs[i].sh_type != SHT_NOBITS) { in kexec_purgatory_setup_kbuf()
935 if (sechdrs[i].sh_type == SHT_NOBITS) { in kexec_purgatory_setup_sechdrs()
978 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations()
979 relsec->sh_type != SHT_REL) in kexec_apply_relocations()
1010 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations()
1013 else if (relsec->sh_type == SHT_REL) in kexec_apply_relocations()
1089 if (sechdrs[i].sh_type != SHT_SYMTAB) in kexec_purgatory_find_symbol()
1164 if (sec->sh_type == SHT_NOBITS) { in kexec_purgatory_get_set_symbol()
A Dmodule.c1646 (info->sechdrs[i].sh_type == SHT_NOTE)) in add_notes_attrs()
1662 if (info->sechdrs[i].sh_type == SHT_NOTE) { in add_notes_attrs()
2378 else if (info->sechdrs[i].sh_type == SHT_REL) in apply_relocations()
2381 else if (info->sechdrs[i].sh_type == SHT_RELA) in apply_relocations()
3045 if (info->sechdrs[0].sh_type != SHT_NULL in elf_validity_check()
3049 info->sechdrs[0].sh_type); in elf_validity_check()
3055 switch (shdr->sh_type) { in elf_validity_check()
3072 i, shdr->sh_type); in elf_validity_check()
3079 i, shdr->sh_type); in elf_validity_check()
3226 if (info->sechdrs[i].sh_type == SHT_SYMTAB) { in setup_load_info()
[all …]
/linux/arch/sh/kernel/
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/ia64/kernel/
A Dmodule.c455 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/include/uapi/linux/
A Delf.h306 Elf32_Word sh_type; member
319 Elf64_Word sh_type; /* Type of section */ member
/linux/arch/parisc/kernel/
A Dmodule.c320 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/scripts/mod/
A Dmodpost.c550 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
564 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
584 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
597 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
903 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
1961 if (sechdrs[i].sh_type == SHT_RELA) in check_sec_ref()
1963 else if (sechdrs[i].sh_type == SHT_REL) in check_sec_ref()
/linux/drivers/remoteproc/
A Dremoteproc_elf_helpers.h79 ELF_GEN_FIELD_GET_SET(shdr, sh_type, u32) in ELF_GEN_FIELD_GET_SET()
/linux/arch/sparc/vdso/
A Dvdso2c.h68 if (GET_BE(&sh->sh_type) == SHT_SYMTAB) in BITSFUNC()
/linux/arch/sparc/kernel/
A Dmodule.c65 for (symidx = 0; sechdrs[symidx].sh_type != SHT_SYMTAB; symidx++) { in module_frob_arch_sections()

Completed in 60 milliseconds

12