Lines Matching refs:KXLDObject
112 static kern_return_t get_target_machine_info(KXLDObject *object,
114 static kern_return_t get_macho_slice_for_arch(KXLDObject *object,
117 static u_long get_macho_header_size(const KXLDObject *object);
118 static u_long get_macho_data_size(const KXLDObject *object) __unused;
120 static kern_return_t init_from_execute(KXLDObject *object);
121 static kern_return_t init_from_final_linked_image(KXLDObject *object,
124 static boolean_t target_supports_protected_segments(const KXLDObject *object)
126 static void set_is_object_linked(KXLDObject *object);
129 static boolean_t target_supports_bundle(const KXLDObject *object)
131 static kern_return_t init_from_bundle(KXLDObject *object);
132 static kern_return_t process_relocs_from_tables(KXLDObject *object);
133 static KXLDSeg *get_seg_by_base_addr(KXLDObject *object,
135 static kern_return_t process_symbol_pointers(KXLDObject *object);
140 static boolean_t target_supports_object(const KXLDObject *object)
142 static kern_return_t init_from_object(KXLDObject *object);
143 static kern_return_t process_relocs_from_sections(KXLDObject *object);
147 static boolean_t target_supports_slideable_kexts(const KXLDObject *object);
151 static kern_return_t export_macho_header(const KXLDObject *object, u_char *buf,
156 static kern_return_t export_macho_header_32(const KXLDObject *object,
162 static kern_return_t export_macho_header_64(const KXLDObject *object,
167 static kern_return_t add_section(KXLDObject *object, KXLDSect **sect);
171 static kern_return_t resolve_common_symbols(KXLDObject *object);
175 static boolean_t target_has_got(const KXLDObject *object) __attribute__((pure));
176 static kern_return_t create_got(KXLDObject *object);
177 static kern_return_t populate_got(KXLDObject *object);
180 static KXLDSym *get_mutable_sym(const KXLDObject *object, const KXLDSym *sym);
182 static kern_return_t populate_kmod_info(KXLDObject *object);
187 static boolean_t kxld_object_target_needs_swap(const KXLDObject *object __unused);
188 static KXLDSeg * kxld_object_get_seg_by_name(const KXLDObject *object, const char *segname);
189 static KXLDSect * kxld_object_get_sect_by_name(const KXLDObject *object, const char *segname,
197 return sizeof(KXLDObject);
203 kxld_object_init_from_macho(KXLDObject *object, u_char *file, u_long size,
318 get_target_machine_info(KXLDObject *object, cpu_type_t cputype __unused,
420 get_macho_slice_for_arch(KXLDObject *object, u_char *file, u_long size)
507 init_from_final_linked_image(KXLDObject *object, u_int *filetype_out,
715 init_from_execute(KXLDObject *object)
790 target_supports_bundle(const KXLDObject *object __unused)
798 init_from_bundle(KXLDObject *object)
832 static boolean_t target_supports_object(const KXLDObject *object)
840 init_from_object(KXLDObject *object)
1055 get_macho_header_size(const KXLDObject *object)
1099 get_macho_data_size(const KXLDObject *object)
1155 kxld_object_target_needs_swap(const KXLDObject *object __unused)
1167 kxld_object_get_seg_by_name(const KXLDObject *object, const char *segname)
1186 kxld_object_get_relocator(const KXLDObject * object)
1196 kxld_object_get_sect_by_name(const KXLDObject *object, const char *segname,
1220 kxld_object_get_reloc_at_symbol(const KXLDObject *object, const KXLDSym *sym)
1251 kxld_object_get_symbol_of_reloc(const KXLDObject *object,
1268 kxld_object_get_section_by_index(const KXLDObject *object, u_int sectnum)
1284 kxld_object_get_extrelocs(const KXLDObject *object)
1300 kxld_object_get_symtab(const KXLDObject *object)
1311 add_section(KXLDObject *object, KXLDSect **sect)
1335 resolve_common_symbols(KXLDObject *object)
1410 target_has_got(const KXLDObject *object)
1419 create_got(KXLDObject *object)
1453 populate_got(KXLDObject *object)
1487 target_supports_protected_segments(const KXLDObject *object)
1498 set_is_object_linked(KXLDObject *object)
1525 void kxld_object_clear(KXLDObject *object __unused)
1581 void kxld_object_deinit(KXLDObject *object __unused)
1621 kxld_object_get_file(const KXLDObject *object)
1631 kxld_object_get_name(const KXLDObject *object)
1641 kxld_object_is_32_bit(const KXLDObject *object)
1651 kxld_object_is_final_image(const KXLDObject *object)
1661 kxld_object_is_kernel(const KXLDObject *object)
1671 kxld_object_is_linked(const KXLDObject *object)
1681 kxld_object_target_supports_strict_patching(const KXLDObject *object)
1691 kxld_object_target_supports_common_symbols(const KXLDObject *object)
1701 kxld_object_get_vmsize(const KXLDObject *object, u_long *header_size,
1721 kxld_object_set_linked_object_size(KXLDObject *object, u_long vmsize)
1730 kxld_object_export_linked_object(const KXLDObject *object,
1831 export_macho_header(const KXLDObject *object, u_char *buf, u_int ncmds,
1855 export_macho_header_32(const KXLDObject *object, u_char *buf, u_int ncmds,
1890 export_macho_header_64(const KXLDObject *object, u_char *buf, u_int ncmds,
1924 kxld_object_index_symbols_by_name(KXLDObject *object)
1932 kxld_object_index_cxx_symbols_by_value(KXLDObject *object)
1940 kxld_object_relocate(KXLDObject *object, kxld_addr_t link_address)
1968 get_mutable_sym(const KXLDObject *object, const KXLDSym *sym)
1987 kxld_object_resolve_symbol(KXLDObject *object,
2007 kxld_object_patch_symbol(KXLDObject *object, const struct kxld_sym *sym)
2024 kxld_object_add_symbol(KXLDObject *object, char *name, kxld_addr_t link_addr,
2042 kxld_object_process_relocations(KXLDObject *object,
2104 process_symbol_pointers(KXLDObject *object)
2181 get_seg_by_base_addr(KXLDObject *object, kxld_addr_t base_addr)
2202 process_relocs_from_tables(KXLDObject *object)
2257 process_relocs_from_sections(KXLDObject *object)
2278 populate_kmod_info(KXLDObject *object)
2343 target_supports_slideable_kexts(const KXLDObject *object)