Home
last modified time | relevance | path

Searched refs:Elf_Addr (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/arch/riscv/kernel/
Dmodule.c32 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/
Dmodule.c26 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/
Dmodule.c47 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 …]
Dmodule-sections.c12 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/
Dmodule.h36 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/
Dmodule.c66 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/
Dmodule.c175 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()
Dkexec_elf.c22 Elf_Addr entry; in kexec_file_add_kernel_elf()
/linux-6.12.1/scripts/mod/
Dmodpost.h30 #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);
Dsymsearch.c13 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()
Dmodpost.c68 #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/
Dmodule.h21 #define Elf_Addr Elf64_Addr macro
38 #define Elf_Addr Elf32_Addr macro
/linux-6.12.1/arch/parisc/kernel/
Dmodule.c361 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/
Dmodule.h42 #define Elf_Addr Elf32_Addr macro
60 #define Elf_Addr Elf64_Addr macro
/linux-6.12.1/scripts/
Dsorttable.h26 #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()
Drecordmcount.h39 #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/
Drelocs.c8 #define Elf_Addr ElfW(Addr) macro
787 static Elf_Addr per_cpu_load_addr;
/linux-6.12.1/arch/s390/tools/
Drelocs.c35 #define Elf_Addr ElfW(Addr) macro
/linux-6.12.1/arch/mips/boot/tools/
Drelocs.c8 #define Elf_Addr ElfW(Addr) macro