/arch/um/kernel/ |
D | dyn.lds.S | 31 .rel.init : { *(.rel.init) } 33 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } 35 .rel.fini : { *(.rel.fini) } 37 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) } 39 .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) } 41 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) } 43 .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) } 45 .rel.ctors : { *(.rel.ctors) } 47 .rel.dtors : { *(.rel.dtors) } 49 .rel.got : { *(.rel.got) } [all …]
|
D | uml.lds.S | 50 .rel.plt : { 51 *(.rel.plt) 53 *(.rel.iplt)
|
/arch/m68k/kernel/ |
D | module.c | 29 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() local 35 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 38 + rel[i].r_offset; in apply_relocate() 42 + ELF32_R_SYM(rel[i].r_info); in apply_relocate() 44 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate() 55 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate() 69 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 75 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 78 + rel[i].r_offset; in apply_relocate_add() 82 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() [all …]
|
/arch/x86/kernel/ |
D | module.c | 55 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() local 61 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 64 + rel[i].r_offset; in apply_relocate() 68 + ELF32_R_SYM(rel[i].r_info); in apply_relocate() 70 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate() 81 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate() 95 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 102 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 105 + rel[i].r_offset; in apply_relocate_add() 110 + ELF64_R_SYM(rel[i].r_info); in apply_relocate_add() [all …]
|
/arch/mn10300/kernel/ |
D | module.c | 63 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 72 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 75 + rel[i].r_offset; in apply_relocate_add() 80 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 83 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add() 86 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 96 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add() 101 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 146 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add() 152 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/openrisc/kernel/ |
D | module.c | 27 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 34 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 37 + rel[i].r_offset; in apply_relocate_add() 42 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 43 value = sym->st_value + rel[i].r_addend; in apply_relocate_add() 45 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 66 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/unicore32/kernel/ |
D | module.c | 47 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate() local 50 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate() 55 offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 66 if (rel->r_offset < 0 || rel->r_offset > in apply_relocate() 70 module->name, relindex, i, rel->r_offset, in apply_relocate() 75 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate() 77 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate() 112 module->name, ELF32_R_TYPE(rel->r_info)); in apply_relocate()
|
/arch/score/kernel/ |
D | module.c | 37 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate() local 40 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate() 45 r_offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 55 if ((rel->r_offset < 0) || in apply_relocate() 56 (rel->r_offset > dstsec->sh_size - sizeof(u32))) { in apply_relocate() 59 me->name, relindex, i, rel->r_offset, in apply_relocate() 64 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate() 65 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate() 120 me->name, ELF32_R_TYPE(rel->r_info)); in apply_relocate()
|
/arch/mips/include/asm/ |
D | module.h | 45 #define ELF_MIPS_R_SYM(rel) ELF32_R_SYM(rel.r_info) argument 46 #define ELF_MIPS_R_TYPE(rel) ELF32_R_TYPE(rel.r_info) argument 60 #define ELF_MIPS_R_SYM(rel) (rel.r_sym) argument 61 #define ELF_MIPS_R_TYPE(rel) (rel.r_type) argument
|
/arch/sh/kernel/ |
D | module.c | 44 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 52 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 55 + rel[i].r_offset; in apply_relocate_add() 59 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 60 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add() 71 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 105 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/c6x/kernel/ |
D | module.c | 51 Elf32_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() local 61 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 64 + rel[i].r_offset - offset; in apply_relocate_add() 69 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 72 v = sym->st_value + rel[i].r_addend; in apply_relocate_add() 74 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 117 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/tile/kernel/ |
D | module.c | 141 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 148 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 151 + rel[i].r_offset; in apply_relocate_add() 157 + ELF_R_SYM(rel[i].r_info); in apply_relocate_add() 158 value = sym->st_value + rel[i].r_addend; in apply_relocate_add() 160 switch (ELF_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 217 sym->st_value + rel[i].r_addend, in apply_relocate_add() 218 rel[i].r_offset, location); in apply_relocate_add() 229 me->name, (int) ELF_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/h8300/include/asm/ |
D | flat.h | 20 #define flat_get_relocate_addr(rel) (rel) argument 23 #define flat_put_addr_at_rp(rp, addr, rel) \ argument
|
/arch/arm/kernel/ |
D | module.c | 55 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate() local 58 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate() 67 offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 77 if (rel->r_offset < 0 || rel->r_offset > dstsec->sh_size - sizeof(u32)) { in apply_relocate() 80 rel->r_offset, dstsec->sh_size); in apply_relocate() 84 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate() 86 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate() 108 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 140 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_ABS) in apply_relocate() 193 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() [all …]
|
/arch/sparc/kernel/ |
D | module.c | 114 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 119 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 124 + rel[i].r_offset; in apply_relocate_add() 134 + ELF_R_SYM(rel[i].r_info); in apply_relocate_add() 135 v = sym->st_value + rel[i].r_addend; in apply_relocate_add() 137 switch (ELF_R_TYPE(rel[i].r_info) & 0xff) { in apply_relocate_add() 164 (ELF_R_TYPE(rel[i].r_info) >> 8)) in apply_relocate_add() 201 (int) (ELF_R_TYPE(rel[i].r_info) & 0xff)); in apply_relocate_add()
|
/arch/mips/mm/ |
D | uasm.c | 535 uasm_r_mips_pc16(struct uasm_reloc **rel, u32 *addr, int lid) in uasm_r_mips_pc16() argument 537 (*rel)->addr = addr; in uasm_r_mips_pc16() 538 (*rel)->type = R_MIPS_PC16; in uasm_r_mips_pc16() 539 (*rel)->lab = lid; in uasm_r_mips_pc16() 540 (*rel)++; in uasm_r_mips_pc16() 545 __resolve_relocs(struct uasm_reloc *rel, struct uasm_label *lab) in __resolve_relocs() argument 548 long raddr = (long)rel->addr; in __resolve_relocs() 550 switch (rel->type) { in __resolve_relocs() 552 *rel->addr |= build_bimm(laddr - (raddr + 4)); in __resolve_relocs() 557 rel->type); in __resolve_relocs() [all …]
|
/arch/x86/tools/ |
D | relocs.c | 442 Elf32_Rel *rel = &sec->reltab[j]; in read_relocs() local 443 rel->r_offset = elf32_to_cpu(rel->r_offset); in read_relocs() 444 rel->r_info = elf32_to_cpu(rel->r_info); in read_relocs() 504 Elf32_Rel *rel; in print_absolute_relocs() local 507 rel = &sec->reltab[j]; in print_absolute_relocs() 508 sym = &sh_symtab[ELF32_R_SYM(rel->r_info)]; in print_absolute_relocs() 539 rel->r_offset, in print_absolute_relocs() 540 rel->r_info, in print_absolute_relocs() 541 rel_type(ELF32_R_TYPE(rel->r_info)), in print_absolute_relocs() 551 static void walk_relocs(void (*visit)(Elf32_Rel *rel, Elf32_Sym *sym), in walk_relocs() argument [all …]
|
/arch/blackfin/kernel/ |
D | module.c | 156 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 163 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 166 rel[i].r_offset; in apply_relocate_add() 171 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 173 value += rel[i].r_addend; in apply_relocate_add() 178 ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add() 184 location, value, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add() 186 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 204 ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add() 209 ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/mips/kernel/ |
D | module.c | 266 Elf_Mips_Rel *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate() local 276 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 279 + rel[i].r_offset; in apply_relocate() 282 + ELF_MIPS_R_SYM(rel[i]); in apply_relocate() 294 res = reloc_handlers_rel[ELF_MIPS_R_TYPE(rel[i])](me, location, v); in apply_relocate() 306 Elf_Mips_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() local 316 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 319 + rel[i].r_offset; in apply_relocate_add() 322 + ELF_MIPS_R_SYM(rel[i]); in apply_relocate_add() 332 v = sym->st_value + rel[i].r_addend; in apply_relocate_add() [all …]
|
/arch/avr32/kernel/ |
D | module.c | 154 Elf32_Rela *rel = (void *)relsec->sh_addr; in apply_relocate_add() local 158 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rela); i++, rel++) { in apply_relocate_add() 165 location = (void *)dstsec->sh_addr + rel->r_offset; in apply_relocate_add() 166 sym = (Elf32_Sym *)symsec->sh_addr + ELF32_R_SYM(rel->r_info); in apply_relocate_add() 167 relocation = sym->st_value + rel->r_addend; in apply_relocate_add() 169 info = module->arch.syminfo + ELF32_R_SYM(rel->r_info); in apply_relocate_add() 172 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate_add() 193 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate_add() 278 rel->r_offset, relocation); in apply_relocate_add() 287 module->name, ELF32_R_TYPE(rel->r_info)); in apply_relocate_add()
|
/arch/m32r/kernel/ |
D | module.c | 78 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 90 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 93 + rel[i].r_offset; in apply_relocate_add() 97 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 98 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add() 101 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 198 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/arm/include/asm/ |
D | flat.h | 13 #define flat_get_relocate_addr(rel) (rel) argument
|
/arch/m68k/include/asm/ |
D | flat.h | 13 #define flat_get_relocate_addr(rel) (rel) argument
|
/arch/xtensa/include/asm/ |
D | flat.h | 9 #define flat_get_relocate_addr(rel) (rel) argument
|
/arch/ia64/sn/kernel/ |
D | pio_phys.S | 47 st8.rel [r32]=r33 63 st8.rel [r32]=r33 64 (p9) st8.rel [r34]=r35
|