mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 07:34:06 +00:00
Allow MCSA_WeakRef in ELF. Patch by Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112834 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b041c92ef
commit
230c274724
@ -177,7 +177,6 @@ void MCELFStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
|
||||
case MCSA_Reference:
|
||||
case MCSA_NoDeadStrip:
|
||||
case MCSA_PrivateExtern:
|
||||
case MCSA_WeakReference:
|
||||
case MCSA_WeakDefinition:
|
||||
case MCSA_WeakDefAutoPrivate:
|
||||
case MCSA_Invalid:
|
||||
@ -191,6 +190,7 @@ void MCELFStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
|
||||
SD.setExternal(true);
|
||||
break;
|
||||
|
||||
case MCSA_WeakReference:
|
||||
case MCSA_Weak:
|
||||
SD.setFlags(SD.getFlags() | ELF_STB_Weak);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user