/linux-6.12.1/arch/riscv/kernel/ |
D | module.c | 32 Elf_Addr value; 37 int (*reloc_handler)(struct module *me, void *location, Elf_Addr v); 80 static int apply_r_riscv_32_rela(struct module *me, void *location, Elf_Addr v) in apply_r_riscv_32_rela() 91 static int apply_r_riscv_64_rela(struct module *me, void *location, Elf_Addr v) in apply_r_riscv_64_rela() 98 Elf_Addr v) in apply_r_riscv_branch_rela() 110 Elf_Addr v) in apply_r_riscv_jal_rela() 122 Elf_Addr v) in apply_r_riscv_rvc_branch_rela() 136 Elf_Addr v) in apply_r_riscv_rvc_jump_rela() 153 Elf_Addr v) in apply_r_riscv_pcrel_hi20_rela() 168 Elf_Addr v) in apply_r_riscv_pcrel_lo12_i_rela() [all …]
|
/linux-6.12.1/arch/mips/kernel/ |
D | module.c | 26 Elf_Addr *addr; 27 Elf_Addr value; 33 static void apply_r_mips_32(u32 *location, u32 base, Elf_Addr v) in apply_r_mips_32() 39 Elf_Addr v) in apply_r_mips_26() 59 static int apply_r_mips_hi16(struct module *me, u32 *location, Elf_Addr v, in apply_r_mips_hi16() 79 n->addr = (Elf_Addr *)location; in apply_r_mips_hi16() 99 u32 base, Elf_Addr v, bool rela) in apply_r_mips_lo16() 103 Elf_Addr val, vallo; in apply_r_mips_lo16() 171 Elf_Addr v, unsigned int bits) in apply_r_mips_pc() 202 Elf_Addr v) in apply_r_mips_pc16() [all …]
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | module.c | 47 static int apply_r_larch_none(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_none() 53 static int apply_r_larch_error(struct module *me, u32 *location, Elf_Addr v, in apply_r_larch_error() 60 static int apply_r_larch_32(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_32() 67 static int apply_r_larch_64(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_64() 70 *(Elf_Addr *)location = v; in apply_r_larch_64() 74 static int apply_r_larch_sop_push_pcrel(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_pcrel() 80 static int apply_r_larch_sop_push_absolute(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_absolute() 86 static int apply_r_larch_sop_push_dup(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_dup() 106 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_plt_pcrel() 120 static int apply_r_larch_sop(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop() [all …]
|
D | module-sections.c | 12 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_got_entry() 19 return (Elf_Addr)got; in module_emit_got_entry() 35 return (Elf_Addr)&got[i]; in module_emit_got_entry() 38 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_plt_entry() 47 return (Elf_Addr)plt; in module_emit_plt_entry() 61 return (Elf_Addr)&plt[nr]; in module_emit_plt_entry()
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | module.h | 36 Elf_Addr symbol_addr; 47 Elf_Addr symbol_addr; 50 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val); 51 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val); 53 static inline struct got_entry emit_got_entry(Elf_Addr val) in emit_got_entry() 102 static inline struct got_entry *get_got_entry(Elf_Addr val, in get_got_entry()
|
/linux-6.12.1/arch/sparc/kernel/ |
D | module.c | 66 Elf_Addr v; in apply_relocate_add() 85 v -= (Elf_Addr) location; in apply_relocate_add() 101 v -= (Elf_Addr) location; in apply_relocate_add() 123 v -= (Elf_Addr) location; in apply_relocate_add() 129 v -= (Elf_Addr) location; in apply_relocate_add()
|
/linux-6.12.1/arch/s390/kernel/ |
D | module.c | 175 static int apply_rela_bits(Elf_Addr loc, Elf_Addr val, in apply_rela_bits() 186 val = (Elf_Addr)(((long) val) >> shift); in apply_rela_bits() 222 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela() 227 Elf_Addr loc, val; in apply_rela() 294 Elf_Addr *gotent = me->mem[MOD_TEXT].base + in apply_rela() 319 val += (Elf_Addr)me->mem[MOD_TEXT].base + in apply_rela() 366 val = (Elf_Addr) me->mem[MOD_TEXT].base + in apply_rela() 388 ((Elf_Addr) me->mem[MOD_TEXT].base + me->arch.got_offset); in apply_rela() 398 val = (Elf_Addr) me->mem[MOD_TEXT].base + me->arch.got_offset + in apply_rela() 432 Elf_Addr base; in __apply_relocate_add()
|
D | kexec_elf.c | 22 Elf_Addr entry; in kexec_file_add_kernel_elf()
|
/linux-6.12.1/scripts/mod/ |
D | modpost.h | 30 #define Elf_Addr Elf32_Addr macro 44 #define Elf_Addr Elf64_Addr macro 166 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr, 168 Elf_Addr min_distance);
|
D | symsearch.c | 13 Elf_Addr addr; 153 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr, in symsearch_find_nearest() 155 Elf_Addr min_distance) in symsearch_find_nearest()
|
D | modpost.c | 68 #define MODULE_NAME_LEN (64 - sizeof(Elf_Addr)) 968 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, in find_fromsym() 974 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) in find_tosym() 1002 unsigned int fsecndx, const char *fromsec, Elf_Addr faddr, in default_mismatch_handler() 1003 const char *tosec, Elf_Addr taddr) in default_mismatch_handler() 1058 Elf_Addr faddr, const char *secname, in check_export_symbol() 1130 Elf_Addr faddr, Elf_Addr taddr) in check_section_mismatch() 1149 static Elf_Addr addend_386_rel(uint32_t *location, unsigned int r_type) in addend_386_rel() 1158 return (Elf_Addr)(-1); in addend_386_rel() 1168 static Elf_Addr addend_arm_rel(void *loc, Elf_Sym *sym, unsigned int r_type) in addend_arm_rel() [all …]
|
/linux-6.12.1/include/asm-generic/ |
D | module.h | 21 #define Elf_Addr Elf64_Addr macro 38 #define Elf_Addr Elf32_Addr macro
|
/linux-6.12.1/arch/parisc/kernel/ |
D | module.c | 361 static Elf_Addr get_fdesc(struct module *me, unsigned long value) in get_fdesc() 373 return (Elf_Addr)fdesc; in get_fdesc() 381 fdesc->gp = (Elf_Addr)me->mem[MOD_TEXT].base + me->arch.got_offset; in get_fdesc() 382 return (Elf_Addr)fdesc; in get_fdesc() 392 static Elf_Addr get_stub(struct module *me, unsigned long value, long addend, in get_stub() 393 enum elf_stub_type stub_type, Elf_Addr loc0, unsigned int targetsec) in get_stub() 485 return (Elf_Addr)stub; in get_stub() 502 Elf_Addr loc0; in apply_relocate_add() 648 Elf_Addr loc0; in apply_relocate_add() 813 gp = (Elf_Addr)me->mem[MOD_TEXT].base + me->arch.got_offset; in register_unwind_table()
|
/linux-6.12.1/arch/mips/include/asm/ |
D | module.h | 42 #define Elf_Addr Elf32_Addr macro 60 #define Elf_Addr Elf64_Addr macro
|
/linux-6.12.1/scripts/ |
D | sorttable.h | 26 #undef Elf_Addr 51 # define Elf_Addr Elf64_Addr macro 75 # define Elf_Addr Elf32_Addr macro 192 Elf_Addr av = _r(a); in compare_extable() 193 Elf_Addr bv = _r(b); in compare_extable()
|
D | recordmcount.h | 39 #undef Elf_Addr 78 # define Elf_Addr Elf64_Addr macro 116 # define Elf_Addr Elf32_Addr macro 180 static Elf_Addr old_r_offset = ~(Elf_Addr)0; in MIPS_is_fake_mcount() 181 Elf_Addr current_r_offset = _w(rp->r_offset); in MIPS_is_fake_mcount() 184 is_fake = (old_r_offset != ~(Elf_Addr)0) && in MIPS_is_fake_mcount()
|
/linux-6.12.1/arch/x86/tools/ |
D | relocs.c | 8 #define Elf_Addr ElfW(Addr) macro 787 static Elf_Addr per_cpu_load_addr;
|
/linux-6.12.1/arch/s390/tools/ |
D | relocs.c | 35 #define Elf_Addr ElfW(Addr) macro
|
/linux-6.12.1/arch/mips/boot/tools/ |
D | relocs.c | 8 #define Elf_Addr ElfW(Addr) macro
|