Home
last modified time | relevance | path

Searched refs:r_offset (Results 1 – 46 of 46) sorted by relevance

/linux-4.4.14/arch/score/kernel/
Dmodule.c43 s32 r_offset; in apply_relocate() local
45 r_offset = ELF32_R_SYM(rel->r_info); in apply_relocate()
46 if ((r_offset < 0) || in apply_relocate()
47 (r_offset > (symsec->sh_size / sizeof(Elf32_Sym)))) { in apply_relocate()
53 sym = ((Elf32_Sym *)symsec->sh_addr) + r_offset; 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()
/linux-4.4.14/net/rds/
Dpage.c42 unsigned long r_offset; member
124 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc()
131 if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc()
132 sg_set_page(scat, rem->r_page, bytes, rem->r_offset); in rds_page_remainder_alloc()
135 if (rem->r_offset != 0) in rds_page_remainder_alloc()
138 rem->r_offset += bytes; in rds_page_remainder_alloc()
139 if (rem->r_offset == PAGE_SIZE) { in rds_page_remainder_alloc()
169 rem->r_offset = 0; in rds_page_remainder_alloc()
/linux-4.4.14/arch/unicore32/kernel/
Dmodule.c58 if (rel->r_offset < 0 || rel->r_offset > in apply_relocate()
62 module->name, relindex, i, rel->r_offset, in apply_relocate()
67 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
/linux-4.4.14/arch/h8300/kernel/
Dmodule.c23 + rela[i].r_offset); in apply_relocate_add()
68 me->name, rela[i].r_offset); in apply_relocate_add()
/linux-4.4.14/include/uapi/linux/
Delf.h161 Elf32_Addr r_offset; member
166 Elf64_Addr r_offset; /* Location at which to apply the action */ member
171 Elf32_Addr r_offset; member
177 Elf64_Addr r_offset; /* Location at which to apply the action */ member
/linux-4.4.14/arch/nios2/kernel/
Dmodule.c59 + rela[i].r_offset); in apply_relocate_add()
69 rela[i].r_offset, strtab + sym->st_name); in apply_relocate_add()
/linux-4.4.14/arch/arc/kernel/
Dmodule.c89 location = sec_to_patch + rel_entry[i].r_offset; in apply_relocate_add()
98 rel_entry[i].r_offset, rel_entry[i].r_addend, in apply_relocate_add()
/linux-4.4.14/arch/m68k/kernel/
Dmodule.c38 + rel[i].r_offset; in apply_relocate()
78 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/mips/include/asm/
Dmodule.h19 Elf64_Addr r_offset; /* Address of relocation. */ member
28 Elf64_Addr r_offset; /* Address of relocation. */ member
/linux-4.4.14/arch/arm/kernel/
Dmodule.c84 if (rel->r_offset < 0 || rel->r_offset > dstsec->sh_size - sizeof(u32)) { in apply_relocate()
87 rel->r_offset, dstsec->sh_size); in apply_relocate()
91 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
Dmodule-plts.c94 loc1 = (u32 *)(base + rel[i].r_offset); in duplicate_rel()
95 loc2 = (u32 *)(base + rel[num].r_offset); in duplicate_rel()
/linux-4.4.14/scripts/mod/
Dmodpost.c1524 from = find_elf_symbol2(elf, r->r_offset, fromsec); in default_mismatch_handler()
1539 fromsec, r->r_offset, fromsym, in default_mismatch_handler()
1570 extable_entry_size = r->r_offset * 2; in find_extable_entry_size()
1580 if (r->r_offset && extable_entry_size == 0) in is_extable_fault_address()
1583 return ((r->r_offset == 0) || in is_extable_fault_address()
1584 (r->r_offset % extable_entry_size == 0)); in is_extable_fault_address()
1595 Elf_Sym* fromsym = find_elf_symbol2(elf, r->r_offset, fromsec); in report_extable_warnings()
1611 modname, fromsec, (long)r->r_offset, from_pretty_name, in report_extable_warnings()
1625 fromsec, (long)r->r_offset, tosec, tosec, tosec); in report_extable_warnings()
1647 fromsec, (long)r->r_offset, tosec, modname); in extable_mismatch_handler()
[all …]
/linux-4.4.14/arch/x86/tools/
Drelocs.c506 rel->r_offset = elf_addr_to_cpu(rel->r_offset); in read_relocs()
618 rel->r_offset, in print_absolute_relocs()
754 ElfW(Addr) offset = rel->r_offset; in do_reloc64()
859 add_reloc(&relocs32, rel->r_offset); in do_reloc32()
898 add_reloc(&relocs16, rel->r_offset); in do_reloc_real()
920 add_reloc(&relocs32, rel->r_offset); in do_reloc_real()
925 add_reloc(&relocs32, rel->r_offset); in do_reloc_real()
/linux-4.4.14/arch/avr32/kernel/
Dmodule.c45 rela->r_offset); in check_rela()
163 location = (void *)dstsec->sh_addr + rel->r_offset; in apply_relocate_add()
276 rel->r_offset, relocation); in apply_relocate_add()
/linux-4.4.14/arch/tile/kernel/
Dmodule.c139 + rel[i].r_offset; in apply_relocate_add()
216 rel[i].r_offset, location); in apply_relocate_add()
/linux-4.4.14/arch/x86/kernel/
Dmodule.c115 + rel[i].r_offset; in apply_relocate()
156 + rel[i].r_offset; in apply_relocate_add()
Dmachine_kexec_64.c459 location = (void *)(section->sh_offset + rel[i].r_offset); in arch_kexec_apply_relocations_add()
462 address = section->sh_addr + rel[i].r_offset; in arch_kexec_apply_relocations_add()
/linux-4.4.14/arch/openrisc/kernel/
Dmodule.c37 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/cris/kernel/
Dmodule.c61 + rela[i].r_offset); in apply_relocate_add()
/linux-4.4.14/scripts/
Drecordmcount.h167 Elf_Addr current_r_offset = _w(rp->r_offset); in MIPS_is_fake_mcount()
331 _w(_w(relp->r_offset) - recval + mcount_adjust); in sift_rel_mcount()
332 mrelp->r_offset = _w(offbase in sift_rel_mcount()
380 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset)); in nop_mcount()
/linux-4.4.14/arch/microblaze/kernel/
Dmodule.c40 rela[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/sh/kernel/
Dmodule.c55 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/mn10300/kernel/
Dmodule.c75 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/c6x/kernel/
Dmodule.c64 + rel[i].r_offset - offset; in apply_relocate_add()
/linux-4.4.14/arch/xtensa/kernel/
Dmodule.c67 + rela[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/mips/kernel/
Dmodule-rela.c124 + rel[i].r_offset; in apply_relocate_add()
Dmodule.c213 + rel[i].r_offset; in apply_relocate()
Dvpe.c443 + rel[i].r_offset; in apply_relocations()
460 rel[i].r_offset, r ? r : "UNKNOWN", in apply_relocations()
/linux-4.4.14/arch/hexagon/kernel/
Dmodule.c103 location = loc_base + rela[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/m32r/kernel/
Dmodule.c93 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/sparc/kernel/
Dmodule.c99 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/include/linux/
Dmemstick.h144 unsigned char r_offset; member
/linux-4.4.14/arch/metag/kernel/
Dmodule.c216 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/powerpc/kernel/
Dmodule_32.c229 + rela[i].r_offset; in apply_relocate_add()
Dmodule_64.c515 + rela[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/alpha/kernel/
Dmodule.c174 location = base + rela[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/blackfin/kernel/
Dmodule.c166 rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/samples/bpf/
Dbpf_load.c207 insn_idx = rel.r_offset / sizeof(struct bpf_insn); in parse_relo_and_apply()
/linux-4.4.14/arch/arm64/kernel/
Dmodule.c223 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/parisc/kernel/
Dmodule.c561 + rel[i].r_offset; in apply_relocate_add()
697 + rel[i].r_offset; in apply_relocate_add()
/linux-4.4.14/arch/s390/kernel/
Dmodule.c218 loc = base + rela->r_offset; in apply_rela()
/linux-4.4.14/drivers/memstick/core/
Dmemstick.c396 card->reg_addr.r_offset = offsetof(struct ms_register, id); in memstick_alloc_card()
Dms_block.c215 msb->reg_addr.r_offset = offsetof(struct ms_register, id); in msb_invalidate_reg_window()
290 if (msb->reg_addr.r_offset != offset || in msb_read_regs()
293 msb->reg_addr.r_offset = offset; in msb_read_regs()
Dmspro_block.c1138 card->reg_addr.r_offset = offsetof(struct mspro_register, status); in mspro_block_init_card()
/linux-4.4.14/arch/ia64/kernel/
Dmodule.c831 (void *) target_sec->sh_addr + rela[i].r_offset); in apply_relocate_add()
/linux-4.4.14/tools/lib/bpf/
Dlibbpf.c637 insn_idx = rel.r_offset / sizeof(struct bpf_insn); in bpf_program__collect_reloc()