Home
last modified time | relevance | path

Searched refs:rela (Results 1 – 25 of 29) sorted by relevance

12

/arch/um/kernel/
Ddyn.lds.S36 .rela.init : { *(.rela.init) }
38 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
40 .rela.fini : { *(.rela.fini) }
42 .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
44 .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
46 .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
48 .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
50 .rela.ctors : { *(.rela.ctors) }
52 .rela.dtors : { *(.rela.dtors) }
54 .rela.got : { *(.rela.got) }
[all …]
Duml.lds.S65 .rela.plt : {
66 *(.rela.plt)
68 *(.rela.iplt)
/arch/arm64/
DMakefile.postlink22 --dump-section=$(shell $(READELF) -SW $@|grep -Eo '\.rela\.text\S*')=$@.rela.text \
23 --dump-section=$(shell $(READELF) -SW $@|grep -Eo '\.rela\.rodata\S*')=$@.rela.rodata \
24 --add-section=.init.rela.text=$@.rela.text \
25 --add-section=.init.rela.rodata=$@.rela.rodata \
26 --set-section-flags=.init.rela.text=alloc,readonly \
27 --set-section-flags=.init.rela.rodata=alloc,readonly && \
42 rm -f $(objtree)/crypto/fips140.ko.rela.*
/arch/h8300/kernel/
Dmodule.c16 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
20 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
24 + rela[i].r_offset); in apply_relocate_add()
28 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
29 uint32_t v = sym->st_value + rela[i].r_addend; in apply_relocate_add()
31 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
37 if (ELF32_R_SYM(rela[i].r_info)) in apply_relocate_add()
62 me->name, ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
69 me->name, rela[i].r_offset); in apply_relocate_add()
/arch/mips/kernel/
Dmodule.c70 bool rela) in apply_r_mips_hi16() argument
74 if (rela) { in apply_r_mips_hi16()
109 u32 base, Elf_Addr v, bool rela) in apply_r_mips_lo16() argument
115 if (rela) { in apply_r_mips_lo16()
229 static int apply_r_mips_64(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_64() argument
231 if (WARN_ON(!rela)) in apply_r_mips_64()
239 static int apply_r_mips_higher(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_higher() argument
241 if (WARN_ON(!rela)) in apply_r_mips_higher()
250 static int apply_r_mips_highest(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_highest() argument
252 if (WARN_ON(!rela)) in apply_r_mips_highest()
[all …]
/arch/nios2/kernel/
Dmodule.c48 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
53 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
58 + rela[i].r_offset); in apply_relocate_add()
63 + ELF32_R_SYM(rela[i].r_info)); in apply_relocate_add()
64 uint32_t v = sym->st_value + rela[i].r_addend; in apply_relocate_add()
67 ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add()
68 rela[i].r_offset, strtab + sym->st_name); in apply_relocate_add()
70 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
124 mod->name, ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/arch/microblaze/kernel/
Dmodule.c23 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
31 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
34 rela[i].r_offset; in apply_relocate_add()
36 ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
37 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
39 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
84 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/arch/xtensa/kernel/
Dmodule.c54 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
62 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
64 + rela[i].r_offset; in apply_relocate_add()
66 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
67 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
69 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
158 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
178 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
184 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/arch/arm64/kernel/
Dmodule-plts.c74 void *loc, const Elf64_Rela *rela, in module_emit_plt_entry() argument
82 u64 val = sym->st_value + rela->r_addend; in module_emit_plt_entry()
151 static bool duplicate_rel(const Elf64_Rela *rela, int num) in duplicate_rel() argument
158 return num > 0 && cmp_rela(rela + num, rela + num - 1) == 0; in duplicate_rel()
161 static unsigned int count_plts(Elf64_Sym *syms, Elf64_Rela *rela, int num, in count_plts() argument
171 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_plts()
188 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
205 if (rela[i].r_addend != 0 || !duplicate_rel(rela, i)) in count_plts()
228 min_align = 2ULL << ffz(rela[i].r_offset | 0x7); in count_plts()
257 static bool branch_rela_needs_plt(Elf64_Sym *syms, Elf64_Rela *rela, in branch_rela_needs_plt() argument
[all …]
Dvmlinux.lds.S251 .rela.dyn : ALIGN(8) {
252 *(.rela .rela*)
255 __rela_offset = ABSOLUTE(ADDR(.rela.dyn) - KIMAGE_VADDR);
256 __rela_size = SIZEOF(.rela.dyn);
/arch/alpha/kernel/
Dmodule.c29 process_reloc_for_got(Elf64_Rela *rela, in process_reloc_for_got() argument
32 unsigned long r_sym = ELF64_R_SYM (rela->r_info); in process_reloc_for_got()
33 unsigned long r_type = ELF64_R_TYPE (rela->r_info); in process_reloc_for_got()
34 Elf64_Sxword r_addend = rela->r_addend; in process_reloc_for_got()
60 rela->r_info |= g->got_offset << 8; in process_reloc_for_got()
68 Elf64_Rela *rela; in module_frob_arch_sections() local
113 rela = (void *)hdr + s->sh_offset; in module_frob_arch_sections()
115 process_reloc_for_got(rela+i, chains, in module_frob_arch_sections()
137 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
138 unsigned long i, n = sechdrs[relsec].sh_size / sizeof(*rela); in apply_relocate_add()
[all …]
/arch/powerpc/kernel/
Dmodule_32.c24 static unsigned int count_relocs(const Elf32_Rela *rela, unsigned int num) in count_relocs() argument
33 if (ELF32_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
34 (r_info != ELF32_R_SYM(rela[i].r_info) || in count_relocs()
35 r_addend != rela[i].r_addend)) { in count_relocs()
37 r_info = ELF32_R_SYM(rela[i].r_info); in count_relocs()
38 r_addend = rela[i].r_addend; in count_relocs()
193 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
200 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
203 + rela[i].r_offset; in apply_relocate_add()
207 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
[all …]
Dmodule_64.c142 static unsigned int count_relocs(const Elf64_Rela *rela, unsigned int num) in count_relocs() argument
152 if (ELF64_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
153 (r_info != ELF64_R_SYM(rela[i].r_info) || in count_relocs()
154 r_addend != rela[i].r_addend)) { in count_relocs()
156 r_info = ELF64_R_SYM(rela[i].r_info); in count_relocs()
157 r_addend = rela[i].r_addend; in count_relocs()
533 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
551 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
554 + rela[i].r_offset; in apply_relocate_add()
557 + ELF64_R_SYM(rela[i].r_info); in apply_relocate_add()
[all …]
Dvmlinux.lds.S305 .rela.dyn : AT(ADDR(.rela.dyn) - LOAD_OFFSET)
308 *(.rela*)
414 *(.rela*)
/arch/hexagon/kernel/
Dmodule.c76 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
87 sym = sym_base + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
90 location = loc_base + rela[i].r_offset; in apply_relocate_add()
93 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
96 i, value, location, ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add()
100 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
144 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/arch/s390/kernel/
Dmodule.c72 static void check_rela(Elf_Rela *rela, struct module *me) in check_rela() argument
76 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela()
77 switch (ELF_R_TYPE (rela->r_info)) { in check_rela()
126 Elf_Rela *rela; in module_frob_arch_sections() local
169 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
171 check_rela(rela + j, me); in module_frob_arch_sections()
235 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela() argument
245 loc = base + rela->r_offset; in apply_rela()
248 r_sym = ELF_R_SYM(rela->r_info); in apply_rela()
249 r_type = ELF_R_TYPE(rela->r_info); in apply_rela()
[all …]
/arch/s390/boot/
Dstartup.c81 Elf64_Rela *rela_start, *rela_end, *rela; in handle_relocs() local
89 for (rela = rela_start; rela < rela_end; rela++) { in handle_relocs()
90 loc = rela->r_offset + offset; in handle_relocs()
91 val = rela->r_addend; in handle_relocs()
92 r_sym = ELF64_R_SYM(rela->r_info); in handle_relocs()
103 r_type = ELF64_R_TYPE(rela->r_info); in handle_relocs()
/arch/x86/boot/compressed/
Dvmlinux.lds.S113 .rela.dyn : {
114 *(.rela.*) *(.rela_*)
116 ASSERT(SIZEOF(.rela.dyn) == 0, "Unexpected run-time relocations (.rela) detected!")
/arch/arm64/kvm/hyp/nvhe/
Dgen-hyprel.c326 static void emit_rela_abs64(Elf64_Rela *rela, const char *sh_orig_name) in emit_rela_abs64() argument
342 elf64toh(rela->r_offset)); in emit_rela_abs64()
364 Elf64_Rela *rela; in emit_rela_section() local
372 for_each_rela(sh_rela, rela) { in emit_rela_section()
373 uint32_t type = (uint32_t)elf64toh(rela->r_info); in emit_rela_section()
376 assert_lt(elf64toh(rela->r_offset), elf64toh(sh_orig->sh_size), "0x%lx"); in emit_rela_section()
384 emit_rela_abs64(rela, sh_orig_name); in emit_rela_section()
/arch/ia64/kernel/
Dmodule.c321 duplicate_reloc (const Elf64_Rela *rela, unsigned int num) in duplicate_reloc() argument
326 if (rela[i].r_info == rela[num].r_info && rela[i].r_addend == rela[num].r_addend) in duplicate_reloc()
334 count_gots (const Elf64_Rela *rela, unsigned int num) in count_gots() argument
341 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_gots()
351 if (!duplicate_reloc(rela, i)) in count_gots()
361 count_plts (const Elf64_Rela *rela, unsigned int num) in count_plts() argument
368 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_plts()
376 if (!duplicate_reloc(rela, i)) in count_plts()
387 count_fdescs (const Elf64_Rela *rela, unsigned int num) in count_fdescs() argument
393 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_fdescs()
[all …]
/arch/powerpc/boot/
DzImage.lds.S47 .rela.dyn :
52 *(.rela*)
/arch/parisc/kernel/
Dmodule.c207 static inline unsigned long count_gots(const Elf_Rela *rela, unsigned long n) in count_gots() argument
212 static inline unsigned long count_fdescs(const Elf_Rela *rela, unsigned long n) in count_fdescs() argument
217 static inline unsigned long count_stubs(const Elf_Rela *rela, unsigned long n) in count_stubs() argument
221 for (; n > 0; n--, rela++) in count_stubs()
223 switch (ELF32_R_TYPE(rela->r_info)) { in count_stubs()
233 static inline unsigned long count_gots(const Elf_Rela *rela, unsigned long n) in count_gots() argument
237 for (; n > 0; n--, rela++) in count_gots()
239 switch (ELF64_R_TYPE(rela->r_info)) { in count_gots()
250 static inline unsigned long count_fdescs(const Elf_Rela *rela, unsigned long n) in count_fdescs() argument
254 for (; n > 0; n--, rela++) in count_fdescs()
[all …]
/arch/powerpc/kernel/vdso64/
Dvdso64.lds.S73 .rela.dyn ALIGN(8) : { *(.rela.dyn) }
/arch/riscv/kernel/
Dmodule-sections.c63 static bool duplicate_rela(const Elf_Rela *rela, int idx) in duplicate_rela() argument
67 if (is_rela_equal(&rela[i], &rela[idx])) in duplicate_rela()
/arch/s390/kernel/vdso64/
Dvdso64.lds.S52 .rela.dyn ALIGN(8) : { *(.rela.dyn) }

12