/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | module.h | 13 Elf_Shdr *text_l1; 14 Elf_Shdr *data_a_l1; 15 Elf_Shdr *bss_a_l1; 16 Elf_Shdr *data_b_l1; 17 Elf_Shdr *bss_b_l1; 18 Elf_Shdr *text_l2; 19 Elf_Shdr *data_l2; 20 Elf_Shdr *bss_l2;
|
/linux-4.1.27/arch/x86/um/asm/ |
H A D | module.h | 11 #define Elf_Shdr Elf32_Shdr macro 17 #define Elf_Shdr Elf64_Shdr macro
|
/linux-4.1.27/include/linux/ |
H A D | moduleloader.h | 17 Elf_Shdr *sechdrs, 36 int apply_relocate(Elf_Shdr *sechdrs, 42 static inline int apply_relocate(Elf_Shdr *sechdrs, apply_relocate() 59 int apply_relocate_add(Elf_Shdr *sechdrs, 65 static inline int apply_relocate_add(Elf_Shdr *sechdrs, apply_relocate_add() 79 const Elf_Shdr *sechdrs,
|
H A D | kexec.h | 122 Elf_Shdr *sechdrs;
|
H A D | module.h | 645 void module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *, set_all_modules_text_ro() 652 const Elf_Shdr *sechdrs, module_bug_finalize()
|
/linux-4.1.27/include/asm-generic/ |
H A D | module.h | 15 #define Elf_Shdr Elf64_Shdr macro 32 #define Elf_Shdr Elf32_Shdr macro
|
/linux-4.1.27/scripts/ |
H A D | sortextable.h | 20 #undef Elf_Shdr macro 42 # define Elf_Shdr Elf64_Shdr macro 63 # define Elf_Shdr Elf32_Shdr macro 95 Elf_Shdr *shdr; do_func() 96 Elf_Shdr *shstrtab_sec; do_func() 97 Elf_Shdr *strtab_sec = NULL; do_func() 98 Elf_Shdr *symtab_sec = NULL; do_func() 99 Elf_Shdr *extab_sec = NULL; do_func() 104 Elf_Shdr *sort_needed_sec; do_func() 117 shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); do_func()
|
H A D | recordmcount.h | 37 #undef Elf_Shdr macro 71 # define Elf_Shdr Elf64_Shdr macro 104 # define Elf_Shdr Elf32_Shdr macro 177 /* Append the new shstrtab, Elf_Shdr[], __mcount_loc and its relocations. */ append_func() 179 Elf_Shdr *const shstr, append_func() 188 Elf_Shdr mcsec; append_func() 210 /* old(modified) Elf_Shdr table, word-byte aligned */ append_func() 212 t += sizeof(Elf_Shdr) * old_shnum; append_func() 214 sizeof(Elf_Shdr) * old_shnum); append_func() 276 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr, get_sym_str_and_relp() 282 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) get_sym_str_and_relp() 285 Elf_Shdr const *const symsec = &shdr0[symsec_sh_link]; get_sym_str_and_relp() 286 Elf_Shdr const *const strsec = &shdr0[w(symsec->sh_link)]; get_sym_str_and_relp() 307 Elf_Shdr const *const relhdr, sift_rel_mcount() 354 static void nop_mcount(Elf_Shdr const *const relhdr, nop_mcount() 358 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) nop_mcount() 363 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)]; nop_mcount() 420 Elf_Shdr const *const symhdr, find_secsym_ndx() 452 __has_rel_mcount(Elf_Shdr const *const relhdr, /* is SHT_REL or SHT_RELA */ __has_rel_mcount() 453 Elf_Shdr const *const shdr0, __has_rel_mcount() 458 Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)]; __has_rel_mcount() 472 static char const *has_rel_mcount(Elf_Shdr const *const relhdr, has_rel_mcount() 473 Elf_Shdr const *const shdr0, has_rel_mcount() 483 static unsigned tot_relsize(Elf_Shdr const *const shdr0, tot_relsize() 489 Elf_Shdr const *shdrp = shdr0; tot_relsize() 505 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) do_func() 508 Elf_Shdr *const shstr = &shdr0[w2(ehdr->e_shstrndx)]; do_func() 512 Elf_Shdr const *relhdr; do_func()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | module.c | 32 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, find_section() 33 const Elf_Shdr *sechdrs, find_section() 47 const Elf_Shdr *sechdrs, struct module *me) module_finalize() 49 const Elf_Shdr *sect; module_finalize()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | module.c | 55 Elf_Shdr *sechdrs, module_frob_arch_sections() 82 int apply_relocate_add(Elf_Shdr *sechdrs, apply_relocate_add() 184 const Elf_Shdr *sechdrs) do_patch_sections() 186 const Elf_Shdr *s, *sun4v_1insn = NULL, *sun4v_2insn = NULL; do_patch_sections() 207 const Elf_Shdr *sechdrs, module_finalize()
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | module.c | 273 const Elf_Shdr *unw_sec; 274 const Elf_Shdr *txt_sec; 277 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, find_mod_section() 278 const Elf_Shdr *sechdrs, const char *name) find_mod_section() 280 const Elf_Shdr *s, *se; find_mod_section() 293 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, module_finalize() 296 const Elf_Shdr *s = NULL; module_finalize() 299 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; module_finalize()
|
/linux-4.1.27/arch/blackfin/kernel/ |
H A D | module.c | 21 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, module_frob_arch_sections() 31 Elf_Shdr *s, *sechdrs_end = sechdrs + hdr->e_shnum; module_frob_arch_sections() 151 apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, apply_relocate_add() 235 const Elf_Shdr * sechdrs, struct module *mod) module_finalize() 269 err = apply_relocate_add((Elf_Shdr *) sechdrs, strtab, module_finalize()
|
/linux-4.1.27/scripts/mod/ |
H A D | modpost.h | 17 #define Elf_Shdr Elf32_Shdr macro 32 #define Elf_Shdr Elf64_Shdr macro 122 Elf_Shdr *sechdrs;
|
H A D | modpost.c | 409 Elf_Shdr *sechdrs; parse_elf() 762 Elf_Shdr *sechdrs = elf->sechdrs; sec_name() 768 static const char *sech_name(struct elf_info *elf, Elf_Shdr *sechdr) sech_name() 846 Elf_Shdr *sechdr) check_section() 1679 Elf_Shdr *sechdr, Elf_Rela *r) reloc_location() 1681 Elf_Shdr *sechdrs = elf->sechdrs; reloc_location() 1688 static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) addend_386_rel() 1724 static int addend_arm_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) addend_arm_rel() 1751 static int addend_mips_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) addend_mips_rel() 1775 Elf_Shdr *sechdr) section_rela() 1821 Elf_Shdr *sechdr) section_rel() 1896 Elf_Shdr *sechdrs = elf->sechdrs; check_sec_ref()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | module.h | 38 #define Elf_Shdr Elf32_Shdr macro 56 #define Elf_Shdr Elf64_Shdr macro
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | vpe.c | 169 static long get_offset(unsigned long *size, Elf_Shdr *sechdr) get_offset() 183 Elf_Shdr *sechdrs, const char *secstrings) layout_sections() 201 Elf_Shdr *s = &sechdrs[i]; layout_sections() 477 static void simplify_symbols(Elf_Shdr *sechdrs, simplify_symbols() 536 static void dump_elfsymbols(Elf_Shdr *sechdrs, unsigned int symindex, dump_elfsymbols() 550 static int find_vpe_symbols(struct vpe *v, Elf_Shdr *sechdrs, find_vpe_symbols() 579 Elf_Shdr *sechdrs; vpe_elfload() 605 if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) { vpe_elfload()
|
H A D | module.c | 195 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, apply_relocate() 271 const Elf_Shdr *sechdrs, module_finalize() 274 const Elf_Shdr *s; module_finalize()
|
H A D | module-rela.c | 107 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, apply_relocate_add()
|
/linux-4.1.27/arch/hexagon/kernel/ |
H A D | module.c | 40 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, module_frob_arch_sections() 80 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, apply_relocate_add()
|
/linux-4.1.27/arch/arc/kernel/ |
H A D | module.c | 33 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, module_frob_arch_sections() 131 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, module_finalize()
|
/linux-4.1.27/arch/microblaze/kernel/ |
H A D | module.c | 120 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, module_finalize()
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | module.c | 113 const Elf_Shdr *sechdrs, module_finalize()
|
H A D | dwarf.c | 1093 int module_dwarf_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, module_dwarf_finalize()
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | module.c | 107 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, module_frob_arch_sections() 110 Elf_Shdr *symtab; module_frob_arch_sections() 398 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, apply_relocate_add() 424 const Elf_Shdr *sechdrs, module_finalize()
|
/linux-4.1.27/arch/score/kernel/ |
H A D | module.c | 30 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, apply_relocate()
|
/linux-4.1.27/arch/nios2/kernel/ |
H A D | module.c | 133 int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, module_finalize()
|
/linux-4.1.27/arch/m68k/kernel/ |
H A D | module.c | 103 const Elf_Shdr *sechdrs, module_finalize()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | module.c | 211 const Elf_Shdr *sechdrs, module_finalize() 214 const Elf_Shdr *s, *text = NULL, *alt = NULL, *locks = NULL, module_finalize()
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | module.c | 319 CONST Elf_Shdr *sechdrs, module_frob_arch_sections() 538 int apply_relocate_add(Elf_Shdr *sechdrs, apply_relocate_add() 675 int apply_relocate_add(Elf_Shdr *sechdrs, apply_relocate_add() 832 const Elf_Shdr *sechdrs) register_unwind_table() 857 const Elf_Shdr *sechdrs, module_finalize() 864 Elf_Shdr *symhdr = NULL; module_finalize() 892 symhdr = (Elf_Shdr *)&sechdrs[i]; module_finalize()
|
/linux-4.1.27/kernel/ |
H A D | module.c | 175 Elf_Shdr *sechdrs; 226 Elf_Shdr *shdr = &info->sechdrs[i]; find_sec() 487 Elf_Shdr *pcpusec = &info->sechdrs[info->index.pcpu]; percpu_modalloc() 1131 static int check_version(Elf_Shdr *sechdrs, check_version() 1173 static inline int check_modstruct_version(Elf_Shdr *sechdrs, check_modstruct_version() 1200 static inline int check_version(Elf_Shdr *sechdrs, check_version() 1210 static inline int check_modstruct_version(Elf_Shdr *sechdrs, check_modstruct_version() 1292 static inline bool sect_empty(const Elf_Shdr *sect) sect_empty() 1353 Elf_Shdr *sec = &info->sechdrs[i]; add_sect_attrs() 1942 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; simplify_symbols() 2042 Elf_Shdr *sechdr, unsigned int section) get_offset() 2075 Elf_Shdr *s = &info->sechdrs[i]; layout_sections() 2104 Elf_Shdr *s = &info->sechdrs[i]; layout_sections() 2169 Elf_Shdr *infosec = &info->sechdrs[info->index.info]; get_modinfo() 2226 const Elf_Shdr *sechdrs = info->sechdrs; elf_type() 2264 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, is_core_symbol() 2267 const Elf_Shdr *sec; is_core_symbol() 2294 Elf_Shdr *symsect = info->sechdrs + info->index.sym; layout_symtab() 2295 Elf_Shdr *strsect = info->sechdrs + info->index.str; layout_symtab() 2348 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; add_kallsyms() 2494 || info->hdr->e_shentsize != sizeof(Elf_Shdr)) elf_header_check() 2498 || (info->hdr->e_shnum * sizeof(Elf_Shdr) > elf_header_check() 2620 Elf_Shdr *shdr = &info->sechdrs[i]; rewrite_section_headers() 2866 Elf_Shdr *shdr = &info->sechdrs[i]; move_module() 2948 Elf_Shdr *sechdrs, module_frob_arch_sections() 3005 const Elf_Shdr *sechdrs, module_finalize()
|
H A D | kexec.c | 430 arch_kexec_apply_relocations_add(const Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, arch_kexec_apply_relocations_add() 439 arch_kexec_apply_relocations(const Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, arch_kexec_apply_relocations() 2302 const Elf_Shdr *sechdrs_c; __kexec_load_purgatory() 2303 Elf_Shdr *sechdrs = NULL; __kexec_load_purgatory() 2319 sechdrs = vzalloc(pi->ehdr->e_shnum * sizeof(Elf_Shdr)); __kexec_load_purgatory() 2323 memcpy(sechdrs, sechdrs_c, pi->ehdr->e_shnum * sizeof(Elf_Shdr)); __kexec_load_purgatory() 2479 Elf_Shdr *sechdrs = pi->sechdrs; kexec_apply_relocations() 2483 Elf_Shdr *section, *symtab; kexec_apply_relocations() 2549 || pi->ehdr->e_shentsize != sizeof(Elf_Shdr)) kexec_load_purgatory() 2553 || (pi->ehdr->e_shnum * sizeof(Elf_Shdr) > kexec_load_purgatory() 2577 Elf_Shdr *sechdrs; kexec_purgatory_find_symbol() 2625 Elf_Shdr *sechdr; kexec_purgatory_get_symbol_addr() 2648 Elf_Shdr *sechdrs; kexec_purgatory_get_set_symbol()
|
/linux-4.1.27/arch/tile/kernel/ |
H A D | module.c | 122 int apply_relocate_add(Elf_Shdr *sechdrs, apply_relocate_add()
|
/linux-4.1.27/lib/ |
H A D | bug.c | 85 void module_bug_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, module_bug_finalize()
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | module.c | 403 const Elf_Shdr *sechdrs, module_finalize() 406 const Elf_Shdr *s, *se; module_finalize()
|
/linux-4.1.27/arch/x86/tools/ |
H A D | relocs.c | 10 #define Elf_Shdr ElfW(Shdr) macro 29 Elf_Shdr shdr; 381 if (ehdr.e_shentsize != sizeof(Elf_Shdr)) { read_ehdr() 392 Elf_Shdr shdr; read_shdrs()
|
/linux-4.1.27/arch/avr32/kernel/ |
H A D | module.c | 60 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, module_frob_arch_sections()
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | dwarf.h | 382 extern int module_dwarf_finalize(const Elf_Ehdr *, const Elf_Shdr *,
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | module.c | 421 module_frob_arch_sections (Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, module_frob_arch_sections() 912 module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *mod) module_finalize()
|