Lines Matching full:relocation
90 // A label for the start of the Patch that we can use as a relocation target.
153 // address. This is only used when the branch instruction has no relocation.
183 // If we have a relocation then apply it. in writeTo()
189 // If we don't have a relocation then we must calculate and write the offset in writeTo()
207 uint32_t instr, const Relocation *r) { in branchDestInFirstRegion()
211 // If there is a branch relocation at the same offset we must use this to in branchDestInFirstRegion()
219 // If there is no relocation, we must have an intra-section branch in branchDestInFirstRegion()
246 // Branch relocation at off. Will be nullptr if no relocation exists.
247 Relocation *rel;
281 // Find a relocation for the branch if it exists. This will be used in scanCortexA8Errata657417()
284 auto relIt = llvm::find_if(isec->relocs(), [=](const Relocation &r) { in scanCortexA8Errata657417()
420 // Case 1. There is a relocation at patcheeOffset to a symbol. The in implementPatch()
421 // unconditional branch in the patch must have a relocation so that any in implementPatch()
423 // patcheeOffset we redirect the existing relocation to a Symbol defined at in implementPatch()
426 // Case 2. There is no relocation at patcheeOffset. We are unlikely to have in implementPatch()
427 // a symbol that we can use as a target for a relocation in the patch section. in implementPatch()
431 // Case 1. We have an existing relocation to redirect to patch and a in implementPatch()
434 // Create a branch relocation for the unconditional branch in the patch. in implementPatch()
449 // The patch will be in ARM state. Use an ARM relocation and account for in implementPatch()
455 Relocation{sr.rel->expr, patchRelType, 0, patchRelAddend, sr.rel->sym}); in implementPatch()
456 // Redirect the existing branch relocation to the patch. in implementPatch()
461 // Case 2. We do not have a relocation to the patch. Add a relocation of the in implementPatch()
473 isec->addReloc(Relocation{R_PC, type, sr.off, -4, psec->patchSym}); in implementPatch()