/arch/ia64/kernel/ |
D | paravirtentry.S | 27 #define DATA8(sym, init_value) \ argument 30 .global sym ; \ 31 sym: ; \ 43 #define BRANCH_PROC(sym, reg, breg) \ argument 44 DATA8(paravirt_ ## sym ## _targ, ia64_native_ ## sym) ; \ 45 GLOBAL_ENTRY(paravirt_ ## sym) ; \ 46 BRANCH(paravirt_ ## sym ## _targ, reg, breg) ; \ 47 END(paravirt_ ## sym) 49 #define BRANCH_PROC_UNWINFO(sym, reg, breg) \ argument 50 DATA8(paravirt_ ## sym ## _targ, ia64_native_ ## sym) ; \ [all …]
|
/arch/um/sys-x86_64/shared/sysdep/ |
D | kernel-offsets.h | 9 #define DEFINE(sym, val) \ argument 10 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 13 #define DEFINE_STR(sym, val) asm volatile("\n->" #sym " " DEFINE_STR1(val) " " #val: : ) argument 17 #define OFFSET(sym, str, mem) \ argument 18 DEFINE(sym, offsetof(struct str, mem));
|
/arch/um/sys-i386/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/boot/compressed/ |
D | relocs.c | 158 static const char *sym_name(const char *sym_strtab, Elf32_Sym *sym) in sym_name() argument 162 if (sym->st_name) { in sym_name() 163 name = sym_strtab + sym->st_name; in sym_name() 166 name = sec_name(secs[sym->st_shndx].shdr.sh_name); in sym_name() 331 Elf32_Sym *sym = &sec->symtab[j]; in read_symtabs() local 332 sym->st_name = elf32_to_cpu(sym->st_name); in read_symtabs() 333 sym->st_value = elf32_to_cpu(sym->st_value); in read_symtabs() 334 sym->st_size = elf32_to_cpu(sym->st_size); in read_symtabs() 335 sym->st_shndx = elf16_to_cpu(sym->st_shndx); in read_symtabs() 389 Elf32_Sym *sym; in print_absolute_symbols() local [all …]
|
/arch/m68knommu/kernel/ |
D | module.c | 47 Elf32_Sym *sym; in apply_relocate() local 58 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 64 *location += sym->st_value; in apply_relocate() 68 *location += sym->st_value - (uint32_t)location; in apply_relocate() 87 Elf32_Sym *sym; in apply_relocate_add() local 98 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 104 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add() 108 *location = rel[i].r_addend + sym->st_value - (uint32_t)location; in apply_relocate_add()
|
/arch/x86/kernel/ |
D | syscall_64.c | 10 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ; argument 15 #define __SYSCALL(nr, sym) [nr] = sym, argument
|
D | module_32.c | 65 Elf32_Sym *sym; in apply_relocate() local 76 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 82 *location += sym->st_value; in apply_relocate() 86 *location += sym->st_value - (uint32_t)location; in apply_relocate()
|
/arch/um/sys-i386/ |
D | user-offsets.c | 9 #define DEFINE(sym, val) \ argument 10 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 12 #define DEFINE_LONGS(sym, val) \ argument 13 asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long))) 15 #define OFFSET(sym, str, mem) \ argument 16 DEFINE(sym, offsetof(struct str, mem));
|
/arch/um/sys-x86_64/ |
D | user-offsets.c | 11 #define DEFINE(sym, val) \ argument 12 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 14 #define DEFINE_LONGS(sym, val) \ argument 15 asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long))) 17 #define OFFSET(sym, str, mem) \ argument 18 DEFINE(sym, offsetof(struct str, mem));
|
D | syscall_table.c | 43 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ; argument 48 #define __SYSCALL(nr, sym) [ nr ] = sym, argument
|
/arch/m68k/kernel/ |
D | module.c | 55 Elf32_Sym *sym; in apply_relocate() local 66 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 72 *location += sym->st_value; in apply_relocate() 76 *location += sym->st_value - (uint32_t)location; in apply_relocate() 95 Elf32_Sym *sym; in apply_relocate_add() local 106 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 112 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add() 116 *location = rel[i].r_addend + sym->st_value - (uint32_t)location; in apply_relocate_add()
|
/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 118 Elf32_Sym sym; in create_vma_map() local 179 if (shdr.sh_entsize != sizeof (sym)) in create_vma_map() 190 for (j = 0; j < shdr.sh_size / sizeof (sym); j++) { in create_vma_map() 191 if (copy_from_user(&sym, spu_elf_start + in create_vma_map() 193 j * sizeof (sym), in create_vma_map() 194 sizeof (sym))) in create_vma_map() 199 sym.st_name, in create_vma_map() 204 ovly_table_sym = sym.st_value; in create_vma_map() 206 ovly_buf_table_sym = sym.st_value; in create_vma_map() 208 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 | 89 Elf_Sym *sym; in module_frob_arch_sections() local 99 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections() 103 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections() 104 if (ELF_ST_TYPE(sym[i].st_info) == STT_REGISTER) { in module_frob_arch_sections() 105 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections() 107 char *name = strtab + sym[i].st_name; in module_frob_arch_sections() 134 Elf_Sym *sym; in apply_relocate_add() local 152 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 154 v = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/arch/arm/kernel/ |
D | armksyms.c | 57 #define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "") argument 59 #define EXPORT_SYMBOL_ALIAS(sym,orig) \ argument 60 EXPORT_CRC_ALIAS(sym) \ 61 static const struct kernel_symbol __ksymtab_##sym \ 63 { (unsigned long)&orig, #sym };
|
D | module.c | 84 Elf32_Sym *sym; in apply_relocate() local 94 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 108 *(u32 *)loc += sym->st_value; in apply_relocate() 118 offset += sym->st_value - loc; in apply_relocate() 125 relindex, i, strtab + sym->st_name); in apply_relocate() 141 offset += sym->st_value; in apply_relocate()
|
/arch/parisc/kernel/ |
D | module.c | 83 me->name, strtab + sym->st_name, (unsigned long)val, bits); \ 523 Elf32_Sym *sym; in apply_relocate_add() local 542 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 544 if (!sym->st_value) { in apply_relocate_add() 546 me->name, strtab + sym->st_name); in apply_relocate_add() 552 val = sym->st_value; in apply_relocate_add() 558 strtab + sym->st_name, in apply_relocate_add() 618 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 633 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 660 Elf64_Sym *sym; in apply_relocate_add() local [all …]
|
/arch/mips/kernel/ |
D | module.c | 290 Elf_Sym *sym; in apply_relocate() local 304 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 306 if (!sym->st_value) { in apply_relocate() 308 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) in apply_relocate() 311 me->name, strtab + sym->st_name); in apply_relocate() 315 v = sym->st_value; in apply_relocate() 330 Elf_Sym *sym; in apply_relocate_add() local 344 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 346 if (!sym->st_value) { in apply_relocate_add() 348 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) in apply_relocate_add() [all …]
|
D | vpe.c | 551 Elf32_Sym *sym; in apply_relocations() local 564 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocations() 567 if (!sym->st_value) { in apply_relocations() 569 me->name, strtab + sym->st_name); in apply_relocations() 573 v = sym->st_value; in apply_relocations() 581 strtab + sym->st_name); in apply_relocations() 605 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in simplify_symbols() local 619 switch (sym[i].st_shndx) { in simplify_symbols() 625 size = sym[i].st_value; in simplify_symbols() 626 sym[i].st_value = bssbase; in simplify_symbols() [all …]
|
/arch/x86/vdso/ |
D | vdso32-setup.c | 82 Elf32_Sym *sym = (void *)ehdr + offset; in reloc_symtab() local 83 unsigned nsym = size / sizeof(*sym); in reloc_symtab() 86 for(i = 0; i < nsym; i++, sym++) { in reloc_symtab() 87 if (sym->st_shndx == SHN_UNDEF || in reloc_symtab() 88 sym->st_shndx == SHN_ABS) in reloc_symtab() 91 if (sym->st_shndx > SHN_LORESERVE) { in reloc_symtab() 93 sym->st_shndx); in reloc_symtab() 97 switch(ELF_ST_TYPE(sym->st_info)) { in reloc_symtab() 102 sym->st_value += VDSO_ADDR_ADJUST; in reloc_symtab()
|
/arch/xtensa/kernel/ |
D | module.c | 91 Elf32_Sym *sym; in apply_relocate_add() local 102 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 104 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 128 strtab + sym->st_name); in apply_relocate_add() 152 strtab + sym->st_name); in apply_relocate_add()
|
D | vmlinux.lds.S | 41 #define RELOCATE_ENTRY(sym, section) \ argument 42 LONG(sym ## _start); \ 43 LONG(sym ## _end); \ 60 #define SECTION_VECTOR(sym, section, addr, max_prevsec_size, prevsec) \ argument 65 sym ## _start = ABSOLUTE(.); \ 67 sym ## _end = ABSOLUTE(.); \
|
/arch/sh/kernel/ |
D | module.c | 70 Elf32_Sym *sym; in apply_relocate_add() local 83 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 85 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add() 93 relocation |= (sym->st_other & 4); in apply_relocate_add()
|
/arch/alpha/kernel/ |
D | module.c | 173 Elf64_Sym *symtab, *sym; in apply_relocate_add() local 200 sym = symtab + r_sym; in apply_relocate_add() 201 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 240 if (sym->st_shndx == SHN_UNDEF) in apply_relocate_add() 242 if ((sym->st_other & STO_ALPHA_STD_GPLOAD) == in apply_relocate_add() 291 if (ELF64_ST_TYPE (sym->st_info) == STT_SECTION) in apply_relocate_add() 294 me->name, r_type, sym->st_shndx); in apply_relocate_add() 298 me->name, r_type, strtab + sym->st_name); in apply_relocate_add()
|
/arch/cris/kernel/ |
D | module.c | 93 Elf32_Sym *sym in apply_relocate_add() local 98 *loc = sym->st_value + rela[i].r_addend; in apply_relocate_add() 101 *loc = sym->st_value - (unsigned)loc + rela[i].r_addend - 4; in apply_relocate_add()
|