diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -2334,7 +2334,7 @@ } } -// To enable CET (x86's hardware-assited control flow enforcement), each +// To enable CET (x86's hardware-assisted control flow enforcement), each // source file must be compiled with -fcf-protection. Object files compiled // with the flag contain feature flags indicating that they are compatible // with CET. We enable the feature only when all object files are compatible diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -972,7 +972,7 @@ return &InputSection::discarded; } - // An object file cmpiled for split stack, but where some of the + // An object file compiled for split stack, but where some of the // functions were compiled with the no_split_stack_attribute will // include a .note.GNU-no-split-stack section. if (name == ".note.GNU-no-split-stack") { diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -921,7 +921,7 @@ // at runtime, the notion of PC-relative doesn't make sense here. So, // this is a usage error. However, GNU linkers historically accept such // relocations without any errors and relocate them as if they were at - // address 0. For bug-compatibilty, we accept them with warnings. We + // address 0. For bug-compatibility, we accept them with warnings. We // know Steel Bank Common Lisp as of 2018 have this bug. warn(msg); target.relocateNoSym( diff --git a/lld/MachO/Options.td b/lld/MachO/Options.td --- a/lld/MachO/Options.td +++ b/lld/MachO/Options.td @@ -323,7 +323,7 @@ Flags<[HelpHidden]>, Group; def no_deduplicate : Flag<["-"], "no_deduplicate">, - HelpText<"Disable code deduplicaiton (synonym for `--icf=none')">, + HelpText<"Disable code deduplication (synonym for `--icf=none')">, Alias, AliasArgs<["none"]>, Group; diff --git a/lld/test/ELF/common-archive-lookup.s b/lld/test/ELF/common-archive-lookup.s --- a/lld/test/ELF/common-archive-lookup.s +++ b/lld/test/ELF/common-archive-lookup.s @@ -91,7 +91,7 @@ # NFC-NEXT: Other: 0 # NFC-NEXT: Section: .bss -## Expecting the strong definition from the object file, and the defintions from +## Expecting the strong definition from the object file, and the definitions from ## the archive do not interfere. # TEST2-LABEL: Disassembly of section .data: # TEST2: : diff --git a/lld/test/ELF/init-fini.s b/lld/test/ELF/init-fini.s --- a/lld/test/ELF/init-fini.s +++ b/lld/test/ELF/init-fini.s @@ -47,7 +47,7 @@ // NOENTRY: ] // Should not add entries for "_init" and "_fini" to the symbol table -// if the symbols are defined in non-fetched achive members. +// if the symbols are defined in non-fetched archive members. // RUN: rm -f %t.a // RUN: llvm-ar rcs %t.a %t // RUN: ld.lld -shared -m elf_x86_64 -e _unknown %t.a -o %t.so diff --git a/lld/test/ELF/lto/duplicated-name.ll b/lld/test/ELF/lto/duplicated-name.ll --- a/lld/test/ELF/lto/duplicated-name.ll +++ b/lld/test/ELF/lto/duplicated-name.ll @@ -1,5 +1,5 @@ ; REQUIRES: x86 -; Cretae two archive with the same member name +; Create two archive with the same member name ; RUN: rm -f %t1.a %t2.a ; RUN: opt -module-summary %s -o %t.o ; RUN: llvm-ar rcS %t1.a %t.o diff --git a/lld/test/MachO/tools/generate-cfi-funcs.py b/lld/test/MachO/tools/generate-cfi-funcs.py --- a/lld/test/MachO/tools/generate-cfi-funcs.py +++ b/lld/test/MachO/tools/generate-cfi-funcs.py @@ -67,7 +67,7 @@ return func_size def random_seed(): - """Generate a seed that can easily be passsed back in via --seed=STRING""" + """Generate a seed that can easily be passed back in via --seed=STRING""" return ''.join(random.choice(string.ascii_lowercase) for i in range(10)) def main(): @@ -82,7 +82,7 @@ Use --pages=N or --functions=N to control the size of the output. Default is --pages=2, meaning produce at least two full pages of -compact unwind entries, plus some more. The calculatation is sloppy. +compact unwind entries, plus some more. The calculation is sloppy. """) parser.add_argument('--seed', type=str, default=random_seed(), help='Seed the random number generator') diff --git a/lld/test/MachO/tools/generate-thunkable-program.py b/lld/test/MachO/tools/generate-thunkable-program.py --- a/lld/test/MachO/tools/generate-thunkable-program.py +++ b/lld/test/MachO/tools/generate-thunkable-program.py @@ -362,7 +362,7 @@ print_here_tail() def random_seed(): - """Generate a seed that can easily be passsed back in via --seed=STRING""" + """Generate a seed that can easily be passed back in via --seed=STRING""" return ''.join(random.choice(string.ascii_lowercase) for i in range(10)) def generate_sizes(base, megabytes): diff --git a/lld/test/wasm/debuginfo-undefined-global.s b/lld/test/wasm/debuginfo-undefined-global.s --- a/lld/test/wasm/debuginfo-undefined-global.s +++ b/lld/test/wasm/debuginfo-undefined-global.s @@ -3,7 +3,7 @@ # RUN: obj2yaml %t.wasm | FileCheck %s # Debug sections are allowed to contains references to non-live symbols that -# then get GC'd. In this test the .debug_info seciton contains a reference to +# then get GC'd. In this test the .debug_info section contains a reference to # foo which is not otherwise used and will not be marked a live in the output. # Verify the tombstone value is written to debug_info section.