@@ -413,8 +413,8 @@ void lld::elf::Patch843419Section::writeTo(uint8_t *buf) {
413
413
write32le (buf, read32le (patchee->data ().begin () + patcheeOffset));
414
414
415
415
// Apply any relocation transferred from the original PatcheeSection.
416
- // For a SyntheticSection Buf already has OutSecOff added, but relocateAlloc
417
- // also adds OutSecOff so we need to subtract to avoid double counting.
416
+ // For a SyntheticSection Buf already has outSecOff added, but relocateAlloc
417
+ // also adds outSecOff so we need to subtract to avoid double counting.
418
418
this ->relocateAlloc (buf - outSecOff, buf - outSecOff + getSize ());
419
419
420
420
// Return address is the next instruction after the one we have just copied.
@@ -427,7 +427,7 @@ void AArch64Err843419Patcher::init() {
427
427
// The AArch64 ABI permits data in executable sections. We must avoid scanning
428
428
// this data as if it were instructions to avoid false matches. We use the
429
429
// mapping symbols in the InputObjects to identify this data, caching the
430
- // results in SectionMap so we don't have to recalculate it each pass.
430
+ // results in sectionMap so we don't have to recalculate it each pass.
431
431
432
432
// The ABI Section 4.5.4 Mapping symbols; defines local symbols that describe
433
433
// half open intervals [Symbol Value, Next Symbol Value) of code and data
@@ -489,7 +489,7 @@ void AArch64Err843419Patcher::insertPatches(
489
489
uint64_t patchUpperBound = prevIsecLimit + target->getThunkSectionSpacing ();
490
490
uint64_t outSecAddr = isd.sections .front ()->getParent ()->addr ;
491
491
492
- // Set the OutSecOff of patches to the place where we want to insert them.
492
+ // Set the outSecOff of patches to the place where we want to insert them.
493
493
// We use a similar strategy to Thunk placement. Place patches roughly
494
494
// every multiple of maximum branch range.
495
495
auto patchIt = patches.begin ();
@@ -511,10 +511,10 @@ void AArch64Err843419Patcher::insertPatches(
511
511
(*patchIt)->outSecOff = isecLimit;
512
512
}
513
513
514
- // merge all patch sections. We use the OutSecOff assigned above to
514
+ // merge all patch sections. We use the outSecOff assigned above to
515
515
// determine the insertion point. This is ok as we only merge into an
516
516
// InputSectionDescription once per pass, and at the end of the pass
517
- // assignAddresses() will recalculate all the OutSecOff values.
517
+ // assignAddresses() will recalculate all the outSecOff values.
518
518
std::vector<InputSection *> tmp;
519
519
tmp.reserve (isd.sections .size () + patches.size ());
520
520
auto mergeCmp = [](const InputSection *a, const InputSection *b) {
@@ -530,8 +530,8 @@ void AArch64Err843419Patcher::insertPatches(
530
530
isd.sections = std::move (tmp);
531
531
}
532
532
533
- // Given an erratum sequence that starts at address AdrpAddr , with an
534
- // instruction that we need to patch at PatcheeOffset from the start of
533
+ // Given an erratum sequence that starts at address adrpAddr , with an
534
+ // instruction that we need to patch at patcheeOffset from the start of
535
535
// InputSection IS, create a Patch843419 Section and add it to the
536
536
// Patches that we need to insert.
537
537
static void implementPatch (uint64_t adrpAddr, uint64_t patcheeOffset,
@@ -587,10 +587,10 @@ AArch64Err843419Patcher::patchInputSectionDescription(
587
587
// LLD doesn't use the erratum sequence in SyntheticSections.
588
588
if (isa<SyntheticSection>(isec))
589
589
continue ;
590
- // Use SectionMap to make sure we only scan code and not inline data.
590
+ // Use sectionMap to make sure we only scan code and not inline data.
591
591
// We have already sorted MapSyms in ascending order and removed consecutive
592
592
// mapping symbols of the same type. Our range of executable instructions to
593
- // scan is therefore [CodeSym->Value, DataSym->Value ) or [CodeSym->Value ,
593
+ // scan is therefore [codeSym->value, dataSym->value ) or [codeSym->value ,
594
594
// section size).
595
595
std::vector<const Defined *> &mapSyms = sectionMap[isec];
596
596
0 commit comments