mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32:49 +00:00
Mark all common symbols external. This is not exactly correct but it lets apps
link for now and can be adjusted later. Patch by Roman Divacky. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12881e79b6
commit
82a3171b72
@ -249,10 +249,11 @@ void MCELFStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
|
|||||||
SD.setFragment(F);
|
SD.setFragment(F);
|
||||||
Symbol->setSection(*Section);
|
Symbol->setSection(*Section);
|
||||||
SD.setSize(MCConstantExpr::Create(Size, getContext()));
|
SD.setSize(MCConstantExpr::Create(Size, getContext()));
|
||||||
} else {
|
|
||||||
SD.setExternal(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SD.setFlags(SD.getFlags() | ELF_STB_Global);
|
||||||
|
SD.setExternal(true);
|
||||||
|
|
||||||
SD.setCommon(Size, ByteAlignment);
|
SD.setCommon(Size, ByteAlignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user