| /xnu-11215/libkern/kxld/ |
| H A D | kxld_sym.c | 71 check(sym); in kxld_sym_init_from_macho32() 75 bzero(sym, sizeof(*sym)); in kxld_sym_init_from_macho32() 80 sym->link_addr = sym->base_addr; in kxld_sym_init_from_macho32() 106 check(sym); in kxld_sym_init_from_macho64() 110 bzero(sym, sizeof(*sym)); in kxld_sym_init_from_macho64() 115 sym->link_addr = sym->base_addr; in kxld_sym_init_from_macho64() 142 check(sym); in kxld_sym_init_absolute() 145 bzero(sym, sizeof(*sym)); in kxld_sym_init_absolute() 163 check(sym); in init_predicates() 332 kxld_free(sym, sizeof(*sym)); in kxld_sym_destroy() [all …]
|
| H A D | kxld_sym.h | 94 void kxld_sym_deinit(KXLDSym *sym) 97 void kxld_sym_destroy(KXLDSym *sym) 134 boolean_t kxld_sym_is_common(const KXLDSym *sym) 144 boolean_t kxld_sym_is_got(const KXLDSym *sym) 148 boolean_t kxld_sym_is_stab(const KXLDSym *sym) 151 boolean_t kxld_sym_is_weak(const KXLDSym *sym) 154 boolean_t kxld_sym_is_cxx(const KXLDSym *sym) 248 void kxld_sym_set_got(KXLDSym *sym) 261 void kxld_sym_delete(KXLDSym *sym) 264 void kxld_sym_patch(KXLDSym *sym) [all …]
|
| H A D | kxld_symtab.c | 185 KXLDSym *sym = NULL; in init_syms_32() local 212 KXLDSym *sym = NULL; in init_syms_64() local 343 return sym; in kxld_symtab_get_symbol_by_name() 582 rval = kxld_dict_insert(&symtab->cxx_index, &sym->base_addr, sym); in kxld_symtab_index_cxx_symbols_by_value() 598 return kxld_sym_is_defined_locally(sym) && kxld_sym_is_cxx(sym); in sym_is_defined_cxx() 629 rval = kxld_dict_insert(&symtab->name_index, sym->name, sym); in kxld_symtab_index_symbols_by_name() 644 return kxld_sym_is_defined_locally(sym) && !kxld_sym_is_stab(sym); in sym_is_name_indexed() 695 rval = kxld_dict_insert(&symtab->name_index, sym->name, sym); in kxld_symtab_add_symbol() 699 *symout = sym; in kxld_symtab_add_symbol() 724 sym = tmp; in kxld_symtab_iterator_get_next() [all …]
|
| H A D | kxld_vtable.c | 176 KXLDSym *sym = NULL; in init_by_relocs() local 245 entry->unpatched.sym = sym; in init_by_relocs() 264 KXLDSym *sym = NULL; in init_by_entries() local 312 if (sym) { in init_by_entries() 344 KXLDSym *sym = NULL; in init_by_entries_and_relocs() local 423 tmpentry->unpatched.sym = sym; in init_by_entries_and_relocs() 488 const KXLDSym *sym = NULL; in kxld_vtable_patch() local 626 if (!sym) { in kxld_vtable_patch() 649 child_entry->unpatched.sym = sym; in kxld_vtable_patch() 659 assert(kxld_sym_is_pure_virtual(sym) || !(sym->link_addr & 1)); in kxld_vtable_patch() [all …]
|
| H A D | kxld_kext.c | 308 KXLDSym *sym = NULL; in export_symbols() local 314 rval = kxld_dict_insert(defined_symbols_by_name, sym->name, sym); in export_symbols() 320 &sym->link_addr, sym); in export_symbols() 486 KXLDSym *sym = NULL; in create_vtables() local 521 vtable_sym = sym; in create_vtables() 660 KXLDSym *sym = NULL; in resolve_symbols() local 676 tests_for_weak = (sym != NULL); in resolve_symbols() 709 if (kxld_sym_is_common(sym)) { in resolve_symbols() 727 name = sym->name; in resolve_symbols() 729 name = sym->alias; in resolve_symbols() [all …]
|
| H A D | kxld_object.c | 1376 check(sym); in kxld_object_get_reloc_at_symbol() 1383 sym->base_addr); in kxld_object_get_reloc_at_symbol() 1386 sym->base_addr); in kxld_object_get_reloc_at_symbol() 1403 const KXLDSym *sym = NULL; in kxld_object_get_symbol_of_reloc() local 1417 return sym; in kxld_object_get_symbol_of_reloc() 1494 KXLDSym *sym = NULL; in resolve_common_symbols() local 1512 size = kxld_sym_get_common_size(sym); in resolve_common_symbols() 1547 size = kxld_sym_get_common_size(sym); in resolve_common_symbols() 2307 KXLDSym *sym = NULL; 2312 *sym_out = sym; [all …]
|
| H A D | kxld_reloc.c | 493 KXLDSym *sym = NULL; in kxld_reloc_get_symbol() local 510 sym = NULL; in kxld_reloc_get_symbol() 514 return sym; in kxld_reloc_get_symbol() 884 const KXLDSym *sym = NULL; in calculate_targets() local 946 require_action(sym, finish, rval = KERN_FAILURE); in calculate_targets() 955 if (kxld_sym_is_padslot(sym) && kxld_sym_is_replaced(sym)) { in calculate_targets() 960 target = sym->link_addr; in calculate_targets() 962 if (kxld_sym_is_vtable(sym)) { in calculate_targets() 975 require_action(sym, finish, rval = KERN_FAILURE); in calculate_targets() 976 pair_target = sym->link_addr; in calculate_targets() [all …]
|
| H A D | kxld_object.h | 100 const KXLDObject *object, const struct kxld_sym *sym) 160 const struct kxld_sym *sym, kxld_addr_t addr) 164 const struct kxld_sym *sym)
|
| H A D | kxld_sect.c | 294 KXLDSym *sym = NULL; in kxld_sect_get_ngots() local 305 sym = kxld_reloc_get_symbol(relocator, reloc, sect->data, symtab); in kxld_sect_get_ngots() 306 if (!kxld_sym_is_got(sym)) { in kxld_sect_get_ngots() 307 kxld_sym_set_got(sym); in kxld_sect_get_ngots() 663 KXLDSym *sym = NULL; in kxld_sect_populate_got() local 678 while ((sym = kxld_symtab_iterator_get_next(&iter))) { in kxld_sect_populate_got() 679 *entry = sym->link_addr; in kxld_sect_populate_got() 680 sym->got_addr = entry_addr; in kxld_sect_populate_got()
|
| /xnu-11215/libkern/c++/ |
| H A D | OSSymbol.cpp | 201 OSSymbol *sym; in findSymbol() local 230 if (sym && !OSSymbol_obj_try_get(sym)) { in findSymbol() 231 sym = NULL; in findSymbol() 236 if (sym) { in findSymbol() 249 OSSymbol *sym; in insertSymbol() local 273 if (!sym || !OSSymbol_obj_try_get(sym)) { in insertSymbol() 277 sym = NULL; in insertSymbol() 283 if (sym) { in insertSymbol() 337 OSSymbol *sym; in checkForPageUnload() local 343 if (sym->string >= startAddr && sym->string < endAddr) { in checkForPageUnload() [all …]
|
| H A D | OSSerializeBinary.cpp | 215 OSSymbol * sym; in binarySerializeInternal() local 368 OSSymbol * sym; in OSUnserializeBinary() local 412 sym = NULL; in OSUnserializeBinary() 545 if (!sym) { in OSUnserializeBinary() 546 sym = (OSSymbol *) o; in OSUnserializeBinary() 548 str = sym; in OSUnserializeBinary() 549 sym = OSDynamicCast(OSSymbol, sym); in OSUnserializeBinary() 552 ok = (sym != NULL); in OSUnserializeBinary() 561 if (sym && (sym != str)) { in OSUnserializeBinary() 562 sym->release(); in OSUnserializeBinary() [all …]
|
| /xnu-11215/libsyscall/xcodescripts/ |
| H A D | create-syscalls.pl | 253 my ($c_sym_name, $sym); 259 $$sym{is_custom} = $source; 260 if (!$$sym{is_private}) { 265 $$sym{aliases}{$arch} = [] unless $$sym{aliases}{$arch}; 266 push(@{$$sym{aliases}{$arch}}, $$sym{asm_sym}); 268 $$sym{asm_sym} = "__".$$sym{asm_sym}; 269 $$sym{is_private} = 1; 316 $$sym{aliases}{$arch} = [] unless $$sym{aliases}{$arch}; 464 my($k, $sym); 470 if ($$sym{is_custom}) { [all …]
|
| /xnu-11215/libkern/zlib/ |
| H A D | inftrees.c | 65 unsigned sym; /* index of code symbols */ in inflate_table() local 133 for (sym = 0; sym < codes; sym++) in inflate_table() 134 count[lens[sym]]++; in inflate_table() 170 for (sym = 0; sym < codes; sym++) in inflate_table() 171 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in inflate_table() 241 if (work[sym] + 1 < match) { in inflate_table() 243 this.val = work[sym]; in inflate_table() 245 else if (work[sym] >= match) { in inflate_table() 247 this.val = base[work[sym] - match]; in inflate_table() 275 sym++; in inflate_table() [all …]
|
| H A D | infback.c | 110 unsigned sym, bits; in fixedtables() local 114 sym = 0; in fixedtables() 115 while (sym < 144) state->lens[sym++] = 8; in fixedtables() 116 while (sym < 256) state->lens[sym++] = 9; in fixedtables() 117 while (sym < 280) state->lens[sym++] = 7; in fixedtables() 118 while (sym < 288) state->lens[sym++] = 8; in fixedtables() 125 sym = 0; in fixedtables() 126 while (sym < 32) state->lens[sym++] = 5; in fixedtables()
|
| H A D | inflate.c | 239 unsigned sym, bits; in fixedtables() local 243 sym = 0; in fixedtables() 244 while (sym < 144) state->lens[sym++] = 8; in fixedtables() 245 while (sym < 256) state->lens[sym++] = 9; in fixedtables() 246 while (sym < 280) state->lens[sym++] = 7; in fixedtables() 247 while (sym < 288) state->lens[sym++] = 8; in fixedtables() 254 sym = 0; in fixedtables() 255 while (sym < 32) state->lens[sym++] = 5; in fixedtables()
|
| /xnu-11215/iokit/Tests/ |
| H A D | TestCollections.cpp | 208 sym->release(); in testArray() 224 if (sym) { in testArray() 225 sym->release(); in testArray() 251 sym->release(); in testArray() 277 sym->release(); in testArray() 447 sym->release(); in testSet() 457 sym->release(); in testSet() 479 sym->release(); in testSet() 550 sym->release(); in testDictionary() 949 sym = 0; in testIterator() [all …]
|
| /xnu-11215/bsd/sys/ |
| H A D | cdefs.h | 654 #define __DARWIN14_ALIAS(sym) __asm("_" __STRING(sym) __DARWIN_SUF_DARWIN14) argument 656 #define __DARWIN14_ALIAS(sym) argument 897 #define __DARWIN_ALIAS(sym) __asm("_" __STRING(sym) __DARWIN_SUF_UNIX03) argument 899 #define __DARWIN_ALIAS_I(sym) __asm("_" __STRING(sym) __DARWIN_SUF_64_BIT_INO_T __DARWIN_… argument 900 #define __DARWIN_NOCANCEL(sym) __asm("_" __STRING(sym) __DARWIN_SUF_NON_CANCELABLE) argument 901 #define __DARWIN_INODE64(sym) __asm("_" __STRING(sym) __DARWIN_SUF_64_BIT_INO_T) argument 903 #define __DARWIN_1050(sym) __asm("_" __STRING(sym) __DARWIN_SUF_1050) argument 904 #define __DARWIN_1050ALIAS(sym) __asm("_" __STRING(sym) __DARWIN_SUF_1050 __DARWIN_SUF_UNIX… argument 907 #define __DARWIN_1050INODE64(sym) __asm("_" __STRING(sym) __DARWIN_SUF_1050 __DARWIN_SUF_64_B… argument 909 #define __DARWIN_EXTSN(sym) __asm("_" __STRING(sym) __DARWIN_SUF_EXTSN) argument [all …]
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IORegistryEntry.cpp | 1016 if (!sym) { in getName() 1021 if (sym) { in getName() 1041 if (sym) { in copyName() 1046 if (sym) { in copyName() 1066 if (sym) { in copyLocation() 1080 if (sym) { in getLocation() 1124 if (sym) { in setName() 1135 if (sym) { in setName() 1165 if (sym) { in setLocation() 1178 isEqual = (sym && sym->isEqualTo(name)); in compareName() [all …]
|
| H A D | IOPlatformExpert.cpp | 1248 const OSSymbol *sym = NULL; in PEWriteNVRAMBooleanProperty() local 1267 sym->release(); in PEWriteNVRAMBooleanProperty() 1282 const OSSymbol *sym; in PEWriteNVRAMPropertyInternal() local 1295 sym = OSSymbol::withCString(symbol); in PEWriteNVRAMPropertyInternal() 1300 if (!sym) { in PEWriteNVRAMPropertyInternal() 1313 sym->release(); in PEWriteNVRAMPropertyInternal() 1341 const OSSymbol *sym; in PERemoveNVRAMProperty() local 1351 sym = OSSymbol::withCStringNoCopy(symbol); in PERemoveNVRAMProperty() 1352 if (!sym) { in PERemoveNVRAMProperty() 1356 gIOOptionsEntry->removeProperty(sym); in PERemoveNVRAMProperty() [all …]
|
| H A D | IOCatalogue.cpp | 135 const OSSymbol * sym; in arrayForPersonality() local 137 sym = OSDynamicCast(OSSymbol, dict->getObject(gIOProviderClassKey)); in arrayForPersonality() 138 if (!sym) { in arrayForPersonality() 142 return (OSArray *) personalities->getObject(sym); in arrayForPersonality() 148 const OSSymbol * sym; in addPersonality() local 151 sym = OSDynamicCast(OSSymbol, dict->getObject(gIOProviderClassKey)); in addPersonality() 152 if (!sym) { in addPersonality() 155 arr = (OSArray *) personalities->getObject(sym); in addPersonality() 160 personalities->setObject(sym, sharedArr.get()); in addPersonality()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | structanalyze.py | 215 sym = gettype(ty_name) 219 if sym.GetTypeClass() == lldb.eTypeClassTypedef: 220 sym = sym.GetCanonicalType() 222 if sym.GetTypeClass() not in _UnionStructClass: 227 _showStructPacking(ctx, sym, 0)
|
| H A D | kext.py | 659 sym = next(iter(syms)) if syms else None 671 fmt += " symbol : {sym!s}\n" if sym else "" 673 print(fmt.format(kinfo=kinfo, sbmod=sbmod, sbseg=sbseg, sbsec=sbsec, sym=sym)) 710 sym = next(iter(syms)) if syms else None 717 fmt += " symbol : {sym}\n" if sym else "" 719 print(fmt.format(mo=self, subsec=subsec, sym=sym))
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | fbt.c | 347 fbt_provide_kernel_section(struct modctl *ctl, kernel_section_t *sect, kernel_nlist_t *sym, uint32_… in fbt_provide_kernel_section() argument 358 uint8_t n_type = sym[i].n_type & (N_TYPE | N_EXT); in fbt_provide_kernel_section() 359 const char *name = strings + sym[i].n_un.n_strx; in fbt_provide_kernel_section() 362 if (sym[i].n_value < sect_start || sym[i].n_value > sect_end) { in fbt_provide_kernel_section() 371 if (0 == sym[i].n_un.n_strx) { /* iff a null, "", name. */ in fbt_provide_kernel_section() 388 if (i == nsyms - 1 || sym[i + 1].n_value > sect_end) { in fbt_provide_kernel_section() 391 limit = sym[i + 1].n_value; in fbt_provide_kernel_section() 394 …fbt_provide_probe(ctl, ctl->mod_modname, name, (machine_inst_t*)sym[i].n_value, (machine_inst_t*)l… in fbt_provide_kernel_section()
|
| H A D | sdt.c | 481 sdt_find_symbol_table(struct modctl *ctl, kernel_nlist_t **sym, char **strings) in sdt_find_symbol_table() argument 506 *sym = (kernel_nlist_t *)(orig_le->vmaddr + orig_st->symoff - orig_le->fileoff); in sdt_find_symbol_table() 579 kernel_nlist_t *sym = NULL; in sdt_load_machsect() local 595 if (MOD_HAS_KERNEL_SYMBOLS(ctl) && (nsyms = sdt_find_symbol_table(ctl, &sym, &strings)) == 0) { in sdt_load_machsect() 647 uint8_t jn_type = sym[i].n_type & N_TYPE; in sdt_load_machsect() 648 char *jname = strings + sym[i].n_un.n_strx; in sdt_load_machsect() 654 if (0 == sym[i].n_un.n_strx) { /* iff a null, "", name. */ in sdt_load_machsect() 662 if (sdtdef->dsd_addr <= (unsigned long)sym[i].n_value) { in sdt_load_machsect() 666 if ((unsigned long)sym[i].n_value > best) { in sdt_load_machsect() 667 best = (unsigned long)sym[i].n_value; in sdt_load_machsect()
|
| /xnu-11215/tools/ |
| H A D | remote_build.sh | 170 mkdir -p ./BUILD/sym 179 tar jcf ./BUILD/sym.tar.bz2 -C ./BUILD/sym . || exit 1
|