/arch/um/kernel/ |
D | dyn.lds.S | 30 .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 …]
|
D | uml.lds.S | 55 .rela.plt : { 56 *(.rela.plt) 58 *(.rela.iplt)
|
/arch/cris/kernel/ |
D | module.c | 52 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 57 for (i = 0; i < sechdrs[relsec].sh_size / sizeof (*rela); i++) { in apply_relocate_add() 61 + rela[i].r_offset); in apply_relocate_add() 66 + ELF32_R_SYM (rela[i].r_info)); in apply_relocate_add() 67 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add() 69 *loc = sym->st_value + rela[i].r_addend; in apply_relocate_add() 72 *loc = sym->st_value - (unsigned)loc + rela[i].r_addend - 4; in apply_relocate_add() 76 me->name, ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
|
/arch/xtensa/kernel/ |
D | module.c | 56 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 65 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 67 + rela[i].r_offset; in apply_relocate_add() 69 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() 70 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 72 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add() 161 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add() 181 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add() 187 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
|
/arch/microblaze/kernel/ |
D | module.c | 26 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 37 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 40 rela[i].r_offset; in apply_relocate_add() 42 ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() 43 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 45 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add() 113 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
|
/arch/alpha/kernel/ |
D | module.c | 41 process_reloc_for_got(Elf64_Rela *rela, in process_reloc_for_got() argument 44 unsigned long r_sym = ELF64_R_SYM (rela->r_info); in process_reloc_for_got() 45 unsigned long r_type = ELF64_R_TYPE (rela->r_info); in process_reloc_for_got() 46 Elf64_Sxword r_addend = rela->r_addend; in process_reloc_for_got() 72 rela->r_info |= g->got_offset << 8; in process_reloc_for_got() 80 Elf64_Rela *rela; in module_frob_arch_sections() local 125 rela = (void *)hdr + s->sh_offset; in module_frob_arch_sections() 127 process_reloc_for_got(rela+i, chains, in module_frob_arch_sections() 149 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 150 unsigned long i, n = sechdrs[relsec].sh_size / sizeof(*rela); in apply_relocate_add() [all …]
|
/arch/powerpc/kernel/ |
D | module_32.c | 36 static unsigned int count_relocs(const Elf32_Rela *rela, unsigned int num) in count_relocs() argument 45 if (ELF32_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs() 46 (r_info != ELF32_R_SYM(rela[i].r_info) || in count_relocs() 47 r_addend != rela[i].r_addend)) { in count_relocs() 49 r_info = ELF32_R_SYM(rela[i].r_info); in count_relocs() 50 r_addend = rela[i].r_addend; in count_relocs() 219 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 226 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 229 + rela[i].r_offset; in apply_relocate_add() 233 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() [all …]
|
D | module_64.c | 210 static unsigned int count_relocs(const Elf64_Rela *rela, unsigned int num) in count_relocs() argument 220 if (ELF64_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs() 221 (r_info != ELF64_R_SYM(rela[i].r_info) || in count_relocs() 222 r_addend != rela[i].r_addend)) { in count_relocs() 224 r_info = ELF64_R_SYM(rela[i].r_info); in count_relocs() 225 r_addend = rela[i].r_addend; in count_relocs() 494 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 512 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 515 + rela[i].r_offset; in apply_relocate_add() 518 + ELF64_R_SYM(rela[i].r_info); in apply_relocate_add() [all …]
|
D | vmlinux.lds.S | 180 .rela.dyn : AT(ADDR(.rela.dyn) - LOAD_OFFSET) 183 *(.rela*)
|
/arch/s390/kernel/ |
D | module.c | 68 static void check_rela(Elf_Rela *rela, struct module *me) in check_rela() argument 72 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela() 73 switch (ELF_R_TYPE (rela->r_info)) { in check_rela() 122 Elf_Rela *rela; in module_frob_arch_sections() local 165 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections() 167 check_rela(rela + j, me); in module_frob_arch_sections() 219 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela() argument 228 loc = base + rela->r_offset; in apply_rela() 231 r_sym = ELF_R_SYM(rela->r_info); in apply_rela() 232 r_type = ELF_R_TYPE(rela->r_info); in apply_rela() [all …]
|
/arch/hexagon/kernel/ |
D | module.c | 89 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 100 sym = sym_base + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() 103 location = loc_base + rela[i].r_offset; in apply_relocate_add() 106 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 109 i, value, location, ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add() 113 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add() 157 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
|
/arch/avr32/kernel/ |
D | module.c | 30 static inline int check_rela(Elf32_Rela *rela, struct module *module, in check_rela() argument 35 info = module->arch.syminfo + ELF32_R_SYM(rela->r_info); in check_rela() 36 switch (ELF32_R_TYPE(rela->r_info)) { in check_rela() 43 if (rela->r_addend != 0) { in check_rela() 46 strings + symbols[ELF32_R_SYM(rela->r_info)].st_name, in check_rela() 47 rela->r_offset); in check_rela() 55 strings + symbols[ELF32_R_SYM(rela->r_info)].st_name); in check_rela() 67 Elf32_Rela *rela; in module_frob_arch_sections() local 110 rela = (void *)hdr + sechdrs[i].sh_offset; in module_frob_arch_sections() 112 ret = check_rela(rela + j, module, in module_frob_arch_sections()
|
/arch/metag/kernel/ |
D | module.c | 25 static unsigned int count_relocs(const Elf32_Rela *rela, unsigned int num) in count_relocs() argument 34 if (ELF32_R_TYPE(rela[i].r_info) == R_METAG_RELBRANCH && in count_relocs() 35 (r_info != ELF32_R_SYM(rela[i].r_info) || in count_relocs() 36 r_addend != rela[i].r_addend)) { in count_relocs() 38 r_info = ELF32_R_SYM(rela[i].r_info); in count_relocs() 39 r_addend = rela[i].r_addend; in count_relocs()
|
/arch/ia64/kernel/ |
D | module.c | 321 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/ |
D | zImage.lds.S | 38 .rela.dyn : 43 *(.rela*)
|
/arch/parisc/kernel/ |
D | module.c | 227 static inline unsigned long count_gots(const Elf_Rela *rela, unsigned long n) in count_gots() argument 232 static inline unsigned long count_fdescs(const Elf_Rela *rela, unsigned long n) in count_fdescs() argument 237 static inline unsigned long count_stubs(const Elf_Rela *rela, unsigned long n) in count_stubs() argument 241 for (; n > 0; n--, rela++) in count_stubs() 243 switch (ELF32_R_TYPE(rela->r_info)) { in count_stubs() 253 static inline unsigned long count_gots(const Elf_Rela *rela, unsigned long n) in count_gots() argument 257 for (; n > 0; n--, rela++) in count_gots() 259 switch (ELF64_R_TYPE(rela->r_info)) { in count_gots() 270 static inline unsigned long count_fdescs(const Elf_Rela *rela, unsigned long n) in count_fdescs() argument 274 for (; n > 0; n--, rela++) in count_fdescs() [all …]
|
/arch/s390/kernel/vdso32/ |
D | vdso32.lds.S | 45 .rela.dyn ALIGN(8) : { *(.rela.dyn) }
|
/arch/s390/kernel/vdso64/ |
D | vdso64.lds.S | 45 .rela.dyn ALIGN(8) : { *(.rela.dyn) }
|
/arch/powerpc/kernel/vdso64/ |
D | vdso64.lds.S | 61 .rela.dyn ALIGN(8) : { *(.rela.dyn) }
|
/arch/mips/kernel/ |
D | Makefile | 36 obj-$(CONFIG_MODULES_USE_ELF_RELA) += module-rela.o
|