diff options
| author | Vincent Lee <leevince@fb.com> | 2023-05-15 02:00:29 -0700 |
|---|---|---|
| committer | Vincent Lee <leevince@fb.com> | 2023-05-20 13:06:03 -0700 |
| commit | ed59b8a11c899a4beb9145d31d95dfe2855facfd (patch) | |
| tree | bdaf55e144031908ee68b6b2a12128dff52e98f0 /lld/MachO/SymbolTable.cpp | |
| parent | ac73c48e091cff69047ed2dfb972f69ef7a0e9a0 (diff) | |
[lld-macho] Remove partially supported 32-bit ARM arch
We never really supported 32-bit ARM arch entirely, and partial support was added for
very specific features. Regardless, it fails to even link the most basic applications that at
this point, it might be better to move this arch as unsupported. Given that Apple will be
moving towards arm64 long term, I don't see any reason for anyone to invest time in
supporting this either, and for those who still need it should use apple's ld64 linker.
Fixes #62691
Reviewed By: #lld-macho, int3
Differential Revision: https://reviews.llvm.org/D150544
Diffstat (limited to 'lld/MachO/SymbolTable.cpp')
| -rw-r--r-- | lld/MachO/SymbolTable.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lld/MachO/SymbolTable.cpp b/lld/MachO/SymbolTable.cpp index 78ac40bc52ce..7d2e758cfbef 100644 --- a/lld/MachO/SymbolTable.cpp +++ b/lld/MachO/SymbolTable.cpp @@ -96,7 +96,7 @@ static void transplantSymbolsAtOffset(InputSection *fromIsec, Defined *SymbolTable::addDefined(StringRef name, InputFile *file, InputSection *isec, uint64_t value, uint64_t size, bool isWeakDef, - bool isPrivateExtern, bool isThumb, + bool isPrivateExtern, bool isReferencedDynamically, bool noDeadStrip, bool isWeakDefCanBeHidden) { bool overridesWeakDef = false; @@ -166,9 +166,8 @@ Defined *SymbolTable::addDefined(StringRef name, InputFile *file, !isPrivateExtern; Defined *defined = replaceSymbol<Defined>( s, name, file, isec, value, size, isWeakDef, /*isExternal=*/true, - isPrivateExtern, /*includeInSymtab=*/true, isThumb, - isReferencedDynamically, noDeadStrip, overridesWeakDef, - isWeakDefCanBeHidden, interposable); + isPrivateExtern, /*includeInSymtab=*/true, isReferencedDynamically, + noDeadStrip, overridesWeakDef, isWeakDefCanBeHidden, interposable); return defined; } @@ -176,7 +175,7 @@ Defined *SymbolTable::aliasDefined(Defined *src, StringRef target, InputFile *newFile, bool makePrivateExtern) { bool isPrivateExtern = makePrivateExtern || src->privateExtern; return addDefined(target, newFile, src->isec, src->value, src->size, - src->isWeakDef(), isPrivateExtern, src->thumb, + src->isWeakDef(), isPrivateExtern, src->referencedDynamically, src->noDeadStrip, src->weakDefCanBeHidden); } @@ -295,11 +294,10 @@ Defined *SymbolTable::addSynthetic(StringRef name, InputSection *isec, bool includeInSymtab, bool referencedDynamically) { assert(!isec || !isec->getFile()); // See makeSyntheticInputSection(). - Defined *s = - addDefined(name, /*file=*/nullptr, isec, value, /*size=*/0, - /*isWeakDef=*/false, isPrivateExtern, /*isThumb=*/false, - referencedDynamically, /*noDeadStrip=*/false, - /*isWeakDefCanBeHidden=*/false); + Defined *s = addDefined(name, /*file=*/nullptr, isec, value, /*size=*/0, + /*isWeakDef=*/false, isPrivateExtern, + referencedDynamically, /*noDeadStrip=*/false, + /*isWeakDefCanBeHidden=*/false); s->includeInSymtab = includeInSymtab; return s; } |
