diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index d7fbd62c983b..e9ea4f845877 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -508,7 +508,7 @@ static OutputSection *addInputSec(StringMap &Map, // ignored. We should not have two output .text sections just because one was // in a group and another was not for example. // - // It also seems that that wording was a late addition and didn't get the + // It also seems that wording was a late addition and didn't get the // necessary scrutiny. // // Merging sections with different flags is expected by some users. One diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 66b9c88b4fbe..d1c8a7b1d806 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -864,7 +864,7 @@ static RelExpr processRelocAux(InputSectionBase &Sec, RelExpr Expr, // use that as the function value. // // For the static linking part, we just return a plt expr and everything - // else will use the the PLT entry as the address. + // else will use the PLT entry as the address. // // The remaining problem is making sure pointer equality still works. We // need the help of the dynamic linker for that. We let it know that we have diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 437d91d6dd3f..43627eecd28b 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -99,10 +99,10 @@ public: return SymbolKind == LazyArchiveKind || SymbolKind == LazyObjectKind; } - // True is this is an undefined weak symbol. This only works once + // True if this is an undefined weak symbol. This only works once // all input files have been added. bool isUndefWeak() const { - // See comment on Lazy the details. + // See comment on Lazy for details. return isWeak() && (isUndefined() || isLazy()); } @@ -154,6 +154,7 @@ public: // True if this symbol is in the Igot sub-section of the .got.plt or .got. unsigned IsInIgot : 1; + // True if this symbol is preemptible at link or load time. unsigned IsPreemptible : 1; // True if an undefined or shared symbol is used from a live section. diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 66680aa3ddf2..173acbf4deab 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1170,7 +1170,7 @@ template void Writer::sortSections() { // The way we define an order then is: // * Sort only the orphan sections. They are in the end right now. // * Move each orphan section to its preferred position. We try - // to put each section in the last position where it it can share + // to put each section in the last position where it can share // a PT_LOAD. // // There is some ambiguity as to where exactly a new entry should be @@ -1557,7 +1557,7 @@ template void Writer::finalizeSections() { // Some architectures need to generate content that depends on the address // of InputSections. For example some architectures use small displacements - // for jump instructions that is is the linker's responsibility for creating + // for jump instructions that is the linker's responsibility for creating // range extension thunks for. As the generation of the content may also // alter InputSection addresses we must converge to a fixed point. if (Target->NeedsThunks || Config->AndroidPackDynRelocs) { @@ -2017,7 +2017,7 @@ template void Writer::checkNoOverlappingSections() { return; // Checking for overlapping virtual and load addresses only needs to take - // into account SHF_ALLOC sections since since others will not be loaded. + // into account SHF_ALLOC sections since others will not be loaded. // Furthermore, we also need to skip SHF_TLS sections since these will be // mapped to other addresses at runtime and can therefore have overlapping // ranges in the file.