diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-03-30 17:37:43 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-03-30 17:37:43 +0000 |
| commit | 56709fdffec7335d3a7bd0b5c3bf626f43a66586 (patch) | |
| tree | 86d2399e5b7e82be03162c3abe9f40bfae03dc1a /llvm | |
| parent | 71278a5be82f2fa82498d9d5f926dffa8933afc6 (diff) | |
| download | bcm5719-llvm-56709fdffec7335d3a7bd0b5c3bf626f43a66586.tar.gz bcm5719-llvm-56709fdffec7335d3a7bd0b5c3bf626f43a66586.zip | |
Fix thinko: put stuff with both global and local relocations into data.rel{.ro}, not .local
llvm-svn: 68036
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/ELFTargetAsmInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp index 3d24c023c63..6bf7fd693b5 100644 --- a/llvm/lib/Target/ELFTargetAsmInfo.cpp +++ b/llvm/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; |

