mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-05 13:16:32 +00:00
Thread local globals don't require special handling by the linker and so can
be placed in the standard data / bss sections. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76735 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -29,6 +29,13 @@ XCoreTargetAsmInfo::XCoreTargetAsmInfo(const XCoreTargetMachine &TM)
|
|||||||
SectionFlags::Small);
|
SectionFlags::Small);
|
||||||
BSSSection_ = getNamedSection("\t.dp.bss", SectionFlags::Writeable |
|
BSSSection_ = getNamedSection("\t.dp.bss", SectionFlags::Writeable |
|
||||||
SectionFlags::BSS | SectionFlags::Small);
|
SectionFlags::BSS | SectionFlags::Small);
|
||||||
|
|
||||||
|
// TLS globals are lowered in the backend to arrays indexed by the current
|
||||||
|
// thread id. After lowering they require no special handling by the linker
|
||||||
|
// and can be placed in the standard data / bss sections.
|
||||||
|
TLSDataSection = DataSection;
|
||||||
|
TLSBSSSection = BSSSection_;
|
||||||
|
|
||||||
if (TM.getSubtargetImpl()->isXS1A()) {
|
if (TM.getSubtargetImpl()->isXS1A()) {
|
||||||
ReadOnlySection = getNamedSection("\t.dp.rodata", SectionFlags::None |
|
ReadOnlySection = getNamedSection("\t.dp.rodata", SectionFlags::None |
|
||||||
SectionFlags::Writeable |
|
SectionFlags::Writeable |
|
||||||
|
|||||||
Reference in New Issue
Block a user