mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 00:43:48 +00:00
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:
parent
30ffe8150f
commit
29519b1de0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user