Home
last modified time | relevance | path

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

12

/Linux-v5.10/arch/um/kernel/
Ddyn.lds.S30 .rela.init : { *(.rela.init) }
32 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
34 .rela.fini : { *(.rela.fini) }
36 .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
38 .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
40 .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
42 .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
44 .rela.ctors : { *(.rela.ctors) }
46 .rela.dtors : { *(.rela.dtors) }
48 .rela.got : { *(.rela.got) }
[all …]
Duml.lds.S59 .rela.plt : {
60 *(.rela.plt)
62 *(.rela.iplt)
/Linux-v5.10/arch/mips/kernel/
Dmodule.c44 u32 base, Elf_Addr v, bool rela) in apply_r_mips_none() argument
50 u32 base, Elf_Addr v, bool rela) in apply_r_mips_32() argument
58 u32 base, Elf_Addr v, bool rela) in apply_r_mips_26() argument
79 u32 base, Elf_Addr v, bool rela) in apply_r_mips_hi16() argument
83 if (rela) { in apply_r_mips_hi16()
118 u32 base, Elf_Addr v, bool rela) in apply_r_mips_lo16() argument
124 if (rela) { in apply_r_mips_lo16()
221 u32 base, Elf_Addr v, bool rela) in apply_r_mips_pc16() argument
227 u32 base, Elf_Addr v, bool rela) in apply_r_mips_pc21() argument
233 u32 base, Elf_Addr v, bool rela) in apply_r_mips_pc26() argument
[all …]
/Linux-v5.10/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()
/Linux-v5.10/arch/arm64/kernel/
Dmodule-plts.c73 void *loc, const Elf64_Rela *rela, in module_emit_plt_entry() argument
81 u64 val = sym->st_value + rela->r_addend; in module_emit_plt_entry()
150 static bool duplicate_rel(const Elf64_Rela *rela, int num) in duplicate_rel() argument
157 return num > 0 && cmp_rela(rela + num, rela + num - 1) == 0; in duplicate_rel()
160 static unsigned int count_plts(Elf64_Sym *syms, Elf64_Rela *rela, int num, in count_plts() argument
170 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_plts()
187 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
204 if (rela[i].r_addend != 0 || !duplicate_rel(rela, i)) in count_plts()
227 min_align = 2ULL << ffz(rela[i].r_offset | 0x7); in count_plts()
256 static bool branch_rela_needs_plt(Elf64_Sym *syms, Elf64_Rela *rela, in branch_rela_needs_plt() argument
[all …]
Dvmlinux.lds.S213 .rela.dyn : ALIGN(8) {
214 *(.rela .rela*)
217 __rela_offset = ABSOLUTE(ADDR(.rela.dyn) - KIMAGE_VADDR);
218 __rela_size = SIZEOF(.rela.dyn);
/Linux-v5.10/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()
/Linux-v5.10/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 …]
/Linux-v5.10/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()
/Linux-v5.10/arch/microblaze/kernel/
Dmodule.c23 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
34 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
37 rela[i].r_offset; in apply_relocate_add()
39 ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
40 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
42 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
110 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/Linux-v5.10/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()
200 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
207 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
210 + rela[i].r_offset; in apply_relocate_add()
214 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
[all …]
Dmodule_64.c150 static unsigned int count_relocs(const Elf64_Rela *rela, unsigned int num) in count_relocs() argument
160 if (ELF64_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
161 (r_info != ELF64_R_SYM(rela[i].r_info) || in count_relocs()
162 r_addend != rela[i].r_addend)) { in count_relocs()
164 r_info = ELF64_R_SYM(rela[i].r_info); in count_relocs()
165 r_addend = rela[i].r_addend; in count_relocs()
527 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local
545 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
548 + rela[i].r_offset; in apply_relocate_add()
551 + ELF64_R_SYM(rela[i].r_info); in apply_relocate_add()
[all …]
Dvmlinux.lds.S275 .rela.dyn : AT(ADDR(.rela.dyn) - LOAD_OFFSET)
278 *(.rela*)
383 *(.glink .iplt .plt .rela* .comment)
/Linux-v5.10/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()
/Linux-v5.10/arch/s390/kernel/
Dmodule.c61 static void check_rela(Elf_Rela *rela, struct module *me) in check_rela() argument
65 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela()
66 switch (ELF_R_TYPE (rela->r_info)) { in check_rela()
115 Elf_Rela *rela; in module_frob_arch_sections() local
158 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
160 check_rela(rela + j, me); in module_frob_arch_sections()
224 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela() argument
234 loc = base + rela->r_offset; in apply_rela()
237 r_sym = ELF_R_SYM(rela->r_info); in apply_rela()
238 r_type = ELF_R_TYPE(rela->r_info); in apply_rela()
[all …]
Dvmlinux.lds.S149 .rela.dyn ALIGN(8) : {
151 *(.rela*)
/Linux-v5.10/arch/s390/boot/
Dstartup.c92 Elf64_Rela *rela_start, *rela_end, *rela; in handle_relocs() local
100 for (rela = rela_start; rela < rela_end; rela++) { in handle_relocs()
101 loc = rela->r_offset + offset; in handle_relocs()
102 val = rela->r_addend; in handle_relocs()
103 r_sym = ELF64_R_SYM(rela->r_info); in handle_relocs()
114 r_type = ELF64_R_TYPE(rela->r_info); in handle_relocs()
/Linux-v5.10/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 …]
/Linux-v5.10/arch/x86/boot/compressed/
Dvmlinux.lds.S113 .rela.dyn : {
114 *(.rela.*) *(.rela_*)
116 ASSERT(SIZEOF(.rela.dyn) == 0, "Unexpected run-time relocations (.rela) detected!")
/Linux-v5.10/tools/objtool/
Dorc_dump.c75 GElf_Rela rela; in orc_dump() local
156 if (!gelf_getrela(rela_orc_ip, i, &rela)) { in orc_dump()
161 if (!gelf_getsym(symtab, GELF_R_SYM(rela.r_info), &sym)) { in orc_dump()
191 printf("%s+%llx:", name, (unsigned long long)rela.r_addend); in orc_dump()
/Linux-v5.10/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 …]
/Linux-v5.10/Documentation/livepatch/
Dmodule-elf-format.rst51 embedding special "dynrela" (dynamic rela) sections in the resulting patch
109 Every symbol referenced by a rela in a livepatch relocation section is a
126 .klp.rela.objname.section_name
132 The relocation section name is prefixed with the string ".klp.rela."
148 .klp.rela.ext4.text.ext4_attr_store
149 .klp.rela.vmlinux.text.cmdline_proc_show
159 …[29] .klp.rela.9p.text.caches.show RELA 0000000000000000 002d58 0000c0 18 AIo 6…
160 …[30] .klp.rela.btrfs.text.btrfs.feature.attr.show RELA 0000000000000000 002e18 000060 18 AIo 6…
162 …[34] .klp.rela.ext4.text.ext4.attr.store RELA 0000000000000000 002fd8 0000d8 18 AIo 6…
163 …[35] .klp.rela.ext4.text.ext4.attr.show RELA 0000000000000000 0030b0 000150 18 AIo 6…
[all …]
/Linux-v5.10/arch/powerpc/boot/
DzImage.lds.S39 .rela.dyn :
44 *(.rela*)
/Linux-v5.10/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()
/Linux-v5.10/arch/s390/kernel/vdso64/
Dvdso64.lds.S48 .rela.dyn ALIGN(8) : { *(.rela.dyn) }

12