/arch/arm/include/asm/ |
D | ftrace.h | 59 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument 62 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name() 63 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name() 64 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name() 65 sym = "sys_statfs64"; in arch_syscall_match_sym_name() 66 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name() 67 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name() 68 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name() 69 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name() 72 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
|
/arch/arm64/include/asm/ |
D | assembler.h | 194 .macro adr_l, dst, sym 196 adrp \dst, \sym 197 add \dst, \dst, :lo12:\sym 199 movz \dst, #:abs_g3:\sym 200 movk \dst, #:abs_g2_nc:\sym 201 movk \dst, #:abs_g1_nc:\sym 202 movk \dst, #:abs_g0_nc:\sym 213 .macro ldr_l, dst, sym, tmp= 216 adrp \dst, \sym 217 ldr \dst, [\dst, :lo12:\sym] [all …]
|
D | kvm_asm.h | 36 #define kvm_ksym_ref(sym) \ argument 38 void *val = &sym; \ 40 val = phys_to_virt((u64)&sym - kimage_voffset); \
|
/arch/x86/tools/ |
D | relocs.c | 255 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument 259 if (sym->st_name) { in sym_name() 260 name = sym_strtab + sym->st_name; in sym_name() 263 name = sec_name(sym->st_shndx); in sym_name() 276 Elf_Sym *sym; in sym_lookup() local 285 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup() 286 if (!sym->st_name) in sym_lookup() 288 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup() 289 return sym; in sym_lookup() 472 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local [all …]
|
/arch/x86/um/shared/sysdep/ |
D | kernel-offsets.h | 7 #define DEFINE(sym, val) \ argument 8 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 12 #define OFFSET(sym, str, mem) \ argument 13 DEFINE(sym, offsetof(struct str, mem));
|
/arch/tile/kernel/ |
D | hvglue.S | 2 .macro gensym sym, val, size 4 .global _\sym 5 .type _\sym,function 6 _\sym: 7 .size _\sym,\size 9 .globl \sym 10 .set \sym,_\sym
|
/arch/x86/entry/ |
D | syscall_64.c | 9 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsign… argument 13 #define __SYSCALL_64(nr, sym, qual) [nr] = sym, argument
|
D | syscall_32.c | 9 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument 13 #define __SYSCALL_I386(nr, sym, qual) [nr] = sym, argument
|
/arch/x86/um/ |
D | sys_call_table_32.c | 28 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument 32 #define __SYSCALL_I386(nr, sym, qual) [ nr ] = sym, argument
|
D | sys_call_table_64.c | 38 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsign… argument 42 #define __SYSCALL_64(nr, sym, qual) [ nr ] = sym, argument
|
D | user-offsets.c | 12 #define __SYSCALL_I386(nr, sym, qual) [nr] = 1, argument 17 #define __SYSCALL_64(nr, sym, qual) [nr] = 1, argument 23 #define DEFINE(sym, val) \ argument 24 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 26 #define DEFINE_LONGS(sym, val) \ argument 27 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/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/frv/kernel/ |
D | asm-offsets.c | 17 #define DEF_PTREG(sym, reg) \ argument 18 asm volatile("\n->" #sym " %0 offsetof(struct pt_regs, " #reg ")" \ 21 #define DEF_IREG(sym, reg) \ argument 22 asm volatile("\n->" #sym " %0 offsetof(struct user_context, " #reg ")" \ 25 #define DEF_FREG(sym, reg) \ argument 26 asm volatile("\n->" #sym " %0 offsetof(struct user_context, " #reg ")" \ 29 #define DEF_0REG(sym, reg) \ argument 30 asm volatile("\n->" #sym " %0 offsetof(struct frv_frame0, " #reg ")" \
|
/arch/arm64/kernel/ |
D | image.h | 46 #define DEFINE_IMAGE_LE64(sym, data) \ argument 47 sym##_lo32 = DATA_LE32((data) & 0xffffffff); \ 48 sym##_hi32 = DATA_LE32((data) >> 32) 86 #define KALLSYMS_HIDE(sym) ABSOLUTE(sym) argument
|
D | module-plts.c | 30 Elf64_Sym *sym) in module_emit_plt_entry() argument 34 u64 val = sym->st_value + rela->r_addend; in module_emit_plt_entry() 49 if (rela->r_addend == 0 && sym->st_size != 0) { in module_emit_plt_entry() 50 BUG_ON(sym->st_size < (u64)plt || sym->st_size >= (u64)&plt[i]); in module_emit_plt_entry() 51 return sym->st_size; in module_emit_plt_entry() 76 sym->st_size = (u64)&plt[i]; in module_emit_plt_entry()
|
/arch/x86/include/asm/ |
D | atomic64_32.h | 16 #define __ATOMIC64_DECL(sym) void atomic64_##sym(atomic64_t *, ...) argument 20 #define ATOMIC64_DECL_ONE(sym) __ATOMIC64_DECL(sym); \ argument 21 ATOMIC64_EXPORT(atomic64_##sym) 29 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8) argument 35 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8); \ argument 36 ATOMIC64_DECL_ONE(sym##_386)
|
/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/arm/kernel/ |
D | module.c | 66 Elf32_Sym *sym; in apply_relocate() local 81 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 82 symname = strtab + sym->st_name; in apply_relocate() 100 *(u32 *)loc += sym->st_value; in apply_relocate() 106 if (sym->st_value & 3) { in apply_relocate() 117 offset += sym->st_value - loc; in apply_relocate() 137 sym->st_value); in apply_relocate() 158 offset = *(u32 *)loc + sym->st_value - loc; in apply_relocate() 168 offset += sym->st_value; in apply_relocate() 191 if (ELF32_ST_TYPE(sym->st_info) == STT_FUNC && in apply_relocate() [all …]
|
/arch/x86/kernel/ |
D | machine_kexec_64.c | 418 Elf64_Sym *sym; in arch_kexec_apply_relocations_add() local 475 sym = (Elf64_Sym *)symtabsec->sh_offset + in arch_kexec_apply_relocations_add() 478 if (sym->st_name) in arch_kexec_apply_relocations_add() 479 name = strtab + sym->st_name; in arch_kexec_apply_relocations_add() 481 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 484 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add() 485 sym->st_size); in arch_kexec_apply_relocations_add() 487 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 492 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 497 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() [all …]
|
/arch/sparc/kernel/ |
D | module.c | 60 Elf_Sym *sym; in module_frob_arch_sections() local 70 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections() 74 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections() 75 if (ELF_ST_TYPE(sym[i].st_info) == STT_REGISTER) in module_frob_arch_sections() 76 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections() 90 Elf_Sym *sym; in apply_relocate_add() local 108 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 110 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() 641 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 656 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 687 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()
|