Lines Matching refs:stub
230 // Get the stub for this function
234 llvm::errs() << "unable to get stub layout." << "\n";
238 void *stub = stub_layout->allocateStub(callee_addr);
240 if (!stub) {
241 llvm::errs() << "unable to allocate stub." << "\n";
245 //LOGI("Function %s: using stub %p\n", sym->getName(), stub);
246 S = (uint32_t)(uintptr_t)stub;
253 rsl_assert(0 && "Stub is still too far");
265 rsl_assert(0 && "Stub is still too far");
270 // Rewrite instruction to BLX. (Stub is always ARM.)
523 void *stub = text->getStubLayout()->allocateStub((void *)A);
524 rsl_assert(stub && "cannot allocate stub.");
525 sym->setAddress(stub);
526 S = (int32_t)(intptr_t)stub;
528 rsl_assert(((P + 4) >> 28) == (S >> 28) && "stub is too far.");
534 void *stub = text->getStubLayout()->allocateStub((void *)S);
535 rsl_assert(stub && "cannot allocate stub.");
536 sym->setAddress(stub);
537 S = (int32_t)(intptr_t)stub;
539 rsl_assert(((P + 4) >> 28) == (S >> 28) && "stub is too far.");