diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp index 51922d95adf2d..8b1616f415a4e 100644 --- a/lld/MachO/SyntheticSections.cpp +++ b/lld/MachO/SyntheticSections.cpp @@ -1115,12 +1115,12 @@ void macho::createSyntheticSymbols() { 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 index 320e1a97232d0..cfc65651eb44e 100644 --- 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