Home
last modified time | relevance | path

Searched refs:relocs (Results 1 – 7 of 7) sorted by relevance

/xnu-12377.41.6/libkern/kxld/
H A Dkxld_sect.c63 struct relocation_info *relocs = NULL; in kxld_sect_init_from_macho_32() local
86 relocs = (struct relocation_info *) ((void *) (macho + src->reloff)); in kxld_sect_init_from_macho_32()
88 rval = kxld_reloc_create_macho(&sect->relocs, relocator, in kxld_sect_init_from_macho_32()
89 relocs, src->nreloc); in kxld_sect_init_from_macho_32()
113 struct relocation_info *relocs = NULL; in kxld_sect_init_from_macho_64() local
136 relocs = (struct relocation_info *) ((void *) (macho + src->reloff)); in kxld_sect_init_from_macho_64()
138 rval = kxld_reloc_create_macho(&sect->relocs, relocator, in kxld_sect_init_from_macho_64()
139 relocs, src->nreloc); in kxld_sect_init_from_macho_64()
230 kxld_array_clear(&sect->relocs); in kxld_sect_clear()
244 kxld_array_deinit(&sect->relocs); in kxld_sect_deinit()
[all …]
H A Dkxld_reloc.c184 const struct relocation_info *relocs, u_int nrelocs)
200 static u_long get_macho_data_size_for_array(const KXLDArray *relocs);
203 const KXLDArray *relocs, struct relocation_info **dstp);
411 const struct relocation_info *relocs, u_int nrelocs) in count_relocatable_relocs() argument
419 check(relocs); in count_relocatable_relocs()
425 reloc = relocs + i; in count_relocatable_relocs()
520 kxld_reloc_get_reloc_index_by_offset(const KXLDArray *relocs, in kxld_reloc_get_reloc_index_by_offset() argument
527 for (i = 0; i < relocs->nitems; ++i) { in kxld_reloc_get_reloc_index_by_offset()
528 reloc = kxld_array_get_item(relocs, i); in kxld_reloc_get_reloc_index_by_offset()
534 if (i >= relocs->nitems) { in kxld_reloc_get_reloc_index_by_offset()
[all …]
H A Dkxld_vtable.c71 const KXLDArray *relocs, const KXLDDict *defined_cxx_symbols);
201 rval = kxld_reloc_get_reloc_index_by_offset(&sect->relocs, in init_by_relocs()
213 reloc = kxld_array_get_item(&sect->relocs, reloc_index); in init_by_relocs()
222 reloc = kxld_array_get_item(&sect->relocs, reloc_index); in init_by_relocs()
234 reloc = kxld_array_get_item(&sect->relocs, base_reloc_index - i); in init_by_relocs()
338 const KXLDRelocator *relocator, const KXLDArray *relocs, in init_by_entries_and_relocs() argument
357 check(relocs); in init_by_entries_and_relocs()
374 reloc = kxld_reloc_get_reloc_by_offset(relocs, in init_by_entries_and_relocs()
408 reloc = kxld_reloc_get_reloc_by_offset(relocs, in init_by_entries_and_relocs()
H A Dkxld_util.c294 struct relocation_info *relocs = NULL; in validate_and_swap_macho_32() local
400 sects[j].reloff + sects[j].nreloc * sizeof(*relocs), finish, in validate_and_swap_macho_32()
405 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_32()
408 swap_relocation_info(relocs, sects[j].nreloc, in validate_and_swap_macho_32()
475 struct relocation_info *relocs = NULL; in validate_and_swap_macho_64() local
580 sects[j].reloff + sects[j].nreloc * sizeof(*relocs), finish, in validate_and_swap_macho_64()
585 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_64()
588 swap_relocation_info(relocs, sects[j].nreloc, in validate_and_swap_macho_64()
H A Dkxld_reloc.h124 kern_return_t kxld_reloc_get_reloc_index_by_offset(const struct kxld_array *relocs,
128 KXLDReloc * kxld_reloc_get_reloc_by_offset(const struct kxld_array *relocs,
H A Dkxld_sect.h54 KXLDArray relocs; // The section's relocation entries member
H A Dkxld_object.c1390 reloc = kxld_reloc_get_reloc_by_offset(&sect->relocs, offset); in kxld_object_get_reloc_at_symbol()
1671 if (sect->relocs.nitems) {