mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
Put data with relocations in the same sections as data without relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -51,5 +51,11 @@ void XCoreTargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &TM){
|
||||
MCSectionXCore::Create(".cp.rodata", MCSectionELF::SHT_PROGBITS,
|
||||
MCSectionELF::SHF_ALLOC |
|
||||
MCSectionXCore::SHF_CP_SECTION,
|
||||
SectionKind::getReadOnly(), false, getContext());
|
||||
SectionKind::getReadOnlyWithRel(), false,
|
||||
getContext());
|
||||
|
||||
// Dynamic linking is not supported. Data with relocations is placed in the
|
||||
// same section as data without relocations.
|
||||
DataRelSection = DataRelLocalSection = DataSection;
|
||||
DataRelROSection = DataRelROLocalSection = ReadOnlySection;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user