aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-03-30 17:37:43 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-03-30 17:37:43 +0000
commit29519b1de0daa0c94a16ab163199235a7f82e1f0 (patch)
treebbbf9dc0b56e16e9403105dcbb662da8132806ae
parent30ffe8150ff6156d1e86fce99b9fc940908197de (diff)
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
-rw-r--r--lib/Target/ELFTargetAsmInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp
index 3d24c023c6..6bf7fd693b 100644
--- a/lib/Target/ELFTargetAsmInfo.cpp
+++ b/lib/Target/ELFTargetAsmInfo.cpp
@@ -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;