Lines Matching refs:rval
192 kern_return_t rval = KERN_FAILURE;
231 rval = KERN_FAILURE;
243 rval = KERN_SUCCESS;
246 return rval;
255 kern_return_t rval = KERN_FAILURE;
268 rval = KERN_SUCCESS;
279 rval = kxld_array_init(relocarray, sizeof(KXLDReloc), nrelocs);
280 require_noerr(rval, finish);
331 require_action(i < nsrcs, finish, rval=KERN_FAILURE);
339 finish, rval=KERN_FAILURE);
346 finish, rval=KERN_FAILURE);
367 rval = KERN_SUCCESS;
370 return rval;
494 kern_return_t rval = KERN_FAILURE;
504 rval = KERN_FAILURE;
509 rval = KERN_SUCCESS;
512 return rval;
520 kern_return_t rval = KERN_FAILURE;
524 rval = kxld_reloc_get_reloc_index_by_offset(relocs, offset, &i);
525 if (rval) goto finish;
548 u_long rval = 0;
550 rval += get_macho_data_size_for_array(locrelocs);
551 rval += get_macho_data_size_for_array(extrelocs);
553 return (rval);
564 kern_return_t rval = KERN_FAILURE;
577 require_action(sizeof(*dysymtabhdr) <= header_size - *header_offset, finish, rval=KERN_FAILURE);
582 require_action((*data_offset + data_size) <= size, finish, rval=KERN_FAILURE);
586 rval = export_macho_for_array(relocator, locrelocs, &dst);
587 require_noerr(rval, finish);
589 rval = export_macho_for_array(relocator, extrelocs, &dst);
590 require_noerr(rval, finish);
602 rval = KERN_SUCCESS;
604 return rval;
698 kern_return_t rval = KERN_FAILURE;
716 rval = calculate_targets(relocator, &target, &pair_target, reloc);
717 require_noerr(rval, finish);
725 rval = relocator->process_reloc(relocator, instruction, reloc->length,
728 require_noerr(rval, finish);
733 rval = KERN_SUCCESS;
736 return rval;
744 kern_return_t rval = KERN_FAILURE;
747 finish, rval = KERN_FAILURE);
751 rval = KERN_SUCCESS;
754 return rval;
763 kern_return_t rval = KERN_FAILURE;
781 rval = calculate_targets(relocator, &target, &pair_target, reloc);
782 require_noerr(rval, finish);
789 rval = relocator->process_reloc(relocator, instruction, reloc->length,
792 require_noerr(rval, finish);
797 rval = KERN_SUCCESS;
800 return rval;
809 kern_return_t rval = KERN_FAILURE;
829 finish, rval=KERN_FAILURE);
831 rval = get_target_by_address_lookup(&target, reloc->target,
833 require_noerr(rval, finish);
836 rval = get_target_by_address_lookup(&pair_target,
838 require_noerr(rval, finish);
846 finish, rval=KERN_FAILURE);
850 require_action(sect, finish, rval=KERN_FAILURE);
869 rval=KERN_FAILURE);
873 require_action(sym, finish, rval=KERN_FAILURE);
883 finish, rval=KERN_FAILURE;
902 require_action(sym, finish, rval=KERN_FAILURE);
909 rval = KERN_FAILURE;
915 rval = KERN_SUCCESS;
919 return rval;
928 kern_return_t rval = KERN_FAILURE;
947 require_action(sect, finish, rval=KERN_FAILURE);
950 rval = KERN_SUCCESS;
953 return rval;
961 kern_return_t rval = KERN_FAILURE;
969 finish, rval=KERN_FAILURE;
974 rval = KERN_SUCCESS;
976 return rval;
1010 kern_return_t rval = KERN_FAILURE;
1055 rval = KERN_FAILURE;
1063 require_action(i < relocs->nitems, finish, rval=KERN_FAILURE);
1091 rval = KERN_FAILURE;
1098 rval = KERN_SUCCESS;
1101 return rval;
1140 kern_return_t rval = KERN_FAILURE;
1150 require_action(length == 2, finish, rval=KERN_FAILURE);
1161 rval = check_for_direct_pure_virtual_call(relocator, instr_data);
1162 require_noerr(rval, finish);
1173 rval = KERN_FAILURE;
1177 rval = KERN_FAILURE;
1187 rval = KERN_SUCCESS;
1190 return rval;
1231 kern_return_t rval = KERN_FAILURE;
1245 finish, rval=KERN_FAILURE);
1255 rval = check_for_direct_pure_virtual_call(relocator, instr32);
1256 require_noerr(rval, finish);
1312 require_action(pcrel, finish, rval=KERN_FAILURE);
1319 require_action(pcrel, finish, rval=KERN_FAILURE);
1324 require_action(pcrel, finish, rval=KERN_FAILURE);
1329 require_action(!pcrel, finish, rval=KERN_FAILURE);
1334 rval = KERN_FAILURE;
1340 rval = calculate_displacement_x86_64(target, adjustment, &instr32);
1341 require_noerr(rval, finish);
1357 rval = check_for_direct_pure_virtual_call(relocator, (u_long) instr64);
1358 require_noerr(rval, finish);
1362 require_action(!pcrel, finish, rval=KERN_FAILURE);
1367 require_action(!pcrel, finish, rval=KERN_FAILURE);
1379 rval = KERN_FAILURE;
1390 rval = KERN_SUCCESS;
1393 return rval;
1402 kern_return_t rval = KERN_FAILURE;
1409 rval=KERN_FAILURE;
1413 rval = KERN_SUCCESS;
1416 return rval;
1462 kern_return_t rval = KERN_FAILURE;
1472 require_action(length == 2, finish, rval=KERN_FAILURE);
1483 rval = check_for_direct_pure_virtual_call(relocator, instr_data);
1484 require_noerr(rval, finish);
1502 require_action(pcrel, finish, rval=KERN_FAILURE);
1503 require_action(displacement == 0, finish, rval=KERN_FAILURE);
1506 require_action(pcrel, finish, rval=KERN_FAILURE);
1507 require_action(displacement == 0, finish, rval=KERN_FAILURE);
1513 rval = KERN_FAILURE;
1518 rval = KERN_FAILURE;
1528 rval = KERN_SUCCESS;
1531 return rval;