/arch/x86/kernel/ |
D | syscall_64.c | 8 #define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat) argument 11 # define __SYSCALL_X32(nr, sym, compat) __SYSCALL_64(nr, sym, compat) argument 13 # define __SYSCALL_X32(nr, sym, compat) /* nothing */ argument 16 #define __SYSCALL_64(nr, sym, compat) extern asmlinkage void sym(void) ; argument 20 #define __SYSCALL_64(nr, sym, compat) [nr] = sym, argument
|
D | syscall_32.c | 8 #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void sym(void) ; argument 12 #define __SYSCALL_I386(nr, sym, compat) [nr] = sym, argument
|
D | module.c | 56 Elf32_Sym *sym; in apply_relocate() local 67 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 73 *location += sym->st_value; in apply_relocate() 77 *location += sym->st_value - (uint32_t)location; in apply_relocate() 96 Elf64_Sym *sym; in apply_relocate_add() local 109 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 114 sym->st_value, rel[i].r_addend, (u64)loc); in apply_relocate_add() 116 val = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
D | asm-offsets_64.c | 3 #define __SYSCALL_64(nr, sym, compat) [nr] = 1, argument 4 #define __SYSCALL_COMMON(nr, sym, compat) [nr] = 1, argument 6 # define __SYSCALL_X32(nr, sym, compat) [nr] = 1, argument 8 # define __SYSCALL_X32(nr, sym, compat) /* nothing */ argument 13 #define __SYSCALL_I386(nr, sym, compat) [nr] = 1, argument
|
/arch/ia64/kernel/ |
D | paravirtentry.S | 30 #define DATA8(sym, init_value) \ argument 33 .global sym ; \ 34 sym: ; \ 48 #define BRANCH_PROC(sym, reg, breg, type) \ argument 49 DATA8(paravirt_ ## sym ## _targ, ia64_native_ ## sym) ; \ 50 GLOBAL_ENTRY(paravirt_ ## sym) ; \ 51 BRANCH(paravirt_ ## sym ## _targ, reg, breg, type) ; \ 52 END(paravirt_ ## sym) 54 #define BRANCH_PROC_UNWINFO(sym, reg, breg, type) \ argument 55 DATA8(paravirt_ ## sym ## _targ, ia64_native_ ## sym) ; \ [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)) 11 #define DEFINE_STR(sym, val) asm volatile("\n->" #sym " " STR(val) " " #val: : ) argument 15 #define OFFSET(sym, str, mem) \ argument 16 DEFINE(sym, offsetof(struct str, mem));
|
/arch/x86/um/ |
D | sys_call_table_64.c | 38 #define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat) argument 39 #define __SYSCALL_X32(nr, sym, compat) /* Not supported */ argument 41 #define __SYSCALL_64(nr, sym, compat) extern asmlinkage void sym(void) ; argument 45 #define __SYSCALL_64(nr, sym, compat) [ nr ] = sym, argument
|
D | user-offsets.c | 12 #define __SYSCALL_I386(nr, sym, compat) [nr] = 1, argument 17 #define __SYSCALL_64(nr, sym, compat) [nr] = 1, argument 18 #define __SYSCALL_COMMON(nr, sym, compat) [nr] = 1, argument 19 #define __SYSCALL_X32(nr, sym, compat) /* Not supported */ argument 25 #define DEFINE(sym, val) \ argument 26 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 28 #define DEFINE_LONGS(sym, val) \ argument 29 asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long)))
|
D | sys_call_table_32.c | 36 #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void sym(void) ; argument 40 #define __SYSCALL_I386(nr, sym, compat) [ nr ] = sym, argument
|
/arch/x86/tools/ |
D | relocs.c | 236 static const char *sym_name(const char *sym_strtab, Elf32_Sym *sym) in sym_name() argument 240 if (sym->st_name) { in sym_name() 241 name = sym_strtab + sym->st_name; in sym_name() 244 name = sec_name(sym->st_shndx); in sym_name() 409 Elf32_Sym *sym = &sec->symtab[j]; in read_symtabs() local 410 sym->st_name = elf32_to_cpu(sym->st_name); in read_symtabs() 411 sym->st_value = elf32_to_cpu(sym->st_value); in read_symtabs() 412 sym->st_size = elf32_to_cpu(sym->st_size); in read_symtabs() 413 sym->st_shndx = elf16_to_cpu(sym->st_shndx); in read_symtabs() 465 Elf32_Sym *sym; in print_absolute_symbols() local [all …]
|
/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/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/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/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/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/sparc/kernel/ |
D | module.c | 81 Elf_Sym *sym; in module_frob_arch_sections() local 91 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections() 95 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections() 96 if (ELF_ST_TYPE(sym[i].st_info) == STT_REGISTER) { in module_frob_arch_sections() 97 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections() 99 char *name = strtab + sym[i].st_name; in module_frob_arch_sections() 115 Elf_Sym *sym; in apply_relocate_add() local 133 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 135 v = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/arch/unicore32/kernel/ |
D | module.c | 52 Elf32_Sym *sym; in apply_relocate() local 64 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 83 *(u32 *)loc += sym->st_value; in apply_relocate() 93 offset += sym->st_value - loc; in apply_relocate() 100 relindex, i, strtab + sym->st_name); in apply_relocate()
|
/arch/arm/include/asm/ |
D | unified.h | 40 #define BSYM(sym) sym + 1 52 #define BSYM(sym) sym
|
/arch/arm/kernel/ |
D | module.c | 60 Elf32_Sym *sym; in apply_relocate() local 74 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 75 symname = strtab + sym->st_name; in apply_relocate() 92 *(u32 *)loc += sym->st_value; in apply_relocate() 102 offset += sym->st_value - loc; in apply_relocate() 109 sym->st_value); in apply_relocate() 129 offset = *(u32 *)loc + sym->st_value - loc; in apply_relocate() 139 offset += sym->st_value; in apply_relocate() 176 offset += sym->st_value - loc; in apply_relocate() 187 if ((ELF32_ST_TYPE(sym->st_info) == STT_FUNC && in apply_relocate() [all …]
|
/arch/mips/kernel/ |
D | module.c | 267 Elf_Sym *sym; in apply_relocate() local 281 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 283 if (IS_ERR_VALUE(sym->st_value)) { in apply_relocate() 285 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) in apply_relocate() 288 me->name, strtab + sym->st_name); in apply_relocate() 292 v = sym->st_value; in apply_relocate() 307 Elf_Sym *sym; in apply_relocate_add() local 321 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 323 if (IS_ERR_VALUE(sym->st_value)) { in apply_relocate_add() 325 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) in apply_relocate_add() [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/ia64/kvm/ |
D | kvm_lib.c | 18 #define EXPORT_SYMBOL(sym) argument 19 #define EXPORT_SYMBOL_GPL(sym) argument
|
/arch/parisc/kernel/ |
D | module.c | 84 me->name, strtab + sym->st_name, (unsigned long)val, bits); \ 552 Elf32_Sym *sym; in apply_relocate_add() local 571 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 573 if (!sym->st_value) { in apply_relocate_add() 575 me->name, strtab + sym->st_name); in apply_relocate_add() 581 val = sym->st_value; in apply_relocate_add() 587 strtab + sym->st_name, in apply_relocate_add() 647 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 662 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 689 Elf64_Sym *sym; in apply_relocate_add() local [all …]
|
/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()
|
/arch/sh/kernel/ |
D | module.c | 45 Elf32_Sym *sym; in apply_relocate_add() local 58 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 60 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add() 68 relocation |= !!(sym->st_other & 4); in apply_relocate_add()
|