Home
last modified time | relevance | path

Searched refs:Elf_Shdr (Results 1 – 39 of 39) sorted by relevance

/linux-4.4.14/arch/blackfin/include/asm/
Dmodule.h13 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.4.14/scripts/
Drecordmcount.h37 #undef Elf_Shdr
71 # define Elf_Shdr Elf64_Shdr macro
104 # define Elf_Shdr Elf32_Shdr macro
179 Elf_Shdr *const shstr, in append_func()
188 Elf_Shdr mcsec; in append_func()
212 t += sizeof(Elf_Shdr) * old_shnum; in append_func()
214 sizeof(Elf_Shdr) * old_shnum); in append_func()
276 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr, in get_sym_str_and_relp()
282 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
285 Elf_Shdr const *const symsec = &shdr0[symsec_sh_link]; in get_sym_str_and_relp()
[all …]
Dsortextable.h20 #undef Elf_Shdr
42 # define Elf_Shdr Elf64_Shdr macro
63 # define Elf_Shdr Elf32_Shdr macro
95 Elf_Shdr *shdr; in do_func()
96 Elf_Shdr *shstrtab_sec; in do_func()
97 Elf_Shdr *strtab_sec = NULL; in do_func()
98 Elf_Shdr *symtab_sec = NULL; in do_func()
99 Elf_Shdr *extab_sec = NULL; in do_func()
104 Elf_Shdr *sort_needed_sec; in do_func()
117 shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_func()
/linux-4.4.14/include/linux/
Dmoduleloader.h17 Elf_Shdr *sechdrs,
36 int apply_relocate(Elf_Shdr *sechdrs,
42 static inline int apply_relocate(Elf_Shdr *sechdrs, in apply_relocate()
59 int apply_relocate_add(Elf_Shdr *sechdrs,
65 static inline int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
79 const Elf_Shdr *sechdrs,
Dkexec.h122 Elf_Shdr *sechdrs;
328 Elf_Shdr *sechdrs, unsigned int relsec);
329 int __weak arch_kexec_apply_relocations(const Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
Dmodule.h778 void module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *,
785 const Elf_Shdr *sechdrs, in module_bug_finalize()
/linux-4.4.14/arch/powerpc/kernel/
Dmodule.c32 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section()
33 const Elf_Shdr *sechdrs, in find_section()
47 const Elf_Shdr *sechdrs, struct module *me) in module_finalize()
49 const Elf_Shdr *sect; in module_finalize()
/linux-4.4.14/arch/arm/kernel/
Dmodule.c303 const Elf_Shdr *unw_sec;
304 const Elf_Shdr *txt_sec;
307 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, in find_mod_section()
308 const Elf_Shdr *sechdrs, const char *name) in find_mod_section()
310 const Elf_Shdr *s, *se; in find_mod_section()
323 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
326 const Elf_Shdr *s = NULL; in module_finalize()
329 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
Dmodule-plts.c132 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
/linux-4.4.14/arch/sparc/kernel/
Dmodule.c55 Elf_Shdr *sechdrs, in module_frob_arch_sections()
82 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
184 const Elf_Shdr *sechdrs) in do_patch_sections()
186 const Elf_Shdr *s, *sun4v_1insn = NULL, *sun4v_2insn = NULL; in do_patch_sections()
207 const Elf_Shdr *sechdrs, in module_finalize()
/linux-4.4.14/arch/x86/um/asm/
Dmodule.h11 #define Elf_Shdr Elf32_Shdr macro
17 #define Elf_Shdr Elf64_Shdr macro
/linux-4.4.14/kernel/
Dkexec_file.c120 arch_kexec_apply_relocations_add(const Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in arch_kexec_apply_relocations_add()
129 arch_kexec_apply_relocations(const Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in arch_kexec_apply_relocations()
670 const Elf_Shdr *sechdrs_c; in __kexec_load_purgatory()
671 Elf_Shdr *sechdrs = NULL; in __kexec_load_purgatory()
687 sechdrs = vzalloc(pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in __kexec_load_purgatory()
691 memcpy(sechdrs, sechdrs_c, pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in __kexec_load_purgatory()
847 Elf_Shdr *sechdrs = pi->sechdrs; in kexec_apply_relocations()
851 Elf_Shdr *section, *symtab; in kexec_apply_relocations()
917 || pi->ehdr->e_shentsize != sizeof(Elf_Shdr)) in kexec_load_purgatory()
921 || (pi->ehdr->e_shnum * sizeof(Elf_Shdr) > in kexec_load_purgatory()
[all …]
Dmodule.c324 Elf_Shdr *sechdrs;
375 Elf_Shdr *shdr = &info->sechdrs[i]; in find_sec()
644 Elf_Shdr *pcpusec = &info->sechdrs[info->index.pcpu]; in percpu_modalloc()
1288 static int check_version(Elf_Shdr *sechdrs, in check_version()
1330 static inline int check_modstruct_version(Elf_Shdr *sechdrs, in check_modstruct_version()
1363 static inline int check_version(Elf_Shdr *sechdrs, in check_version()
1373 static inline int check_modstruct_version(Elf_Shdr *sechdrs, in check_modstruct_version()
1455 static inline bool sect_empty(const Elf_Shdr *sect) in sect_empty()
1516 Elf_Shdr *sec = &info->sechdrs[i]; in add_sect_attrs()
2113 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; in simplify_symbols()
[all …]
/linux-4.4.14/include/asm-generic/
Dmodule.h15 #define Elf_Shdr Elf64_Shdr macro
32 #define Elf_Shdr Elf32_Shdr macro
/linux-4.4.14/arch/blackfin/kernel/
Dmodule.c21 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
31 Elf_Shdr *s, *sechdrs_end = sechdrs + hdr->e_shnum; in module_frob_arch_sections()
151 apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
235 const Elf_Shdr * sechdrs, struct module *mod) in module_finalize()
269 err = apply_relocate_add((Elf_Shdr *) sechdrs, strtab, in module_finalize()
/linux-4.4.14/scripts/mod/
Dmodpost.h23 #define Elf_Shdr Elf32_Shdr macro
38 #define Elf_Shdr Elf64_Shdr macro
128 Elf_Shdr *sechdrs;
Dmodpost.c410 Elf_Shdr *sechdrs; in parse_elf()
763 Elf_Shdr *sechdrs = elf->sechdrs; in sec_name()
769 static const char *sech_name(struct elf_info *elf, Elf_Shdr *sechdr) in sech_name()
849 Elf_Shdr *sechdr) in check_section()
1683 Elf_Shdr *sechdr, Elf_Rela *r) in reloc_location()
1685 Elf_Shdr *sechdrs = elf->sechdrs; in reloc_location()
1692 static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_386_rel()
1728 static int addend_arm_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_arm_rel()
1755 static int addend_mips_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_mips_rel()
1779 Elf_Shdr *sechdr) in section_rela()
[all …]
/linux-4.4.14/arch/mips/kernel/
Dvpe.c169 static long get_offset(unsigned long *size, Elf_Shdr *sechdr) in get_offset()
183 Elf_Shdr *sechdrs, const char *secstrings) in layout_sections()
201 Elf_Shdr *s = &sechdrs[i]; in layout_sections()
477 static void simplify_symbols(Elf_Shdr *sechdrs, in simplify_symbols()
536 static void dump_elfsymbols(Elf_Shdr *sechdrs, unsigned int symindex, in dump_elfsymbols()
550 static int find_vpe_symbols(struct vpe *v, Elf_Shdr *sechdrs, in find_vpe_symbols()
579 Elf_Shdr *sechdrs; in vpe_elfload()
605 if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) { in vpe_elfload()
Dmodule.c195 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate()
271 const Elf_Shdr *sechdrs, in module_finalize()
274 const Elf_Shdr *s; in module_finalize()
Dmodule-rela.c107 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
/linux-4.4.14/arch/arc/kernel/
Dmodule.c33 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
131 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
/linux-4.4.14/arch/hexagon/kernel/
Dmodule.c40 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
80 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
/linux-4.4.14/arch/mips/include/asm/
Dmodule.h38 #define Elf_Shdr Elf32_Shdr macro
56 #define Elf_Shdr Elf64_Shdr macro
/linux-4.4.14/arch/parisc/kernel/
Dmodule.c319 CONST Elf_Shdr *sechdrs, in module_frob_arch_sections()
538 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
675 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
832 const Elf_Shdr *sechdrs) in register_unwind_table()
857 const Elf_Shdr *sechdrs, in module_finalize()
864 Elf_Shdr *symhdr = NULL; in module_finalize()
892 symhdr = (Elf_Shdr *)&sechdrs[i]; in module_finalize()
/linux-4.4.14/arch/s390/kernel/
Dmodule.c107 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
110 Elf_Shdr *symtab; in module_frob_arch_sections()
398 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
424 const Elf_Shdr *sechdrs, in module_finalize()
/linux-4.4.14/arch/x86/kernel/
Dmodule.c211 const Elf_Shdr *sechdrs, in module_finalize()
214 const Elf_Shdr *s, *text = NULL, *alt = NULL, *locks = NULL, in module_finalize()
/linux-4.4.14/arch/microblaze/kernel/
Dmodule.c120 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
/linux-4.4.14/arch/sh/kernel/
Dmodule.c113 const Elf_Shdr *sechdrs, in module_finalize()
Ddwarf.c1093 int module_dwarf_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_dwarf_finalize()
/linux-4.4.14/arch/nios2/kernel/
Dmodule.c133 int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
/linux-4.4.14/arch/score/kernel/
Dmodule.c30 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate()
/linux-4.4.14/arch/arm64/kernel/
Dmodule.c413 const Elf_Shdr *sechdrs, in module_finalize()
416 const Elf_Shdr *s, *se; in module_finalize()
/linux-4.4.14/lib/
Dbug.c85 void module_bug_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_bug_finalize()
/linux-4.4.14/arch/m68k/kernel/
Dmodule.c103 const Elf_Shdr *sechdrs, in module_finalize()
/linux-4.4.14/arch/x86/tools/
Drelocs.c10 #define Elf_Shdr ElfW(Shdr) macro
29 Elf_Shdr shdr;
381 if (ehdr.e_shentsize != sizeof(Elf_Shdr)) { in read_ehdr()
392 Elf_Shdr shdr; in read_shdrs()
/linux-4.4.14/arch/tile/kernel/
Dmodule.c122 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
/linux-4.4.14/arch/sh/include/asm/
Ddwarf.h382 extern int module_dwarf_finalize(const Elf_Ehdr *, const Elf_Shdr *,
/linux-4.4.14/arch/avr32/kernel/
Dmodule.c60 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
/linux-4.4.14/arch/ia64/kernel/
Dmodule.c421 module_frob_arch_sections (Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, in module_frob_arch_sections()
904 module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *mod) in module_finalize()