Skip to content

Commit bf3d5db

Browse files
committed
[lld/ELF] fix typos to cycle bots
1 parent 4bc2a4f commit bf3d5db

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lld/ELF/Arch/LoongArch.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ enum Reg {
7575
//
7676
// Here a "page" is in fact just another way to refer to the 12-bit range
7777
// allowed by the immediate field of the addi/ld/st instructions, and not
78-
// related to the system or the kernel's actual page size. The sematics happens
78+
// related to the system or the kernel's actual page size. The semantics happen
7979
// to match the AArch64 `adrp`, so the concept of "page" is borrowed here.
8080
static uint64_t getLoongArchPage(uint64_t p) {
8181
return p & ~static_cast<uint64_t>(0xfff);
@@ -86,7 +86,7 @@ static uint32_t lo12(uint32_t val) { return val & 0xfff; }
8686
// Calculate the adjusted page delta between dest and PC.
8787
uint64_t elf::getLoongArchPageDelta(uint64_t dest, uint64_t pc, RelType type) {
8888
// Note that if the sequence being relocated is `pcalau12i + addi.d + lu32i.d
89-
// + lu52i.d`, they must be adjancent so that we can infer the PC of
89+
// + lu52i.d`, they must be adjacent so that we can infer the PC of
9090
// `pcalau12i` when calculating the page delta for the other two instructions
9191
// (lu32i.d and lu52i.d). Compensate all the sign-extensions is a bit
9292
// complicated. Just use psABI recommended algorithm.
@@ -539,7 +539,7 @@ void LoongArch::relocate(uint8_t *loc, const Relocation &rel,
539539
return;
540540

541541
case R_LARCH_CALL36: {
542-
// This relocation is designed for adjancent pcaddu18i+jirl pairs that
542+
// This relocation is designed for adjacent pcaddu18i+jirl pairs that
543543
// are patched in one time. Because of sign extension of these insns'
544544
// immediate fields, the relocation range is [-128G - 0x20000, +128G -
545545
// 0x20000) (of course must be 4-byte aligned).

lld/ELF/InputFiles.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ using namespace llvm::support::endian;
4141
using namespace lld;
4242
using namespace lld::elf;
4343

44-
// This function is explicity instantiated in ARM.cpp, don't do it here to avoid
45-
// warnings with MSVC.
44+
// This function is explicitly instantiated in ARM.cpp, don't do it here to
45+
// avoid warnings with MSVC.
4646
extern template void ObjFile<ELF32LE>::importCmseSymbols();
4747
extern template void ObjFile<ELF32BE>::importCmseSymbols();
4848
extern template void ObjFile<ELF64LE>::importCmseSymbols();
@@ -323,7 +323,7 @@ template <class ELFT> static void doParseFile(InputFile *file) {
323323
// Add symbols in File to the symbol table.
324324
void elf::parseFile(InputFile *file) { invokeELFT(doParseFile, file); }
325325

326-
// This function is explicity instantiated in ARM.cpp. Mark it extern here,
326+
// This function is explicitly instantiated in ARM.cpp. Mark it extern here,
327327
// to avoid warnings when building with MSVC.
328328
extern template void ObjFile<ELF32LE>::importCmseSymbols();
329329
extern template void ObjFile<ELF32BE>::importCmseSymbols();

lld/ELF/Thunks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ static Thunk *addThunkV6M(const InputSection &isec, RelType reloc, Symbol &s,
13381338
return make<ThumbV6MPILongThunk>(s, a);
13391339

13401340
fatal("relocation " + toString(reloc) + " to " + toString(s) +
1341-
" not supported for Armv6-M targets for position independant"
1341+
" not supported for Armv6-M targets for position independent"
13421342
" and execute only code");
13431343
}
13441344
if (isPureCode)

lld/test/ELF/arm-thumb-thunk-v6m-xo.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ far:
5454
// CHECK-NEXT: <far>:
5555
// CHECK-NEXT: 12345678: bx lr
5656

57-
// CHECK-PI: error: relocation R_ARM_THM_CALL to far not supported for Armv6-M targets for position independant and execute only code
57+
// CHECK-PI: error: relocation R_ARM_THM_CALL to far not supported for Armv6-M targets for position independent and execute only code

0 commit comments

Comments
 (0)