Home
last modified time | relevance | path

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

/xnu-10063.141.1/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.c185 const struct relocation_info *relocs, u_int nrelocs)
201 static u_long get_macho_data_size_for_array(const KXLDArray *relocs);
204 const KXLDArray *relocs, struct relocation_info **dstp);
412 const struct relocation_info *relocs, u_int nrelocs) in count_relocatable_relocs() argument
420 check(relocs); in count_relocatable_relocs()
426 reloc = relocs + i; in count_relocatable_relocs()
521 kxld_reloc_get_reloc_index_by_offset(const KXLDArray *relocs, in kxld_reloc_get_reloc_index_by_offset() argument
528 for (i = 0; i < relocs->nitems; ++i) { in kxld_reloc_get_reloc_index_by_offset()
529 reloc = kxld_array_get_item(relocs, i); in kxld_reloc_get_reloc_index_by_offset()
535 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.c295 struct relocation_info *relocs = NULL; in validate_and_swap_macho_32() local
401 sects[j].reloff + sects[j].nreloc * sizeof(*relocs), finish, in validate_and_swap_macho_32()
406 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_32()
409 swap_relocation_info(relocs, sects[j].nreloc, in validate_and_swap_macho_32()
476 struct relocation_info *relocs = NULL; in validate_and_swap_macho_64() local
581 sects[j].reloff + sects[j].nreloc * sizeof(*relocs), finish, in validate_and_swap_macho_64()
586 relocs = (struct relocation_info *) ((void *) (file + sects[j].reloff)); in validate_and_swap_macho_64()
589 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) {