mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Put in the symbol table symbols only used in a .globl statement.
Fixes PR9292. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -833,7 +833,11 @@ static bool isInSymtab(const MCAssembler &Asm, const MCSymbolData &Data,
|
||||
return true;
|
||||
|
||||
const MCSymbol &A = Symbol.AliasedSymbol();
|
||||
if (!A.isVariable() && A.isUndefined() && !Data.isCommon())
|
||||
if (Symbol.isVariable() && !A.isVariable() && A.isUndefined())
|
||||
return false;
|
||||
|
||||
bool IsGlobal = GetBinding(Data) == ELF::STB_GLOBAL;
|
||||
if (!Symbol.isVariable() && Symbol.isUndefined() && !IsGlobal)
|
||||
return false;
|
||||
|
||||
if (!Asm.isSymbolLinkerVisible(Symbol) && !Symbol.isUndefined())
|
||||
|
Reference in New Issue
Block a user