diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp --- a/lld/MachO/SyntheticSections.cpp +++ b/lld/MachO/SyntheticSections.cpp @@ -1115,12 +1115,12 @@ if (config->isPic) symtab->addSynthetic("__mh_execute_header", in.header->isec, 0, /*privateExtern=*/false, - /*includeInSymbtab=*/true); + /*includeInSymtab=*/true); else symtab->addSynthetic("__mh_execute_header", /*isec*/ nullptr, 0, /*privateExtern=*/false, - /*includeInSymbtab=*/true); + /*includeInSymtab=*/true); break; // The following symbols are N_SECT symbols, even though the header is not diff --git a/lld/test/MachO/private-extern.s b/lld/test/MachO/private-extern.s --- a/lld/test/MachO/private-extern.s +++ b/lld/test/MachO/private-extern.s @@ -20,8 +20,8 @@ # EXPORTS-NM-DAG: (__TEXT,__cstring) non-external (was a private external) _foo # EXPORTS-NM-DAG: (__TEXT,__cstring) external _bar -# Tests that weak private_exten symbols aren't referenced in the -# weak bind table are in weak-private.extern.s +## The tests for weak .private_extern symbols not being referenced in the +## weak bind table can be found in weak-private-extern.s #--- basics.s .section __TEXT,__cstring