Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 25 of 56) sorted by relevance

123

/arch/x86/kernel/
Dsyscall_64.c8 #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
Dsyscall_32.c8 #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void sym(void) ; argument
12 #define __SYSCALL_I386(nr, sym, compat) [nr] = sym, argument
Dmodule.c56 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()
Dasm-offsets_64.c3 #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/
Dparavirtentry.S30 #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/
Dkernel-offsets.h7 #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/
Dsys_call_table_64.c38 #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
Duser-offsets.c12 #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)))
Dsys_call_table_32.c36 #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/
Drelocs.c236 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/
Dmodule.c30 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/
Datomic64_32.h17 #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/
Dmodule.c85 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/
Dvma_map.c119 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/
Dasm-offsets.c17 #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/
Dmodule.c81 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/
Dmodule.c52 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/
Dunified.h40 #define BSYM(sym) sym + 1
52 #define BSYM(sym) sym
/arch/arm/kernel/
Dmodule.c60 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/
Dmodule.c267 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/
Dmodule.c42 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/
Dkvm_lib.c18 #define EXPORT_SYMBOL(sym) argument
19 #define EXPORT_SYMBOL_GPL(sym) argument
/arch/parisc/kernel/
Dmodule.c84 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/
Dmodule.c57 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/
Dmodule.c45 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()

123