Fix thinko: put stuff with both global and local relocations into data.rel{.ro}, not .local

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2009-03-30 17:37:43 +00:00
parent 30ffe8150f
commit 29519b1de0

View File

@ -58,11 +58,11 @@ ELFTargetAsmInfo::SectionKindForGlobal(const GlobalValue *GV) const {
bool isConstant = GVar->isConstant();
unsigned Reloc = RelocBehaviour();
if (Reloc != Reloc::None && C->ContainsRelocations(Reloc))
return (C->ContainsRelocations(Reloc::Local) ?
return (C->ContainsRelocations(Reloc::Global) ?
(isConstant ?
SectionKind::DataRelROLocal : SectionKind::DataRelLocal) :
SectionKind::DataRelRO : SectionKind::DataRel) :
(isConstant ?
SectionKind::DataRelRO : SectionKind::DataRel));
SectionKind::DataRelROLocal : SectionKind::DataRelLocal));
}
return Kind;