Fix thinko: put stuff with both global and local relocations into data.rel{.ro}, not .local
llvm-svn: 68036
This commit is contained in:
parent
71278a5be8
commit
56709fdffe
|
@ -58,11 +58,11 @@ ELFTargetAsmInfo::SectionKindForGlobal(const GlobalValue *GV) const {
|
||||||
bool isConstant = GVar->isConstant();
|
bool isConstant = GVar->isConstant();
|
||||||
unsigned Reloc = RelocBehaviour();
|
unsigned Reloc = RelocBehaviour();
|
||||||
if (Reloc != Reloc::None && C->ContainsRelocations(Reloc))
|
if (Reloc != Reloc::None && C->ContainsRelocations(Reloc))
|
||||||
return (C->ContainsRelocations(Reloc::Local) ?
|
return (C->ContainsRelocations(Reloc::Global) ?
|
||||||
(isConstant ?
|
(isConstant ?
|
||||||
SectionKind::DataRelROLocal : SectionKind::DataRelLocal) :
|
SectionKind::DataRelRO : SectionKind::DataRel) :
|
||||||
(isConstant ?
|
(isConstant ?
|
||||||
SectionKind::DataRelRO : SectionKind::DataRel));
|
SectionKind::DataRelROLocal : SectionKind::DataRelLocal));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Kind;
|
return Kind;
|
||||||
|
|
Loading…
Reference in New Issue