Home
last modified time | relevance | path

Searched refs:__elfN (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/sys/sys/
H A Dimgact_elf.h113 bool __elfN(brand_inuse)(Elf_Brandinfo *entry);
114 int __elfN(insert_brand_entry)(Elf_Brandinfo *entry);
115 int __elfN(remove_brand_entry)(Elf_Brandinfo *entry);
116 int __elfN(freebsd_fixup)(uintptr_t *, struct image_params *);
117 int __elfN(coredump)(struct thread *, struct vnode *, off_t, int);
118 size_t __elfN(populate_note)(int, void *, void *, size_t, void **);
119 int __elfN(freebsd_copyout_auxargs)(struct image_params *, uintptr_t);
120 void __elfN(puthdr)(struct thread *, void *, size_t, int, size_t, int);
121 void __elfN(prepare_notes)(struct thread *, struct note_info_list *,
123 void __elfN(size_segments)(struct thread *, struct sseg_closure *, int);
[all …]
H A Dreg.h59 SET_DECLARE(__elfN(regset), struct regset);
60 #define ELF_REGSET(_regset) DATA_SET(__elfN(regset), _regset)
/freebsd/sys/kern/
H A Dimgact_elf.c86 static int __elfN(check_header)(const Elf_Ehdr *hdr);
87 static Elf_Brandinfo *__elfN(get_brandinfo)(struct image_params *imgp,
89 static int __elfN(load_file)(struct proc *p, const char *file, u_long *addr,
91 static int __elfN(load_section)(const struct image_params *imgp,
94 static int __CONCAT(exec_, __elfN(imgact))(struct image_params *imgp);
95 static bool __elfN(freebsd_trans_osrel)(const Elf_Note *note,
98 static bool __elfN(check_note)(struct image_params *imgp,
101 static vm_prot_t __elfN(trans_prot)(Elf_Word);
102 static Elf_Word __elfN(untrans_prot)(vm_prot_t);
103 static size_t __elfN(prepare_register_notes)(struct thread *td,
[all …]
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Delf.h79 #define elf_checksum __elfN(checksum)
80 #define elf_fsize __elfN(fsize)
81 #define elf_getehdr __elfN(getehdr)
82 #define elf_getphdr __elfN(getphdr)
83 #define elf_newehdr __elfN(newehdr)
84 #define elf_newphdr __elfN(newphdr)
85 #define elf_getshdr __elfN(getshdr)
86 #define elf_xlatetof __elfN(xlatetof)
87 #define elf_xlatetom __elfN(xlatetom)
/freebsd/sys/compat/linux/
H A Dlinux_vdso.h38 vm_object_t __elfN(linux_shared_page_init)(char **, vm_size_t);
39 void __elfN(linux_shared_page_fini)(vm_object_t, void *, vm_size_t);
40 void __elfN(linux_vdso_fixup)(char *, vm_offset_t);
41 void __elfN(linux_vdso_sym_init)(struct linux_vdso_sym *);
60 SYSINIT(__elfN(name ## _sym_init), SI_SUB_EXEC, \
61 SI_ORDER_FIRST, __elfN(linux_vdso_sym_init), &name ## sym); \
H A Dlinux_vdso.c52 SLIST_HEAD(, linux_vdso_sym) __elfN(linux_vdso_syms) =
53 SLIST_HEAD_INITIALIZER(__elfN(linux_vdso_syms));
56 __elfN(linux_vdso_sym_init)(struct linux_vdso_sym *s) in __elfN() function
59 SLIST_INSERT_HEAD(&__elfN(linux_vdso_syms), s, sym); in __elfN()
63 __elfN(linux_shared_page_init)(char **mapping, vm_size_t size) in __elfN() function
89 __elfN(linux_shared_page_fini)(vm_object_t obj, void *mapping, in __elfN() function
101 __elfN(linux_vdso_fixup)(char *base, vm_offset_t offset) in __elfN() function
141 SLIST_FOREACH(lsym, &__elfN(linux_vdso_syms), sym) { in __elfN()
H A Dlinux_elf.c122 size += __elfN(register_note)(td, list, in __linuxN()
124 size += __elfN(register_note)(td, list, in __linuxN()
126 size += __elfN(register_note)(td, list, in __linuxN()
128 size += __elfN(register_note)(td, list, in __linuxN()
130 size += __elfN(register_note)(td, list, in __linuxN()
288 __elfN(dump_thread)(td, buf, &size); in __linuxN()
/freebsd/stand/common/
H A Dload_elf_obj.c71 static int __elfN(obj_loadimage)(struct preloaded_file *mp, elf_file_t ef,
73 static int __elfN(obj_lookup_set)(struct preloaded_file *mp, elf_file_t ef,
75 static int __elfN(obj_reloc_ptr)(struct preloaded_file *mp, elf_file_t ef,
77 static int __elfN(obj_parse_modmetadata)(struct preloaded_file *mp,
79 static Elf_Addr __elfN(obj_symaddr)(struct elf_file *ef, Elf_Size symidx);
87 __elfN(obj_loadfile)(char *filename, uint64_t dest, in __elfN() function
184 fp->f_size = __elfN(obj_loadimage)(fp, &ef, dest); in __elfN()
224 __elfN(obj_loadimage)(struct preloaded_file *fp, elf_file_t ef, uint64_t off) in __elfN() function
369 res = __elfN(obj_parse_modmetadata)(fp, ef); in __elfN()
395 __elfN(obj_parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef) in __elfN() function
[all …]
H A Dload_elf.c82 static int __elfN(loadimage)(struct preloaded_file *mp, elf_file_t ef,
84 static int __elfN(lookup_symbol)(elf_file_t ef, const char* name,
86 static int __elfN(reloc_ptr)(struct preloaded_file *mp, elf_file_t ef,
88 static int __elfN(parse_modmetadata)(struct preloaded_file *mp, elf_file_t ef,
90 static symaddr_fn __elfN(symaddr);
93 uint64_t __elfN(relocation_offset) = 0;
224 return (__elfN(lookup_symbol)(ef, "kernphys", &sym, STT_OBJECT) == 0); in is_kernphys_relocatable()
237 if (__elfN(lookup_symbol)(ef, "__start_set_vt_drv_set", &sym, STT_NOTYPE) != 0) in is_tg_kernel_support()
240 if (__elfN(lookup_symbol)(ef, "__stop_set_vt_drv_set", &sym, STT_NOTYPE) != 0) in is_tg_kernel_support()
251 error = __elfN(reloc_ptr)(fp, ef, p, &v, sizeof(v)); in is_tg_kernel_support()
[all …]
H A Dbootstrap.h288 #ifdef __elfN
294 extern uint64_t __elfN(relocation_offset);
299 int __elfN(loadfile)(char *, uint64_t, struct preloaded_file **);
300 int __elfN(obj_loadfile)(char *, uint64_t, struct preloaded_file **);
301 int __elfN(reloc)(struct elf_file *ef, symaddr_fn *symaddr,
304 int __elfN(loadfile_raw)(char *, uint64_t, struct preloaded_file **, int);
305 int __elfN(load_modmetadata)(struct preloaded_file *, uint64_t);
365 #ifdef __elfN
H A Dmetadata.c191 *modulep -= __elfN(relocation_offset); in md_load_dual()
199 vaddr -= __elfN(relocation_offset); in md_load_dual()
/freebsd/stand/efi/loader/arch/arm/
H A Dexec.c44 __elfN(arm_load)(char *filename, uint64_t dest, in __elfN() function
49 r = __elfN(loadfile)(filename, dest, result); in __elfN()
57 __elfN(arm_exec)(struct preloaded_file *fp) in __elfN() function
92 __elfN(arm_load),
93 __elfN(arm_exec)
/freebsd/stand/uboot/
H A Delf_freebsd.c42 __elfN(uboot_load)(char *filename, uint64_t dest, in __elfN() function
47 r = __elfN(loadfile)(filename, dest, result); in __elfN()
63 __elfN(uboot_exec)(struct preloaded_file *fp) in __elfN() function
90 __elfN(uboot_load),
91 __elfN(uboot_exec)
/freebsd/stand/powerpc/ofw/
H A Delf_freebsd.c47 __elfN(ofw_loadfile)(char *filename, uint64_t dest, in __elfN() function
52 r = __elfN(loadfile)(filename, dest, result); in __elfN()
68 __elfN(ofw_exec)(struct preloaded_file *fp) in __elfN() function
102 __elfN(ofw_loadfile),
103 __elfN(ofw_exec)
/freebsd/sys/amd64/amd64/
H A Delf_machdep.c59 .sv_fixup = __elfN(freebsd_fixup),
65 .sv_coredump = __elfN(coredump),
68 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
76 .sv_copyout_auxargs = __elfN(freebsd_copyout_auxargs),
95 .sv_regset_begin = SET_BEGIN(__elfN(regset)),
96 .sv_regset_end = SET_LIMIT(__elfN(regset)),
102 .sv_fixup = __elfN(freebsd_fixup),
108 .sv_coredump = __elfN(coredump),
111 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
119 .sv_copyout_auxargs = __elfN(freebsd_copyout_auxargs),
[all …]
/freebsd/sys/powerpc/powerpc/
H A Delf64_machdep.c67 .sv_fixup = __elfN(freebsd_fixup),
72 .sv_coredump = __elfN(coredump),
75 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
83 .sv_copyout_auxargs = __elfN(powerpc_copyout_auxargs),
102 .sv_regset_begin = SET_BEGIN(__elfN(regset)),
103 .sv_regset_end = SET_LIMIT(__elfN(regset)),
109 .sv_fixup = __elfN(freebsd_fixup),
114 .sv_coredump = __elfN(coredump),
117 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
125 .sv_copyout_auxargs = __elfN(powerpc_copyout_auxargs),
[all …]
H A Delf32_machdep.c93 .sv_fixup = __elfN(freebsd_fixup),
94 .sv_copyout_auxargs = __elfN(powerpc_copyout_auxargs),
99 .sv_coredump = __elfN(coredump),
102 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
139 .sv_regset_begin = SET_BEGIN(__elfN(regset)),
140 .sv_regset_end = SET_LIMIT(__elfN(regset)),
H A Delf_common.c31 __elfN(powerpc_copyout_auxargs)(struct image_params *imgp, uintptr_t base) in __elfN() function
54 return (__elfN(freebsd_copyout_auxargs)(imgp, base)); in __elfN()
/freebsd/sys/i386/i386/
H A Delf_machdep.c56 .sv_fixup = __elfN(freebsd_fixup),
61 .sv_coredump = __elfN(coredump),
64 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
72 .sv_copyout_auxargs = __elfN(freebsd_copyout_auxargs),
90 .sv_regset_begin = SET_BEGIN(__elfN(regset)),
91 .sv_regset_end = SET_LIMIT(__elfN(regset)),
/freebsd/sys/arm/arm/
H A Delf_machdep.c66 .sv_fixup = __elfN(freebsd_fixup),
71 .sv_coredump = __elfN(coredump),
74 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
82 .sv_copyout_auxargs = __elfN(freebsd_copyout_auxargs),
102 .sv_regset_begin = SET_BEGIN(__elfN(regset)),
103 .sv_regset_end = SET_LIMIT(__elfN(regset)),
/freebsd/sys/arm64/arm64/
H A Delf_machdep.c71 .sv_fixup = __elfN(freebsd_fixup),
76 .sv_coredump = __elfN(coredump),
79 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
87 .sv_copyout_auxargs = __elfN(freebsd_copyout_auxargs),
107 .sv_regset_begin = SET_BEGIN(__elfN(regset)),
108 .sv_regset_end = SET_LIMIT(__elfN(regset)),
368 if (phdr[i].p_type == PT_NOTE && __elfN(parse_notes)(imgp, in arm64_exec_protect()
/freebsd/stand/efi/loader/arch/riscv/
H A Dexec.c67 __elfN(exec)(struct preloaded_file *fp) in __elfN() function
105 __elfN(loadfile),
106 __elfN(exec)
/freebsd/sys/riscv/riscv/
H A Delf_machdep.c64 .sv_fixup = __elfN(freebsd_fixup),
69 .sv_coredump = __elfN(coredump),
72 .sv_elf_core_prepare_notes = __elfN(prepare_notes),
80 .sv_copyout_auxargs = __elfN(freebsd_copyout_auxargs),
98 .sv_regset_begin = SET_BEGIN(__elfN(regset)),
99 .sv_regset_end = SET_LIMIT(__elfN(regset)),
/freebsd/sys/compat/ia32/
H A Dia32_sysvec.c143 .sv_regset_begin = SET_BEGIN(__elfN(regset)),
144 .sv_regset_end = SET_LIMIT(__elfN(regset)),
/freebsd/sys/arm64/linux/
H A Dlinux_sysvec.c428 .sv_fixup = __elfN(freebsd_fixup),
512 __elfN(linux_vdso_fixup)(vdso_start, linux_vdso_base); in linux_vdso_install()
514 linux_vdso_obj = __elfN(linux_shared_page_init) in linux_vdso_install()
527 __elfN(linux_shared_page_fini)(linux_vdso_obj, in linux_vdso_deinstall()

12