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:
Richard Osborne
2009-08-18 17:58:17 +00:00
parent daf4f0ca61
commit a9e8334877
2 changed files with 63 additions and 1 deletions
+7 -1
View File
@@ -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;
}