/arch/arm/include/asm/ |
D | ftrace.h | 64 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument 67 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name() 68 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name() 69 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name() 70 sym = "sys_statfs64"; in arch_syscall_match_sym_name() 71 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name() 72 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name() 73 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name() 74 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name() 77 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
|
/arch/arm64/include/asm/ |
D | kvm_asm.h | 40 #define kvm_ksym_ref(sym) \ argument 42 void *val = &sym; \ 44 val = phys_to_virt((u64)&sym - kimage_voffset); \ 74 #define __hyp_this_cpu_ptr(sym) \ argument 76 void *__ptr = hyp_symbol_addr(sym); \ 78 (typeof(&sym))__ptr; \ 81 #define __hyp_this_cpu_read(sym) \ argument 83 *__hyp_this_cpu_ptr(sym); \ 88 .macro hyp_adr_this_cpu reg, sym, tmp 89 adr_l \reg, \sym [all …]
|
D | assembler.h | 195 .macro adr_l, dst, sym 197 adrp \dst, \sym 198 add \dst, \dst, :lo12:\sym 200 movz \dst, #:abs_g3:\sym 201 movk \dst, #:abs_g2_nc:\sym 202 movk \dst, #:abs_g1_nc:\sym 203 movk \dst, #:abs_g0_nc:\sym 214 .macro ldr_l, dst, sym, tmp= 217 adrp \dst, \sym 218 ldr \dst, [\dst, :lo12:\sym] [all …]
|
/arch/x86/tools/ |
D | relocs.c | 256 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument 260 if (sym->st_name) { in sym_name() 261 name = sym_strtab + sym->st_name; in sym_name() 264 name = sec_name(sym->st_shndx); in sym_name() 277 Elf_Sym *sym; in sym_lookup() local 286 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup() 287 if (!sym->st_name) in sym_lookup() 289 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup() 290 return sym; in sym_lookup() 473 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local [all …]
|
/arch/tile/kernel/ |
D | hvglue.S | 3 .macro gensym sym, val, size 5 .global _\sym 6 .type _\sym,function 7 _\sym: 8 .size _\sym,\size 10 .globl \sym 11 .set \sym,_\sym
|
/arch/x86/entry/ |
D | syscall_64.c | 10 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsign… argument 14 #define __SYSCALL_64(nr, sym, qual) [nr] = sym, argument
|
D | syscall_32.c | 10 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument 14 #define __SYSCALL_I386(nr, sym, qual) [nr] = sym, argument
|
/arch/x86/um/ |
D | sys_call_table_32.c | 29 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument 33 #define __SYSCALL_I386(nr, sym, qual) [ nr ] = sym, argument
|
D | sys_call_table_64.c | 39 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsign… argument 43 #define __SYSCALL_64(nr, sym, qual) [ nr ] = sym, argument
|
D | user-offsets.c | 13 #define __SYSCALL_I386(nr, sym, qual) [nr] = 1, argument 18 #define __SYSCALL_64(nr, sym, qual) [nr] = 1, argument 24 #define DEFINE(sym, val) \ argument 25 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 27 #define DEFINE_LONGS(sym, val) \ argument 28 asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long)))
|
/arch/m68k/kernel/ |
D | module.c | 30 Elf32_Sym *sym; in apply_relocate() local 41 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 47 *location += sym->st_value; in apply_relocate() 51 *location += sym->st_value - (uint32_t)location; in apply_relocate() 70 Elf32_Sym *sym; in apply_relocate_add() local 81 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 87 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add() 91 *location = rel[i].r_addend + sym->st_value - (uint32_t)location; in apply_relocate_add()
|
/arch/frv/kernel/ |
D | asm-offsets.c | 18 #define DEF_PTREG(sym, reg) OFFSET(sym, pt_regs, reg) argument 19 #define DEF_IREG(sym, reg) OFFSET(sym, user_context, reg) argument 20 #define DEF_FREG(sym, reg) OFFSET(sym, user_context, reg) argument 21 #define DEF_0REG(sym, reg) OFFSET(sym, frv_frame0, reg) argument
|
/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 119 Elf32_Sym sym; in create_vma_map() local 180 if (shdr.sh_entsize != sizeof (sym)) in create_vma_map() 191 for (j = 0; j < shdr.sh_size / sizeof (sym); j++) { in create_vma_map() 192 if (copy_from_user(&sym, spu_elf_start + in create_vma_map() 194 j * sizeof (sym), in create_vma_map() 195 sizeof (sym))) in create_vma_map() 200 sym.st_name, in create_vma_map() 205 ovly_table_sym = sym.st_value; in create_vma_map() 207 ovly_buf_table_sym = sym.st_value; in create_vma_map() 209 ovly_table_end_sym = sym.st_value; in create_vma_map() [all …]
|
/arch/hexagon/kernel/ |
D | module.c | 85 Elf32_Sym *sym; in apply_relocate_add() local 100 sym = sym_base + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() 106 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 110 sym->st_name ? in apply_relocate_add() 111 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add() 123 sym->st_name ? in apply_relocate_add() 124 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add()
|
/arch/arm/kernel/ |
D | module.c | 73 Elf32_Sym *sym; in apply_relocate() local 88 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 89 symname = strtab + sym->st_name; in apply_relocate() 107 *(u32 *)loc += sym->st_value; in apply_relocate() 113 if (sym->st_value & 3) { in apply_relocate() 124 offset += sym->st_value - loc; in apply_relocate() 144 sym->st_value); in apply_relocate() 166 offset += sym->st_value - loc; in apply_relocate() 171 sym->st_value); in apply_relocate() 184 offset += sym->st_value; in apply_relocate() [all …]
|
/arch/unicore32/kernel/ |
D | module.c | 44 Elf32_Sym *sym; in apply_relocate() local 56 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 75 *(u32 *)loc += sym->st_value; in apply_relocate() 85 offset += sym->st_value - loc; in apply_relocate() 92 relindex, i, strtab + sym->st_name); in apply_relocate()
|
/arch/x86/include/asm/ |
D | atomic64_32.h | 17 #define __ATOMIC64_DECL(sym) void atomic64_##sym(atomic64_t *, ...) argument 21 #define ATOMIC64_DECL_ONE(sym) __ATOMIC64_DECL(sym); \ argument 22 ATOMIC64_EXPORT(atomic64_##sym) 30 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8) argument 36 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8); \ argument 37 ATOMIC64_DECL_ONE(sym##_386)
|
/arch/sparc/kernel/ |
D | module.c | 61 Elf_Sym *sym; in module_frob_arch_sections() local 71 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections() 75 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections() 76 if (ELF_ST_TYPE(sym[i].st_info) == STT_REGISTER) in module_frob_arch_sections() 77 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections() 91 Elf_Sym *sym; in apply_relocate_add() local 109 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 111 v = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/arch/mips/kernel/ |
D | vpe.c | 432 Elf32_Sym *sym; in apply_relocations() local 445 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocations() 448 if (!sym->st_value) { in apply_relocations() 450 me->name, strtab + sym->st_name); in apply_relocations() 454 v = sym->st_value; in apply_relocations() 461 strtab + sym->st_name); in apply_relocations() 483 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in simplify_symbols() local 497 switch (sym[i].st_shndx) { in simplify_symbols() 503 size = sym[i].st_value; in simplify_symbols() 504 sym[i].st_value = bssbase; in simplify_symbols() [all …]
|
/arch/parisc/kernel/ |
D | module.c | 84 me->name, strtab + sym->st_name, (unsigned long)val, bits); \ 546 Elf32_Sym *sym; in apply_relocate_add() local 565 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 567 if (!sym->st_value) { in apply_relocate_add() 569 me->name, strtab + sym->st_name); in apply_relocate_add() 575 val = sym->st_value; in apply_relocate_add() 581 strtab + sym->st_name, in apply_relocate_add() 645 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 660 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 691 Elf64_Sym *sym; in apply_relocate_add() local [all …]
|
/arch/score/kernel/ |
D | module.c | 42 Elf32_Sym *sym; in apply_relocate() local 53 sym = ((Elf32_Sym *)symsec->sh_addr) + r_offset; in apply_relocate() 69 *(unsigned long *)loc += sym->st_value; in apply_relocate() 85 uvalue = sym->st_value + offset; in apply_relocate() 109 uvalue = (sym->st_value + offset) >> 1; in apply_relocate()
|
/arch/x86/kernel/ |
D | machine_kexec_64.c | 439 Elf64_Sym *sym; in arch_kexec_apply_relocations_add() local 496 sym = (Elf64_Sym *)symtabsec->sh_offset + in arch_kexec_apply_relocations_add() 499 if (sym->st_name) in arch_kexec_apply_relocations_add() 500 name = strtab + sym->st_name; in arch_kexec_apply_relocations_add() 502 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 505 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add() 506 sym->st_size); in arch_kexec_apply_relocations_add() 508 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 513 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 518 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() [all …]
|
/arch/mips/boot/tools/ |
D | relocs.c | 119 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument 123 if (sym->st_name) in sym_name() 124 name = sym_strtab + sym->st_name; in sym_name() 126 name = sec_name(sym->st_shndx); in sym_name() 342 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local 344 sym->st_name = elf_word_to_cpu(sym->st_name); in read_symtabs() 345 sym->st_value = elf_addr_to_cpu(sym->st_value); in read_symtabs() 346 sym->st_size = elf_xword_to_cpu(sym->st_size); in read_symtabs() 347 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs() 468 Elf_Sym *sym, const char *symname)) in walk_relocs() argument [all …]
|
/arch/x86/lib/ |
D | retpoline.S | 28 #define __EXPORT_THUNK(sym) _ASM_NOKPROBE(sym); EXPORT_SYMBOL(sym) argument
|
/arch/xtensa/kernel/ |
D | module.c | 57 Elf32_Sym *sym; in apply_relocate_add() local 68 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 70 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 94 strtab + sym->st_name); in apply_relocate_add() 118 strtab + sym->st_name); in apply_relocate_add()
|